diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md index e319f3071715f..39fd3aeca8c17 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.7 (Unreleased) +## 1.0.0-beta.1 (2021-09-30) + +- 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 3c566d23d8d96..6287b92322bbc 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.6 + 1.0.0-beta.7 ``` [//]: # ({x-version-update-end}) @@ -161,7 +161,6 @@ while ("InProgress".equals(runStatus)) { runStatus = pipelineRun.status(); } ``` -[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md) ## Troubleshooting 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 ddf5a0ae2f2d3..99fccd16ee3f0 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 @@ -249,7 +249,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.datafactory") .append("/") - .append("1.0.0-beta.6"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java deleted file mode 100644 index 90fc3c618f70d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,333 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Marketplace Web Service linked service properties. */ -@Fluent -public final class AmazonMwsLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonMwsLinkedServiceTypeProperties.class); - - /* - * The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The Amazon Marketplace ID you want to retrieve data from. To retrieve - * data from multiple Marketplace IDs, separate them with a comma (,). - * (i.e. A2EUQ1WTGCTBG2) - */ - @JsonProperty(value = "marketplaceID", required = true) - private Object marketplaceId; - - /* - * The Amazon seller ID. - */ - @JsonProperty(value = "sellerID", required = true) - private Object sellerId; - - /* - * The Amazon MWS authentication token. - */ - @JsonProperty(value = "mwsAuthToken") - private SecretBase mwsAuthToken; - - /* - * The access key id used to access data. - */ - @JsonProperty(value = "accessKeyId", required = true) - private Object accessKeyId; - - /* - * The secret key used to access data. - */ - @JsonProperty(value = "secretKey") - private SecretBase secretKey; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). - * - * @param endpoint the endpoint value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the marketplaceId property: The Amazon Marketplace ID you want to retrieve data from. To retrieve data from - * multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - * - * @return the marketplaceId value. - */ - public Object marketplaceId() { - return this.marketplaceId; - } - - /** - * Set the marketplaceId property: The Amazon Marketplace ID you want to retrieve data from. To retrieve data from - * multiple Marketplace IDs, separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2). - * - * @param marketplaceId the marketplaceId value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withMarketplaceId(Object marketplaceId) { - this.marketplaceId = marketplaceId; - return this; - } - - /** - * Get the sellerId property: The Amazon seller ID. - * - * @return the sellerId value. - */ - public Object sellerId() { - return this.sellerId; - } - - /** - * Set the sellerId property: The Amazon seller ID. - * - * @param sellerId the sellerId value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withSellerId(Object sellerId) { - this.sellerId = sellerId; - return this; - } - - /** - * Get the mwsAuthToken property: The Amazon MWS authentication token. - * - * @return the mwsAuthToken value. - */ - public SecretBase mwsAuthToken() { - return this.mwsAuthToken; - } - - /** - * Set the mwsAuthToken property: The Amazon MWS authentication token. - * - * @param mwsAuthToken the mwsAuthToken value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withMwsAuthToken(SecretBase mwsAuthToken) { - this.mwsAuthToken = mwsAuthToken; - return this; - } - - /** - * Get the accessKeyId property: The access key id used to access data. - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key id used to access data. - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretKey property: The secret key used to access data. - * - * @return the secretKey value. - */ - public SecretBase secretKey() { - return this.secretKey; - } - - /** - * Set the secretKey property: The secret key used to access data. - * - * @param secretKey the secretKey value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withSecretKey(SecretBase secretKey) { - this.secretKey = secretKey; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonMwsLinkedServiceTypeProperties object itself. - */ - public AmazonMwsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model AmazonMwsLinkedServiceTypeProperties")); - } - if (marketplaceId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property marketplaceId in model AmazonMwsLinkedServiceTypeProperties")); - } - if (sellerId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property sellerId in model AmazonMwsLinkedServiceTypeProperties")); - } - if (mwsAuthToken() != null) { - mwsAuthToken().validate(); - } - if (accessKeyId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accessKeyId in model AmazonMwsLinkedServiceTypeProperties")); - } - if (secretKey() != null) { - secretKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java deleted file mode 100644 index f46e0460610b5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java +++ /dev/null @@ -1,119 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AmazonRdsForOracle database linked service properties. */ -@Fluent -public final class AmazonRdsForLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRdsForLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AmazonRdsForLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AmazonRdsForLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRdsForLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AmazonRdsForLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java deleted file mode 100644 index 37dcee911c23c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java +++ /dev/null @@ -1,83 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AmazonRdsForOracle dataset properties. */ -@Fluent -public final class AmazonRdsForOracleTableDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AmazonRdsForOracleTableDatasetTypeProperties.class); - - /* - * The schema name of the AmazonRdsForOracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the AmazonRdsForOracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForOracleTableDatasetTypeProperties object itself. - */ - public AmazonRdsForOracleTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AmazonRdsForOracleTableDatasetTypeProperties object itself. - */ - public AmazonRdsForOracleTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} 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 deleted file mode 100644 index c2b63d4f6e5a8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,181 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Rds for SQL Server linked service properties. */ -@Fluent -public final class AmazonRdsForSqlServerLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AmazonRdsForSqlServerLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The on-premises Windows authentication user name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The on-premises Windows authentication password. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The on-premises Windows authentication password. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The on-premises Windows authentication password. - * - * @param password the password value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself. - */ - public AmazonRdsForSqlServerLinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " AmazonRdsForSqlServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java deleted file mode 100644 index e20a13832286c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java +++ /dev/null @@ -1,83 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The Amazon RDS for SQL Server dataset properties. */ -@Fluent -public final class AmazonRdsForSqlServerTableDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AmazonRdsForSqlServerTableDatasetTypeProperties.class); - - /* - * The schema name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForSqlServerTableDatasetTypeProperties object itself. - */ - public AmazonRdsForSqlServerTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AmazonRdsForSqlServerTableDatasetTypeProperties object itself. - */ - public AmazonRdsForSqlServerTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java deleted file mode 100644 index 81f7e54f27a72..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java +++ /dev/null @@ -1,213 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Redshift linked service properties. */ -@Fluent -public final class AmazonRedshiftLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRedshiftLinkedServiceTypeProperties.class); - - /* - * The name of the Amazon Redshift server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * The username of the Amazon Redshift source. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password of the Amazon Redshift source. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The database name of the Amazon Redshift source. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /* - * The TCP port number that the Amazon Redshift server uses to listen for - * client connections. The default value is 5439. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType - * string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType - * string). - * - * @param server the server value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the username property: The username of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password of the Amazon Redshift source. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password of the Amazon Redshift source. - * - * @param password the password value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the database property: The database name of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The database name of the Amazon Redshift source. Type: string (or Expression with - * resultType string). - * - * @param database the database value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the port property: The TCP port number that the Amazon Redshift server uses to listen for client connections. - * The default value is 5439. Type: integer (or Expression with resultType integer). - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the Amazon Redshift server uses to listen for client connections. - * The default value is 5439. Type: integer (or Expression with resultType integer). - * - * @param port the port value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonRedshiftLinkedServiceTypeProperties object itself. - */ - public AmazonRedshiftLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model AmazonRedshiftLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (database() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model AmazonRedshiftLinkedServiceTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java deleted file mode 100644 index 57ab0b6816f50..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon Redshift table dataset properties. */ -@Fluent -public final class AmazonRedshiftTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRedshiftTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The Amazon Redshift table name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The Amazon Redshift schema name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AmazonRedshiftTableDatasetTypeProperties object itself. - */ - public AmazonRedshiftTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The Amazon Redshift table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The Amazon Redshift table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AmazonRedshiftTableDatasetTypeProperties object itself. - */ - public AmazonRedshiftTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRedshiftTableDatasetTypeProperties object itself. - */ - public AmazonRedshiftTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java deleted file mode 100644 index 43ec68304ba70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java +++ /dev/null @@ -1,181 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon S3 Compatible linked service properties. */ -@Fluent -public final class AmazonS3CompatibleLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AmazonS3CompatibleLinkedServiceTypeProperties.class); - - /* - * The access key identifier of the Amazon S3 Compatible Identity and - * Access Management (IAM) user. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the Amazon S3 - * Compatible Connector. This is an optional property; change it only if - * you want to try a different service endpoint or want to switch between - * https and http. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * If true, use S3 path-style access instead of virtual hosted-style - * access. Default value is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "forcePathStyle") - private Object forcePathStyle; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Amazon S3 Compatible Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Amazon S3 Compatible Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Amazon S3 Compatible Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the forcePathStyle property: If true, use S3 path-style access instead of virtual hosted-style access. - * Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the forcePathStyle value. - */ - public Object forcePathStyle() { - return this.forcePathStyle; - } - - /** - * Set the forcePathStyle property: If true, use S3 path-style access instead of virtual hosted-style access. - * Default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param forcePathStyle the forcePathStyle value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withForcePathStyle(Object forcePathStyle) { - this.forcePathStyle = forcePathStyle; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonS3CompatibleLinkedServiceTypeProperties object itself. - */ - public AmazonS3CompatibleLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java deleted file mode 100644 index edfeca7e8b137..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java +++ /dev/null @@ -1,260 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon S3 dataset properties. */ -@Fluent -public final class AmazonS3DatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonS3DatasetTypeProperties.class); - - /* - * The name of the Amazon S3 bucket. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "bucketName", required = true) - private Object bucketName; - - /* - * The key of the Amazon S3 object. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "key") - private Object key; - - /* - * The prefix filter for the S3 object name. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "prefix") - private Object prefix; - - /* - * The version for the S3 object. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /* - * The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * The format of files. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the Amazon S3 object. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType - * string). - * - * @return the bucketName value. - */ - public Object bucketName() { - return this.bucketName; - } - - /** - * Set the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType - * string). - * - * @param bucketName the bucketName value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withBucketName(Object bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Get the key property: The key of the Amazon S3 object. Type: string (or Expression with resultType string). - * - * @return the key value. - */ - public Object key() { - return this.key; - } - - /** - * Set the key property: The key of the Amazon S3 object. Type: string (or Expression with resultType string). - * - * @param key the key value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withKey(Object key) { - this.key = key; - return this; - } - - /** - * Get the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @return the prefix value. - */ - public Object prefix() { - return this.prefix; - } - - /** - * Set the prefix property: The prefix filter for the S3 object name. Type: string (or Expression with resultType - * string). - * - * @param prefix the prefix value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withPrefix(Object prefix) { - this.prefix = prefix; - return this; - } - - /** - * Get the version property: The version for the S3 object. Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: The version for the S3 object. Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withVersion(Object version) { - this.version = version; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of S3 object's modified datetime. Type: string (or Expression - * with resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of S3 object's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of S3 object's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the format property: The format of files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of files. - * - * @param format the format value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the Amazon S3 object. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the Amazon S3 object. - * - * @param compression the compression value to set. - * @return the AmazonS3DatasetTypeProperties object itself. - */ - public AmazonS3DatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (bucketName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property bucketName in model AmazonS3DatasetTypeProperties")); - } - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java deleted file mode 100644 index dab23077b4711..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java +++ /dev/null @@ -1,209 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Amazon S3 linked service properties. */ -@Fluent -public final class AmazonS3LinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonS3LinkedServiceTypeProperties.class); - - /* - * The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access key identifier of the Amazon S3 Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Amazon S3 Identity and Access Management - * (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the S3 Connector. This - * is an optional property; change it only if you want to try a different - * service endpoint or want to switch between https and http. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * The session token for the S3 temporary security credential. - */ - @JsonProperty(value = "sessionToken") - private SecretBase sessionToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or - * TemporarySecurityCredentials. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the accessKeyId property: The access key identifier of the Amazon S3 Identity and Access Management (IAM) - * user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Amazon S3 Identity and Access Management (IAM) - * user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Amazon S3 Identity and Access Management (IAM) - * user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Amazon S3 Identity and Access Management (IAM) - * user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the S3 Connector. This is an - * optional property; change it only if you want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the S3 Connector. This is an - * optional property; change it only if you want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the sessionToken property: The session token for the S3 temporary security credential. - * - * @return the sessionToken value. - */ - public SecretBase sessionToken() { - return this.sessionToken; - } - - /** - * Set the sessionToken property: The session token for the S3 temporary security credential. - * - * @param sessionToken the sessionToken value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withSessionToken(SecretBase sessionToken) { - this.sessionToken = sessionToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AmazonS3LinkedServiceTypeProperties object itself. - */ - public AmazonS3LinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - if (sessionToken() != null) { - sessionToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java deleted file mode 100644 index 9a27d444e2d5a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java +++ /dev/null @@ -1,76 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AppendVariable activity properties. */ -@Fluent -public final class AppendVariableActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AppendVariableActivityTypeProperties.class); - - /* - * Name of the variable whose value needs to be appended to. - */ - @JsonProperty(value = "variableName") - private String variableName; - - /* - * Value to be appended. Could be a static value or Expression - */ - @JsonProperty(value = "value") - private Object value; - - /** - * Get the variableName property: Name of the variable whose value needs to be appended to. - * - * @return the variableName value. - */ - public String variableName() { - return this.variableName; - } - - /** - * Set the variableName property: Name of the variable whose value needs to be appended to. - * - * @param variableName the variableName value to set. - * @return the AppendVariableActivityTypeProperties object itself. - */ - public AppendVariableActivityTypeProperties withVariableName(String variableName) { - this.variableName = variableName; - return this; - } - - /** - * Get the value property: Value to be appended. Could be a static value or Expression. - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Value to be appended. Could be a static value or Expression. - * - * @param value the value value to set. - * @return the AppendVariableActivityTypeProperties object itself. - */ - public AppendVariableActivityTypeProperties withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java deleted file mode 100644 index b3d7dd03921b9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java +++ /dev/null @@ -1,114 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Avro dataset properties. */ -@Fluent -public final class AvroDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AvroDatasetTypeProperties.class); - - /* - * The location of the avro storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data avroCompressionCodec. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "avroCompressionCodec") - private Object avroCompressionCodec; - - /* - * The avroCompressionLevel property. - */ - @JsonProperty(value = "avroCompressionLevel") - private Integer avroCompressionLevel; - - /** - * Get the location property: The location of the avro storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the avro storage. - * - * @param location the location value to set. - * @return the AvroDatasetTypeProperties object itself. - */ - public AvroDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the avroCompressionCodec value. - */ - public Object avroCompressionCodec() { - return this.avroCompressionCodec; - } - - /** - * Set the avroCompressionCodec property: The data avroCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param avroCompressionCodec the avroCompressionCodec value to set. - * @return the AvroDatasetTypeProperties object itself. - */ - public AvroDatasetTypeProperties withAvroCompressionCodec(Object avroCompressionCodec) { - this.avroCompressionCodec = avroCompressionCodec; - return this; - } - - /** - * Get the avroCompressionLevel property: The avroCompressionLevel property. - * - * @return the avroCompressionLevel value. - */ - public Integer avroCompressionLevel() { - return this.avroCompressionLevel; - } - - /** - * Set the avroCompressionLevel property: The avroCompressionLevel property. - * - * @param avroCompressionLevel the avroCompressionLevel value to set. - * @return the AvroDatasetTypeProperties object itself. - */ - public AvroDatasetTypeProperties withAvroCompressionLevel(Integer avroCompressionLevel) { - this.avroCompressionLevel = avroCompressionLevel; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model AvroDatasetTypeProperties")); - } else { - location().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java deleted file mode 100644 index 64a1b0da9c03c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java +++ /dev/null @@ -1,56 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Installation of Azure PowerShell type properties. */ -@Fluent -public final class AzPowerShellSetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzPowerShellSetupTypeProperties.class); - - /* - * The required version of Azure PowerShell to install. - */ - @JsonProperty(value = "version", required = true) - private String version; - - /** - * Get the version property: The required version of Azure PowerShell to install. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Set the version property: The required version of Azure PowerShell to install. - * - * @param version the version value to set. - * @return the AzPowerShellSetupTypeProperties object itself. - */ - public AzPowerShellSetupTypeProperties withVersion(String version) { - this.version = version; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (version() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property version in model AzPowerShellSetupTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java deleted file mode 100644 index cdea483506848..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java +++ /dev/null @@ -1,248 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Batch linked service properties. */ -@Fluent -public final class AzureBatchLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBatchLinkedServiceTypeProperties.class); - - /* - * The Azure Batch account name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accountName", required = true) - private Object accountName; - - /* - * The Azure Batch account access key. - */ - @JsonProperty(value = "accessKey") - private SecretBase accessKey; - - /* - * The Azure Batch URI. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "batchUri", required = true) - private Object batchUri; - - /* - * The Azure Batch pool name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "poolName", required = true) - private Object poolName; - - /* - * The Azure Storage linked service reference. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.accountName; - } - - /** - * Set the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withAccountName(Object accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the accessKey property: The Azure Batch account access key. - * - * @return the accessKey value. - */ - public SecretBase accessKey() { - return this.accessKey; - } - - /** - * Set the accessKey property: The Azure Batch account access key. - * - * @param accessKey the accessKey value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withAccessKey(SecretBase accessKey) { - this.accessKey = accessKey; - return this; - } - - /** - * Get the batchUri property: The Azure Batch URI. Type: string (or Expression with resultType string). - * - * @return the batchUri value. - */ - public Object batchUri() { - return this.batchUri; - } - - /** - * Set the batchUri property: The Azure Batch URI. Type: string (or Expression with resultType string). - * - * @param batchUri the batchUri value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withBatchUri(Object batchUri) { - this.batchUri = batchUri; - return this; - } - - /** - * Get the poolName property: The Azure Batch pool name. Type: string (or Expression with resultType string). - * - * @return the poolName value. - */ - public Object poolName() { - return this.poolName; - } - - /** - * Set the poolName property: The Azure Batch pool name. Type: string (or Expression with resultType string). - * - * @param poolName the poolName value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withPoolName(Object poolName) { - this.poolName = poolName; - return this; - } - - /** - * Get the linkedServiceName property: The Azure Storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: The Azure Storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBatchLinkedServiceTypeProperties object itself. - */ - public AzureBatchLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accountName in model AzureBatchLinkedServiceTypeProperties")); - } - if (accessKey() != null) { - accessKey().validate(); - } - if (batchUri() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property batchUri in model AzureBatchLinkedServiceTypeProperties")); - } - if (poolName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property poolName in model AzureBatchLinkedServiceTypeProperties")); - } - if (linkedServiceName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model AzureBatchLinkedServiceTypeProperties")); - } else { - linkedServiceName().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java deleted file mode 100644 index 387139bb6d821..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java +++ /dev/null @@ -1,225 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Blob dataset properties. */ -@Fluent -public final class AzureBlobDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobDatasetTypeProperties.class); - - /* - * The path of the Azure Blob storage. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The root of blob path. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableRootLocation") - private Object tableRootLocation; - - /* - * The name of the Azure Blob. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * The format of the Azure Blob storage. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the blob storage. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the tableRootLocation property: The root of blob path. Type: string (or Expression with resultType string). - * - * @return the tableRootLocation value. - */ - public Object tableRootLocation() { - return this.tableRootLocation; - } - - /** - * Set the tableRootLocation property: The root of blob path. Type: string (or Expression with resultType string). - * - * @param tableRootLocation the tableRootLocation value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withTableRootLocation(Object tableRootLocation) { - this.tableRootLocation = tableRootLocation; - return this; - } - - /** - * Get the fileName property: The name of the Azure Blob. Type: string (or Expression with resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the Azure Blob. Type: string (or Expression with resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of Azure Blob's modified datetime. Type: string (or Expression - * with resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of Azure Blob's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of Azure Blob's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the format property: The format of the Azure Blob storage. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the Azure Blob storage. - * - * @param format the format value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the blob storage. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the blob storage. - * - * @param compression the compression value to set. - * @return the AzureBlobDatasetTypeProperties object itself. - */ - public AzureBlobDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java deleted file mode 100644 index 3c66b95ec1ed6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java +++ /dev/null @@ -1,142 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Storage Gen2 dataset properties. */ -@Fluent -public final class AzureBlobFSDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobFSDatasetTypeProperties.class); - - /* - * The path of the Azure Data Lake Storage Gen2 storage. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The name of the Azure Data Lake Storage Gen2. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The format of the Azure Data Lake Storage Gen2 storage. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the blob storage. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression - * with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression - * with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - * resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with - * resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the format property: The format of the Azure Data Lake Storage Gen2 storage. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the Azure Data Lake Storage Gen2 storage. - * - * @param format the format value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the blob storage. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the blob storage. - * - * @param compression the compression value to set. - * @return the AzureBlobFSDatasetTypeProperties object itself. - */ - public AzureBlobFSDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java deleted file mode 100644 index e73bc131a2950..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java +++ /dev/null @@ -1,273 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Storage Gen2 linked service properties. */ -@Fluent -public final class AzureBlobFSLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobFSLinkedServiceTypeProperties.class); - - /* - * Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Account key for the Azure Data Lake Storage Gen2 service. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "accountKey") - private Object accountKey; - - /* - * The ID of the application used to authenticate against the Azure Data - * Lake Storage Gen2 account. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The Key of the application used to authenticate against the Azure Data - * Lake Storage Gen2 account. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with - * resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with - * resultType string). - * - * @param url the url value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the accountKey property: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - * - * @return the accountKey value. - */ - public Object accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: Account key for the Azure Data Lake Storage Gen2 service. Type: string (or - * Expression with resultType string). - * - * @param accountKey the accountKey value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withAccountKey(Object accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Storage Gen2 account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBlobFSLinkedServiceTypeProperties object itself. - */ - public AzureBlobFSLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model AzureBlobFSLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java deleted file mode 100644 index d0ec76ed2b601..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,388 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Blob Storage linked service properties. */ -@Fluent -public final class AzureBlobStorageLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobStorageLinkedServiceTypeProperties.class); - - /* - * The connection string. It is mutually exclusive with sasUri, - * serviceEndpoint property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of accountKey in connection string. - */ - @JsonProperty(value = "accountKey") - private AzureKeyVaultSecretReference accountKey; - - /* - * SAS URI of the Azure Blob Storage resource. It is mutually exclusive - * with connectionString, serviceEndpoint property. Type: string, - * SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private AzureKeyVaultSecretReference sasToken; - - /* - * Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - */ - @JsonProperty(value = "serviceEndpoint") - private String serviceEndpoint; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Data Warehouse. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * Specify the kind of your storage account. Allowed values are: Storage - * (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or - * BlockBlobStorage. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "accountKind") - private String accountKind; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private String encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - * connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure Blob Storage resource. It is mutually exclusive with - * connectionString, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Get the serviceEndpoint property: Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - * - * @return the serviceEndpoint value. - */ - public String serviceEndpoint() { - return this.serviceEndpoint; - } - - /** - * Set the serviceEndpoint property: Blob service endpoint of the Azure Blob Storage resource. It is mutually - * exclusive with connectionString, sasUri property. - * - * @param serviceEndpoint the serviceEndpoint value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withServiceEndpoint(String serviceEndpoint) { - this.serviceEndpoint = serviceEndpoint; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the accountKind property: Specify the kind of your storage account. Allowed values are: Storage (general - * purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with - * resultType string). - * - * @return the accountKind value. - */ - public String accountKind() { - return this.accountKind; - } - - /** - * Set the accountKind property: Specify the kind of your storage account. Allowed values are: Storage (general - * purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with - * resultType string). - * - * @param accountKind the accountKind value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withAccountKind(String accountKind) { - this.accountKind = accountKind; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureBlobStorageLinkedServiceTypeProperties object itself. - */ - public AzureBlobStorageLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountKey() != null) { - accountKey().validate(); - } - if (sasToken() != null) { - sasToken().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java deleted file mode 100644 index 0ed9c381fa3ed..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java +++ /dev/null @@ -1,90 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Explorer command activity properties. */ -@Fluent -public final class AzureDataExplorerCommandActivityTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureDataExplorerCommandActivityTypeProperties.class); - - /* - * A control command, according to the Azure Data Explorer command syntax. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "command", required = true) - private Object command; - - /* - * Control command timeout. Type: string (or Expression with resultType - * string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) - */ - @JsonProperty(value = "commandTimeout") - private Object commandTimeout; - - /** - * Get the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.command; - } - - /** - * Set the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @param command the command value to set. - * @return the AzureDataExplorerCommandActivityTypeProperties object itself. - */ - public AzureDataExplorerCommandActivityTypeProperties withCommand(Object command) { - this.command = command; - return this; - } - - /** - * Get the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @return the commandTimeout value. - */ - public Object commandTimeout() { - return this.commandTimeout; - } - - /** - * Set the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @param commandTimeout the commandTimeout value to set. - * @return the AzureDataExplorerCommandActivityTypeProperties object itself. - */ - public AzureDataExplorerCommandActivityTypeProperties withCommandTimeout(Object commandTimeout) { - this.commandTimeout = commandTimeout; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (command() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property command in model AzureDataExplorerCommandActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java deleted file mode 100644 index c3f386c3b095d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java +++ /dev/null @@ -1,53 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Explorer (Kusto) dataset properties. */ -@Fluent -public final class AzureDataExplorerDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataExplorerDatasetTypeProperties.class); - - /* - * The table name of the Azure Data Explorer database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureDataExplorerDatasetTypeProperties object itself. - */ - public AzureDataExplorerDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java deleted file mode 100644 index 0b243720047fe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,214 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Explorer (Kusto) linked service properties. */ -@Fluent -public final class AzureDataExplorerLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureDataExplorerLinkedServiceTypeProperties.class); - - /* - * The endpoint of Azure Data Explorer (the engine's endpoint). URL will be - * in the format https://..kusto.windows.net. - * Type: string (or Expression with resultType string) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Kusto. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * Database name for connection. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format - * https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType - * string). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format - * https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType - * string). - * - * @param endpoint the endpoint value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure Data - * Explorer. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Kusto. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDataExplorerLinkedServiceTypeProperties object itself. - */ - public AzureDataExplorerLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model AzureDataExplorerLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (database() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model AzureDataExplorerLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java deleted file mode 100644 index 46f931f0155de..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,276 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Analytics linked service properties. */ -@Fluent -public final class AzureDataLakeAnalyticsLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureDataLakeAnalyticsLinkedServiceTypeProperties.class); - - /* - * The Azure Data Lake Analytics account name. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "accountName", required = true) - private Object accountName; - - /* - * The ID of the application used to authenticate against the Azure Data - * Lake Analytics account. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The Key of the application used to authenticate against the Azure Data - * Lake Analytics account. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant", required = true) - private Object tenant; - - /* - * Data Lake Analytics account subscription ID (if different from Data - * Factory account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "subscriptionId") - private Object subscriptionId; - - /* - * Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "resourceGroupName") - private Object resourceGroupName; - - /* - * Azure Data Lake Analytics URI Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "dataLakeAnalyticsUri") - private Object dataLakeAnalyticsUri; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with - * resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.accountName; - } - - /** - * Set the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with - * resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withAccountName(Object accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Analytics account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Analytics account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Analytics account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Analytics account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the subscriptionId property: Data Lake Analytics account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: Data Lake Analytics account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withSubscriptionId(Object subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resourceGroupName property: Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.resourceGroupName; - } - - /** - * Set the resourceGroupName property: Data Lake Analytics account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withResourceGroupName(Object resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - /** - * Get the dataLakeAnalyticsUri property: Azure Data Lake Analytics URI Type: string (or Expression with resultType - * string). - * - * @return the dataLakeAnalyticsUri value. - */ - public Object dataLakeAnalyticsUri() { - return this.dataLakeAnalyticsUri; - } - - /** - * Set the dataLakeAnalyticsUri property: Azure Data Lake Analytics URI Type: string (or Expression with resultType - * string). - * - * @param dataLakeAnalyticsUri the dataLakeAnalyticsUri value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withDataLakeAnalyticsUri(Object dataLakeAnalyticsUri) { - this.dataLakeAnalyticsUri = dataLakeAnalyticsUri; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDataLakeAnalyticsLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeAnalyticsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property accountName in model" - + " AzureDataLakeAnalyticsLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (tenant() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenant in model AzureDataLakeAnalyticsLinkedServiceTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java deleted file mode 100644 index 3a0d9306a1274..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java +++ /dev/null @@ -1,143 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Store dataset properties. */ -@Fluent -public final class AzureDataLakeStoreDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataLakeStoreDatasetTypeProperties.class); - - /* - * Path to the folder in the Azure Data Lake Store. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The name of the file in the Azure Data Lake Store. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The format of the Data Lake Store. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used for the item(s) in the Azure Data Lake - * Store. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @param folderPath the folderPath value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: The name of the file in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the file in the Azure Data Lake Store. Type: string (or Expression with - * resultType string). - * - * @param fileName the fileName value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the format property: The format of the Data Lake Store. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the Data Lake Store. - * - * @param format the format value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used for the item(s) in the Azure Data Lake Store. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the item(s) in the Azure Data Lake Store. - * - * @param compression the compression value to set. - * @return the AzureDataLakeStoreDatasetTypeProperties object itself. - */ - public AzureDataLakeStoreDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java deleted file mode 100644 index e5c11a65d55cc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java +++ /dev/null @@ -1,330 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Data Lake Store linked service properties. */ -@Fluent -public final class AzureDataLakeStoreLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureDataLakeStoreLinkedServiceTypeProperties.class); - - /* - * Data Lake Store service URI. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "dataLakeStoreUri", required = true) - private Object dataLakeStoreUri; - - /* - * The ID of the application used to authenticate against the Azure Data - * Lake Store account. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The Key of the application used to authenticate against the Azure Data - * Lake Store account. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * Data Lake Store account name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accountName") - private Object accountName; - - /* - * Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "subscriptionId") - private Object subscriptionId; - - /* - * Data Lake Store account resource group name (if different from Data - * Factory account). Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "resourceGroupName") - private Object resourceGroupName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType - * string). - * - * @return the dataLakeStoreUri value. - */ - public Object dataLakeStoreUri() { - return this.dataLakeStoreUri; - } - - /** - * Set the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType - * string). - * - * @param dataLakeStoreUri the dataLakeStoreUri value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withDataLakeStoreUri(Object dataLakeStoreUri) { - this.dataLakeStoreUri = dataLakeStoreUri; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Store account. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the application used to authenticate against the Azure Data Lake - * Store account. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Store account. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The Key of the application used to authenticate against the Azure Data Lake - * Store account. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the accountName property: Data Lake Store account name. Type: string (or Expression with resultType string). - * - * @return the accountName value. - */ - public Object accountName() { - return this.accountName; - } - - /** - * Set the accountName property: Data Lake Store account name. Type: string (or Expression with resultType string). - * - * @param accountName the accountName value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withAccountName(Object accountName) { - this.accountName = accountName; - return this; - } - - /** - * Get the subscriptionId property: Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: Data Lake Store account subscription ID (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withSubscriptionId(Object subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resourceGroupName property: Data Lake Store account resource group name (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.resourceGroupName; - } - - /** - * Set the resourceGroupName property: Data Lake Store account resource group name (if different from Data Factory - * account). Type: string (or Expression with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withResourceGroupName(Object resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDataLakeStoreLinkedServiceTypeProperties object itself. - */ - public AzureDataLakeStoreLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataLakeStoreUri() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataLakeStoreUri in model" - + " AzureDataLakeStoreLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java deleted file mode 100644 index c0f90f4894223..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java +++ /dev/null @@ -1,79 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Databricks Delta Lake Dataset Properties. */ -@Fluent -public final class AzureDatabricksDeltaLakeDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureDatabricksDeltaLakeDatasetTypeProperties.class); - - /* - * The name of delta table. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The database name of delta table. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database") - private Object database; - - /** - * Get the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AzureDatabricksDeltaLakeDatasetTypeProperties object itself. - */ - public AzureDatabricksDeltaLakeDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDatabricksDeltaLakeDatasetTypeProperties object itself. - */ - public AzureDatabricksDeltaLakeDatasetTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java deleted file mode 100644 index 574ae43888afe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java +++ /dev/null @@ -1,156 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Databricks Delta Lake linked service properties. */ -@Fluent -public final class AzureDatabricksDetltaLakeLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureDatabricksDetltaLakeLinkedServiceTypeProperties.class); - - /* - * .azuredatabricks.net, domain name of your Databricks deployment. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "domain", required = true) - private Object domain; - - /* - * Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: - * string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * The id of an existing interactive cluster that will be used for all runs - * of this job. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterId") - private Object clusterId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @return the domain value. - */ - public Object domain() { - return this.domain; - } - - /** - * Set the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @param domain the domain value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withDomain(Object domain) { - this.domain = domain; - return this; - } - - /** - * Get the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param accessToken the accessToken value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the clusterId property: The id of an existing interactive cluster that will be used for all runs of this job. - * Type: string (or Expression with resultType string). - * - * @return the clusterId value. - */ - public Object clusterId() { - return this.clusterId; - } - - /** - * Set the clusterId property: The id of an existing interactive cluster that will be used for all runs of this job. - * Type: string (or Expression with resultType string). - * - * @param clusterId the clusterId value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withClusterId(Object clusterId) { - this.clusterId = clusterId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDatabricksDetltaLakeLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksDetltaLakeLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property domain in model" - + " AzureDatabricksDetltaLakeLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java deleted file mode 100644 index efd1cc9632066..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java +++ /dev/null @@ -1,620 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Azure Databricks linked service properties. */ -@Fluent -public final class AzureDatabricksLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDatabricksLinkedServiceTypeProperties.class); - - /* - * .azuredatabricks.net, domain name of your Databricks deployment. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "domain", required = true) - private Object domain; - - /* - * Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Required to specify MSI, if using Workspace resource id for databricks - * REST API. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authentication") - private Object authentication; - - /* - * Workspace resource id for databricks REST API. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "workspaceResourceId") - private Object workspaceResourceId; - - /* - * The id of an existing interactive cluster that will be used for all runs - * of this activity. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "existingClusterId") - private Object existingClusterId; - - /* - * The id of an existing instance pool that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "instancePoolId") - private Object instancePoolId; - - /* - * If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run - * of this activity. Required if instancePoolId is specified. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "newClusterVersion") - private Object newClusterVersion; - - /* - * If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new - * job clusters, this a string-formatted Int32, like '1' means numOfWorker - * is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance - * pools, this is a string-formatted Int32, and can only specify a fixed - * number of worker nodes, such as '2'. Required if newClusterVersion is - * specified. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "newClusterNumOfWorker") - private Object newClusterNumOfWorker; - - /* - * The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If - * instancePoolId is specified, this property is ignored. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "newClusterNodeType") - private Object newClusterNodeType; - - /* - * A set of optional, user-specified Spark configuration key-value pairs. - */ - @JsonProperty(value = "newClusterSparkConf") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map newClusterSparkConf; - - /* - * A set of optional, user-specified Spark environment variables key-value - * pairs. - */ - @JsonProperty(value = "newClusterSparkEnvVars") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map newClusterSparkEnvVars; - - /* - * Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - */ - @JsonProperty(value = "newClusterCustomTags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map newClusterCustomTags; - - /* - * Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "newClusterLogDestination") - private Object newClusterLogDestination; - - /* - * The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "newClusterDriverNodeType") - private Object newClusterDriverNodeType; - - /* - * User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - */ - @JsonProperty(value = "newClusterInitScripts") - private Object newClusterInitScripts; - - /* - * Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks - * (elastic disks are always enabled). Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "newClusterEnableElasticDisk") - private Object newClusterEnableElasticDisk; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The policy id for limiting the ability to configure clusters based on a - * user defined set of rules. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "policyId") - private Object policyId; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @return the domain value. - */ - public Object domain() { - return this.domain; - } - - /** - * Set the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: - * string (or Expression with resultType string). - * - * @param domain the domain value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withDomain(Object domain) { - this.domain = domain; - return this; - } - - /** - * Get the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType - * string). - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: Access token for databricks REST API. Refer to - * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType - * string). - * - * @param accessToken the accessToken value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the authentication property: Required to specify MSI, if using Workspace resource id for databricks REST API. - * Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Required to specify MSI, if using Workspace resource id for databricks REST API. - * Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withAuthentication(Object authentication) { - this.authentication = authentication; - return this; - } - - /** - * Get the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @return the workspaceResourceId value. - */ - public Object workspaceResourceId() { - return this.workspaceResourceId; - } - - /** - * Set the workspaceResourceId property: Workspace resource id for databricks REST API. Type: string (or Expression - * with resultType string). - * - * @param workspaceResourceId the workspaceResourceId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withWorkspaceResourceId(Object workspaceResourceId) { - this.workspaceResourceId = workspaceResourceId; - return this; - } - - /** - * Get the existingClusterId property: The id of an existing interactive cluster that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - * - * @return the existingClusterId value. - */ - public Object existingClusterId() { - return this.existingClusterId; - } - - /** - * Set the existingClusterId property: The id of an existing interactive cluster that will be used for all runs of - * this activity. Type: string (or Expression with resultType string). - * - * @param existingClusterId the existingClusterId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withExistingClusterId(Object existingClusterId) { - this.existingClusterId = existingClusterId; - return this; - } - - /** - * Get the instancePoolId property: The id of an existing instance pool that will be used for all runs of this - * activity. Type: string (or Expression with resultType string). - * - * @return the instancePoolId value. - */ - public Object instancePoolId() { - return this.instancePoolId; - } - - /** - * Set the instancePoolId property: The id of an existing instance pool that will be used for all runs of this - * activity. Type: string (or Expression with resultType string). - * - * @param instancePoolId the instancePoolId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withInstancePoolId(Object instancePoolId) { - this.instancePoolId = instancePoolId; - return this; - } - - /** - * Get the newClusterVersion property: If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run of this activity. Required if - * instancePoolId is specified. Type: string (or Expression with resultType string). - * - * @return the newClusterVersion value. - */ - public Object newClusterVersion() { - return this.newClusterVersion; - } - - /** - * Set the newClusterVersion property: If not using an existing interactive cluster, this specifies the Spark - * version of a new job cluster or instance pool nodes created for each run of this activity. Required if - * instancePoolId is specified. Type: string (or Expression with resultType string). - * - * @param newClusterVersion the newClusterVersion value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterVersion(Object newClusterVersion) { - this.newClusterVersion = newClusterVersion; - return this; - } - - /** - * Get the newClusterNumOfWorker property: If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new job clusters, this a string-formatted - * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, - * this is a string-formatted Int32, and can only specify a fixed number of worker nodes, such as '2'. Required if - * newClusterVersion is specified. Type: string (or Expression with resultType string). - * - * @return the newClusterNumOfWorker value. - */ - public Object newClusterNumOfWorker() { - return this.newClusterNumOfWorker; - } - - /** - * Set the newClusterNumOfWorker property: If not using an existing interactive cluster, this specifies the number - * of worker nodes to use for the new job cluster or instance pool. For new job clusters, this a string-formatted - * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, - * this is a string-formatted Int32, and can only specify a fixed number of worker nodes, such as '2'. Required if - * newClusterVersion is specified. Type: string (or Expression with resultType string). - * - * @param newClusterNumOfWorker the newClusterNumOfWorker value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterNumOfWorker(Object newClusterNumOfWorker) { - this.newClusterNumOfWorker = newClusterNumOfWorker; - return this; - } - - /** - * Get the newClusterNodeType property: The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is specified, this property - * is ignored. Type: string (or Expression with resultType string). - * - * @return the newClusterNodeType value. - */ - public Object newClusterNodeType() { - return this.newClusterNodeType; - } - - /** - * Set the newClusterNodeType property: The node type of the new job cluster. This property is required if - * newClusterVersion is specified and instancePoolId is not specified. If instancePoolId is specified, this property - * is ignored. Type: string (or Expression with resultType string). - * - * @param newClusterNodeType the newClusterNodeType value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterNodeType(Object newClusterNodeType) { - this.newClusterNodeType = newClusterNodeType; - return this; - } - - /** - * Get the newClusterSparkConf property: A set of optional, user-specified Spark configuration key-value pairs. - * - * @return the newClusterSparkConf value. - */ - public Map newClusterSparkConf() { - return this.newClusterSparkConf; - } - - /** - * Set the newClusterSparkConf property: A set of optional, user-specified Spark configuration key-value pairs. - * - * @param newClusterSparkConf the newClusterSparkConf value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterSparkConf(Map newClusterSparkConf) { - this.newClusterSparkConf = newClusterSparkConf; - return this; - } - - /** - * Get the newClusterSparkEnvVars property: A set of optional, user-specified Spark environment variables key-value - * pairs. - * - * @return the newClusterSparkEnvVars value. - */ - public Map newClusterSparkEnvVars() { - return this.newClusterSparkEnvVars; - } - - /** - * Set the newClusterSparkEnvVars property: A set of optional, user-specified Spark environment variables key-value - * pairs. - * - * @param newClusterSparkEnvVars the newClusterSparkEnvVars value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterSparkEnvVars( - Map newClusterSparkEnvVars) { - this.newClusterSparkEnvVars = newClusterSparkEnvVars; - return this; - } - - /** - * Get the newClusterCustomTags property: Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - * - * @return the newClusterCustomTags value. - */ - public Map newClusterCustomTags() { - return this.newClusterCustomTags; - } - - /** - * Set the newClusterCustomTags property: Additional tags for cluster resources. This property is ignored in - * instance pool configurations. - * - * @param newClusterCustomTags the newClusterCustomTags value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterCustomTags( - Map newClusterCustomTags) { - this.newClusterCustomTags = newClusterCustomTags; - return this; - } - - /** - * Get the newClusterLogDestination property: Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - * - * @return the newClusterLogDestination value. - */ - public Object newClusterLogDestination() { - return this.newClusterLogDestination; - } - - /** - * Set the newClusterLogDestination property: Specify a location to deliver Spark driver, worker, and event logs. - * Type: string (or Expression with resultType string). - * - * @param newClusterLogDestination the newClusterLogDestination value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterLogDestination(Object newClusterLogDestination) { - this.newClusterLogDestination = newClusterLogDestination; - return this; - } - - /** - * Get the newClusterDriverNodeType property: The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with resultType string). - * - * @return the newClusterDriverNodeType value. - */ - public Object newClusterDriverNodeType() { - return this.newClusterDriverNodeType; - } - - /** - * Set the newClusterDriverNodeType property: The driver node type for the new job cluster. This property is ignored - * in instance pool configurations. Type: string (or Expression with resultType string). - * - * @param newClusterDriverNodeType the newClusterDriverNodeType value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterDriverNodeType(Object newClusterDriverNodeType) { - this.newClusterDriverNodeType = newClusterDriverNodeType; - return this; - } - - /** - * Get the newClusterInitScripts property: User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - * - * @return the newClusterInitScripts value. - */ - public Object newClusterInitScripts() { - return this.newClusterInitScripts; - } - - /** - * Set the newClusterInitScripts property: User-defined initialization scripts for the new cluster. Type: array of - * strings (or Expression with resultType array of strings). - * - * @param newClusterInitScripts the newClusterInitScripts value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterInitScripts(Object newClusterInitScripts) { - this.newClusterInitScripts = newClusterInitScripts; - return this; - } - - /** - * Get the newClusterEnableElasticDisk property: Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: - * boolean (or Expression with resultType boolean). - * - * @return the newClusterEnableElasticDisk value. - */ - public Object newClusterEnableElasticDisk() { - return this.newClusterEnableElasticDisk; - } - - /** - * Set the newClusterEnableElasticDisk property: Enable the elastic disk on the new cluster. This property is now - * ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: - * boolean (or Expression with resultType boolean). - * - * @param newClusterEnableElasticDisk the newClusterEnableElasticDisk value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withNewClusterEnableElasticDisk( - Object newClusterEnableElasticDisk) { - this.newClusterEnableElasticDisk = newClusterEnableElasticDisk; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the policyId property: The policy id for limiting the ability to configure clusters based on a user defined - * set of rules. Type: string (or Expression with resultType string). - * - * @return the policyId value. - */ - public Object policyId() { - return this.policyId; - } - - /** - * Set the policyId property: The policy id for limiting the ability to configure clusters based on a user defined - * set of rules. Type: string (or Expression with resultType string). - * - * @param policyId the policyId value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withPolicyId(Object policyId) { - this.policyId = policyId; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureDatabricksLinkedServiceTypeProperties object itself. - */ - public AzureDatabricksLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (domain() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property domain in model AzureDatabricksLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java deleted file mode 100644 index 312d17ae21c59..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,315 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure File Storage linked service properties. */ -@Fluent -public final class AzureFileStorageLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureFileStorageLinkedServiceTypeProperties.class); - - /* - * Host name of the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host") - private Object host; - - /* - * User ID to logon the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "userId") - private Object userId; - - /* - * Password to logon the server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The connection string. It is mutually exclusive with sasUri property. - * Type: string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of accountKey in connection string. - */ - @JsonProperty(value = "accountKey") - private AzureKeyVaultSecretReference accountKey; - - /* - * SAS URI of the Azure File resource. It is mutually exclusive with - * connectionString property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private AzureKeyVaultSecretReference sasToken; - - /* - * The azure file share name. It is required when auth with - * accountKey/sasToken. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "fileShare") - private Object fileShare; - - /* - * The azure file share snapshot version. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "snapshot") - private Object snapshot; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @return the userId value. - */ - public Object userId() { - return this.userId; - } - - /** - * Set the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @param userId the userId value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withUserId(Object userId) { - this.userId = userId; - return this; - } - - /** - * Get the password property: Password to logon the server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the server. - * - * @param password the password value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure File resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure File resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Get the fileShare property: The azure file share name. It is required when auth with accountKey/sasToken. Type: - * string (or Expression with resultType string). - * - * @return the fileShare value. - */ - public Object fileShare() { - return this.fileShare; - } - - /** - * Set the fileShare property: The azure file share name. It is required when auth with accountKey/sasToken. Type: - * string (or Expression with resultType string). - * - * @param fileShare the fileShare value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withFileShare(Object fileShare) { - this.fileShare = fileShare; - return this; - } - - /** - * Get the snapshot property: The azure file share snapshot version. Type: string (or Expression with resultType - * string). - * - * @return the snapshot value. - */ - public Object snapshot() { - return this.snapshot; - } - - /** - * Set the snapshot property: The azure file share snapshot version. Type: string (or Expression with resultType - * string). - * - * @param snapshot the snapshot value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withSnapshot(Object snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureFileStorageLinkedServiceTypeProperties object itself. - */ - public AzureFileStorageLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().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/AzureFunctionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java deleted file mode 100644 index f1ae71fe92882..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java +++ /dev/null @@ -1,155 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureFunctionActivityMethod; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Function activity type properties. */ -@Fluent -public final class AzureFunctionActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureFunctionActivityTypeProperties.class); - - /* - * Rest API method for target endpoint. - */ - @JsonProperty(value = "method", required = true) - private AzureFunctionActivityMethod method; - - /* - * Name of the Function that the Azure Function Activity will call. Type: - * string (or Expression with resultType string) - */ - @JsonProperty(value = "functionName", required = true) - private Object functionName; - - /* - * Represents the headers that will be sent to the request. For example, to - * set the language and type on a request: "headers" : { "Accept-Language": - * "en-us", "Content-Type": "application/json" }. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "headers") - private Object headers; - - /* - * Represents the payload that will be sent to the endpoint. Required for - * POST/PUT method, not allowed for GET method Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "body") - private Object body; - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public AzureFunctionActivityMethod method() { - return this.method; - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withMethod(AzureFunctionActivityMethod method) { - this.method = method; - return this; - } - - /** - * Get the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or - * Expression with resultType string). - * - * @return the functionName value. - */ - public Object functionName() { - return this.functionName; - } - - /** - * Set the functionName property: Name of the Function that the Azure Function Activity will call. Type: string (or - * Expression with resultType string). - * - * @param functionName the functionName value to set. - * @return the AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withFunctionName(Object functionName) { - this.functionName = functionName; - return this; - } - - /** - * Get the headers property: Represents the headers that will be sent to the request. For example, to set the - * language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. - * Type: string (or Expression with resultType string). - * - * @return the headers value. - */ - public Object headers() { - return this.headers; - } - - /** - * Set the headers property: Represents the headers that will be sent to the request. For example, to set the - * language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. - * Type: string (or Expression with resultType string). - * - * @param headers the headers value to set. - * @return the AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withHeaders(Object headers) { - this.headers = headers; - return this; - } - - /** - * Get the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, - * not allowed for GET method Type: string (or Expression with resultType string). - * - * @return the body value. - */ - public Object body() { - return this.body; - } - - /** - * Set the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, - * not allowed for GET method Type: string (or Expression with resultType string). - * - * @param body the body value to set. - * @return the AzureFunctionActivityTypeProperties object itself. - */ - public AzureFunctionActivityTypeProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (method() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property method in model AzureFunctionActivityTypeProperties")); - } - if (functionName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property functionName in model AzureFunctionActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java deleted file mode 100644 index 391bd87a67bc7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java +++ /dev/null @@ -1,204 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Function linked service properties. */ -@Fluent -public final class AzureFunctionLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureFunctionLinkedServiceTypeProperties.class); - - /* - * The endpoint of the Azure Function App. URL will be in the format - * https://.azurewebsites.net. - */ - @JsonProperty(value = "functionAppUrl", required = true) - private Object functionAppUrl; - - /* - * Function or Host key for Azure Function App. - */ - @JsonProperty(value = "functionKey") - private SecretBase functionKey; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /* - * Allowed token audiences for azure function. - */ - @JsonProperty(value = "resourceId") - private Object resourceId; - - /* - * Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authentication") - private Object authentication; - - /** - * Get the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format - * https://<accountName>.azurewebsites.net. - * - * @return the functionAppUrl value. - */ - public Object functionAppUrl() { - return this.functionAppUrl; - } - - /** - * Set the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format - * https://<accountName>.azurewebsites.net. - * - * @param functionAppUrl the functionAppUrl value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withFunctionAppUrl(Object functionAppUrl) { - this.functionAppUrl = functionAppUrl; - return this; - } - - /** - * Get the functionKey property: Function or Host key for Azure Function App. - * - * @return the functionKey value. - */ - public SecretBase functionKey() { - return this.functionKey; - } - - /** - * Set the functionKey property: Function or Host key for Azure Function App. - * - * @param functionKey the functionKey value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withFunctionKey(SecretBase functionKey) { - this.functionKey = functionKey; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Get the resourceId property: Allowed token audiences for azure function. - * - * @return the resourceId value. - */ - public Object resourceId() { - return this.resourceId; - } - - /** - * Set the resourceId property: Allowed token audiences for azure function. - * - * @param resourceId the resourceId value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withResourceId(Object resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * Get the authentication property: Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Type of authentication (Required to specify MSI) used to connect to - * AzureFunction. Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureFunctionLinkedServiceTypeProperties object itself. - */ - public AzureFunctionLinkedServiceTypeProperties withAuthentication(Object authentication) { - this.authentication = authentication; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (functionAppUrl() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property functionAppUrl in model AzureFunctionLinkedServiceTypeProperties")); - } - if (functionKey() != null) { - functionKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java deleted file mode 100644 index c2bc0492c24f3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java +++ /dev/null @@ -1,89 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Key Vault linked service properties. */ -@Fluent -public final class AzureKeyVaultLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureKeyVaultLinkedServiceTypeProperties.class); - - /* - * The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "baseUrl", required = true) - private Object baseUrl; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string - * (or Expression with resultType string). - * - * @return the baseUrl value. - */ - public Object baseUrl() { - return this.baseUrl; - } - - /** - * Set the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string - * (or Expression with resultType string). - * - * @param baseUrl the baseUrl value to set. - * @return the AzureKeyVaultLinkedServiceTypeProperties object itself. - */ - public AzureKeyVaultLinkedServiceTypeProperties withBaseUrl(Object baseUrl) { - this.baseUrl = baseUrl; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureKeyVaultLinkedServiceTypeProperties object itself. - */ - public AzureKeyVaultLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (baseUrl() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property baseUrl in model AzureKeyVaultLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java deleted file mode 100644 index c62aadf45e7c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java +++ /dev/null @@ -1,151 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureMLWebServiceFile; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Azure ML Batch Execution activity properties. */ -@Fluent -public final class AzureMLBatchExecutionActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLBatchExecutionActivityTypeProperties.class); - - /* - * Key,Value pairs to be passed to the Azure ML Batch Execution Service - * endpoint. Keys must match the names of web service parameters defined in - * the published Azure ML web service. Values will be passed in the - * GlobalParameters property of the Azure ML batch execution request. - */ - @JsonProperty(value = "globalParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map globalParameters; - - /* - * Key,Value pairs, mapping the names of Azure ML endpoint's Web Service - * Outputs to AzureMLWebServiceFile objects specifying the output Blob - * locations. This information will be passed in the WebServiceOutputs - * property of the Azure ML batch execution request. - */ - @JsonProperty(value = "webServiceOutputs") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map webServiceOutputs; - - /* - * Key,Value pairs, mapping the names of Azure ML endpoint's Web Service - * Inputs to AzureMLWebServiceFile objects specifying the input Blob - * locations.. This information will be passed in the WebServiceInputs - * property of the Azure ML batch execution request. - */ - @JsonProperty(value = "webServiceInputs") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map webServiceInputs; - - /** - * Get the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. - * Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be - * passed in the GlobalParameters property of the Azure ML batch execution request. - * - * @return the globalParameters value. - */ - public Map globalParameters() { - return this.globalParameters; - } - - /** - * Set the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. - * Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be - * passed in the GlobalParameters property of the Azure ML batch execution request. - * - * @param globalParameters the globalParameters value to set. - * @return the AzureMLBatchExecutionActivityTypeProperties object itself. - */ - public AzureMLBatchExecutionActivityTypeProperties withGlobalParameters(Map globalParameters) { - this.globalParameters = globalParameters; - return this; - } - - /** - * Get the webServiceOutputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs - * to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the - * WebServiceOutputs property of the Azure ML batch execution request. - * - * @return the webServiceOutputs value. - */ - public Map webServiceOutputs() { - return this.webServiceOutputs; - } - - /** - * Set the webServiceOutputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs - * to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the - * WebServiceOutputs property of the Azure ML batch execution request. - * - * @param webServiceOutputs the webServiceOutputs value to set. - * @return the AzureMLBatchExecutionActivityTypeProperties object itself. - */ - public AzureMLBatchExecutionActivityTypeProperties withWebServiceOutputs( - Map webServiceOutputs) { - this.webServiceOutputs = webServiceOutputs; - return this; - } - - /** - * Get the webServiceInputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs - * to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the - * WebServiceInputs property of the Azure ML batch execution request. - * - * @return the webServiceInputs value. - */ - public Map webServiceInputs() { - return this.webServiceInputs; - } - - /** - * Set the webServiceInputs property: Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs - * to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the - * WebServiceInputs property of the Azure ML batch execution request. - * - * @param webServiceInputs the webServiceInputs value to set. - * @return the AzureMLBatchExecutionActivityTypeProperties object itself. - */ - public AzureMLBatchExecutionActivityTypeProperties withWebServiceInputs( - Map webServiceInputs) { - this.webServiceInputs = webServiceInputs; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (webServiceOutputs() != null) { - webServiceOutputs() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (webServiceInputs() != null) { - webServiceInputs() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java deleted file mode 100644 index 8613443f9d1bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java +++ /dev/null @@ -1,279 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Execute Pipeline activity properties. */ -@Fluent -public final class AzureMLExecutePipelineActivityTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(AzureMLExecutePipelineActivityTypeProperties.class); - - /* - * ID of the published Azure ML pipeline. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "mlPipelineId") - private Object mlPipelineId; - - /* - * ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "mlPipelineEndpointId") - private Object mlPipelineEndpointId; - - /* - * Version of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "version") - private Object version; - - /* - * Run history experiment name of the pipeline run. This information will - * be passed in the ExperimentName property of the published pipeline - * execution request. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "experimentName") - private Object experimentName; - - /* - * Key,Value pairs to be passed to the published Azure ML pipeline - * endpoint. Keys must match the names of pipeline parameters defined in - * the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution - * request. Type: object with key value pairs (or Expression with - * resultType object). - */ - @JsonProperty(value = "mlPipelineParameters") - private Object mlPipelineParameters; - - /* - * Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the - * published pipeline execution request. Type: object with key value pairs - * (or Expression with resultType object). - */ - @JsonProperty(value = "dataPathAssignments") - private Object dataPathAssignments; - - /* - * The parent Azure ML Service pipeline run id. This information will be - * passed in the ParentRunId property of the published pipeline execution - * request. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "mlParentRunId") - private Object mlParentRunId; - - /* - * Whether to continue execution of other steps in the PipelineRun if a - * step fails. This information will be passed in the continueOnStepFailure - * property of the published pipeline execution request. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "continueOnStepFailure") - private Object continueOnStepFailure; - - /** - * Get the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType - * string). - * - * @return the mlPipelineId value. - */ - public Object mlPipelineId() { - return this.mlPipelineId; - } - - /** - * Set the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType - * string). - * - * @param mlPipelineId the mlPipelineId value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlPipelineId(Object mlPipelineId) { - this.mlPipelineId = mlPipelineId; - return this; - } - - /** - * Get the mlPipelineEndpointId property: ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - * - * @return the mlPipelineEndpointId value. - */ - public Object mlPipelineEndpointId() { - return this.mlPipelineEndpointId; - } - - /** - * Set the mlPipelineEndpointId property: ID of the published Azure ML pipeline endpoint. Type: string (or - * Expression with resultType string). - * - * @param mlPipelineEndpointId the mlPipelineEndpointId value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlPipelineEndpointId(Object mlPipelineEndpointId) { - this.mlPipelineEndpointId = mlPipelineEndpointId; - return this; - } - - /** - * Get the version property: Version of the published Azure ML pipeline endpoint. Type: string (or Expression with - * resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Version of the published Azure ML pipeline endpoint. Type: string (or Expression with - * resultType string). - * - * @param version the version value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withVersion(Object version) { - this.version = version; - return this; - } - - /** - * Get the experimentName property: Run history experiment name of the pipeline run. This information will be passed - * in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with - * resultType string). - * - * @return the experimentName value. - */ - public Object experimentName() { - return this.experimentName; - } - - /** - * Set the experimentName property: Run history experiment name of the pipeline run. This information will be passed - * in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with - * resultType string). - * - * @param experimentName the experimentName value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withExperimentName(Object experimentName) { - this.experimentName = experimentName; - return this; - } - - /** - * Get the mlPipelineParameters property: Key,Value pairs to be passed to the published Azure ML pipeline endpoint. - * Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or - * Expression with resultType object). - * - * @return the mlPipelineParameters value. - */ - public Object mlPipelineParameters() { - return this.mlPipelineParameters; - } - - /** - * Set the mlPipelineParameters property: Key,Value pairs to be passed to the published Azure ML pipeline endpoint. - * Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the - * ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or - * Expression with resultType object). - * - * @param mlPipelineParameters the mlPipelineParameters value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlPipelineParameters(Object mlPipelineParameters) { - this.mlPipelineParameters = mlPipelineParameters; - return this; - } - - /** - * Get the dataPathAssignments property: Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: - * object with key value pairs (or Expression with resultType object). - * - * @return the dataPathAssignments value. - */ - public Object dataPathAssignments() { - return this.dataPathAssignments; - } - - /** - * Set the dataPathAssignments property: Dictionary used for changing data path assignments without retraining. - * Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: - * object with key value pairs (or Expression with resultType object). - * - * @param dataPathAssignments the dataPathAssignments value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withDataPathAssignments(Object dataPathAssignments) { - this.dataPathAssignments = dataPathAssignments; - return this; - } - - /** - * Get the mlParentRunId property: The parent Azure ML Service pipeline run id. This information will be passed in - * the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType - * string). - * - * @return the mlParentRunId value. - */ - public Object mlParentRunId() { - return this.mlParentRunId; - } - - /** - * Set the mlParentRunId property: The parent Azure ML Service pipeline run id. This information will be passed in - * the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType - * string). - * - * @param mlParentRunId the mlParentRunId value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withMlParentRunId(Object mlParentRunId) { - this.mlParentRunId = mlParentRunId; - return this; - } - - /** - * Get the continueOnStepFailure property: Whether to continue execution of other steps in the PipelineRun if a step - * fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution - * request. Type: boolean (or Expression with resultType boolean). - * - * @return the continueOnStepFailure value. - */ - public Object continueOnStepFailure() { - return this.continueOnStepFailure; - } - - /** - * Set the continueOnStepFailure property: Whether to continue execution of other steps in the PipelineRun if a step - * fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution - * request. Type: boolean (or Expression with resultType boolean). - * - * @param continueOnStepFailure the continueOnStepFailure value to set. - * @return the AzureMLExecutePipelineActivityTypeProperties object itself. - */ - public AzureMLExecutePipelineActivityTypeProperties withContinueOnStepFailure(Object continueOnStepFailure) { - this.continueOnStepFailure = continueOnStepFailure; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java deleted file mode 100644 index b8650ef514c87..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java +++ /dev/null @@ -1,273 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Studio Web Service linked service properties. */ -@Fluent -public final class AzureMLLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLLinkedServiceTypeProperties.class); - - /* - * The Batch Execution REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "mlEndpoint", required = true) - private Object mlEndpoint; - - /* - * The API key for accessing the Azure ML model endpoint. - */ - @JsonProperty(value = "apiKey", required = true) - private SecretBase apiKey; - - /* - * The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "updateResourceEndpoint") - private Object updateResourceEndpoint; - - /* - * The ID of the service principal used to authenticate against the - * ARM-based updateResourceEndpoint of an Azure ML Studio web service. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against the - * ARM-based updateResourceEndpoint of an Azure ML Studio web service. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Type of authentication (Required to specify MSI) used to connect to - * AzureML. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authentication") - private Object authentication; - - /** - * Get the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: - * string (or Expression with resultType string). - * - * @return the mlEndpoint value. - */ - public Object mlEndpoint() { - return this.mlEndpoint; - } - - /** - * Set the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: - * string (or Expression with resultType string). - * - * @param mlEndpoint the mlEndpoint value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withMlEndpoint(Object mlEndpoint) { - this.mlEndpoint = mlEndpoint; - return this; - } - - /** - * Get the apiKey property: The API key for accessing the Azure ML model endpoint. - * - * @return the apiKey value. - */ - public SecretBase apiKey() { - return this.apiKey; - } - - /** - * Set the apiKey property: The API key for accessing the Azure ML model endpoint. - * - * @param apiKey the apiKey value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withApiKey(SecretBase apiKey) { - this.apiKey = apiKey; - return this; - } - - /** - * Get the updateResourceEndpoint property: The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - * - * @return the updateResourceEndpoint value. - */ - public Object updateResourceEndpoint() { - return this.updateResourceEndpoint; - } - - /** - * Set the updateResourceEndpoint property: The Update Resource REST URL for an Azure ML Studio Web Service - * endpoint. Type: string (or Expression with resultType string). - * - * @param updateResourceEndpoint the updateResourceEndpoint value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withUpdateResourceEndpoint(Object updateResourceEndpoint) { - this.updateResourceEndpoint = updateResourceEndpoint; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against the ARM-based - * updateResourceEndpoint of an Azure ML Studio web service. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the authentication property: Type of authentication (Required to specify MSI) used to connect to AzureML. - * Type: string (or Expression with resultType string). - * - * @return the authentication value. - */ - public Object authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Type of authentication (Required to specify MSI) used to connect to AzureML. - * Type: string (or Expression with resultType string). - * - * @param authentication the authentication value to set. - * @return the AzureMLLinkedServiceTypeProperties object itself. - */ - public AzureMLLinkedServiceTypeProperties withAuthentication(Object authentication) { - this.authentication = authentication; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (mlEndpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mlEndpoint in model AzureMLLinkedServiceTypeProperties")); - } - if (apiKey() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property apiKey in model AzureMLLinkedServiceTypeProperties")); - } else { - apiKey().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java deleted file mode 100644 index 60d3add8d3cac..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java +++ /dev/null @@ -1,253 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Service linked service properties. */ -@Fluent -public final class AzureMLServiceLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLServiceLinkedServiceTypeProperties.class); - - /* - * Azure ML Service workspace subscription ID. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "subscriptionId", required = true) - private Object subscriptionId; - - /* - * Azure ML Service workspace resource group name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "resourceGroupName", required = true) - private Object resourceGroupName; - - /* - * Azure ML Service workspace name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "mlWorkspaceName", required = true) - private Object mlWorkspaceName; - - /* - * The ID of the service principal used to authenticate against the - * endpoint of a published Azure ML Service pipeline. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against the - * endpoint of a published Azure ML Service pipeline. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with - * resultType string). - * - * @return the subscriptionId value. - */ - public Object subscriptionId() { - return this.subscriptionId; - } - - /** - * Set the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with - * resultType string). - * - * @param subscriptionId the subscriptionId value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withSubscriptionId(Object subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** - * Get the resourceGroupName property: Azure ML Service workspace resource group name. Type: string (or Expression - * with resultType string). - * - * @return the resourceGroupName value. - */ - public Object resourceGroupName() { - return this.resourceGroupName; - } - - /** - * Set the resourceGroupName property: Azure ML Service workspace resource group name. Type: string (or Expression - * with resultType string). - * - * @param resourceGroupName the resourceGroupName value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withResourceGroupName(Object resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - /** - * Get the mlWorkspaceName property: Azure ML Service workspace name. Type: string (or Expression with resultType - * string). - * - * @return the mlWorkspaceName value. - */ - public Object mlWorkspaceName() { - return this.mlWorkspaceName; - } - - /** - * Set the mlWorkspaceName property: Azure ML Service workspace name. Type: string (or Expression with resultType - * string). - * - * @param mlWorkspaceName the mlWorkspaceName value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withMlWorkspaceName(Object mlWorkspaceName) { - this.mlWorkspaceName = mlWorkspaceName; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against the endpoint of - * a published Azure ML Service pipeline. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against the endpoint of - * a published Azure ML Service pipeline. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against the endpoint - * of a published Azure ML Service pipeline. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against the endpoint - * of a published Azure ML Service pipeline. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMLServiceLinkedServiceTypeProperties object itself. - */ - public AzureMLServiceLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (subscriptionId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property subscriptionId in model AzureMLServiceLinkedServiceTypeProperties")); - } - if (resourceGroupName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceGroupName in model" - + " AzureMLServiceLinkedServiceTypeProperties")); - } - if (mlWorkspaceName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mlWorkspaceName in model" - + " AzureMLServiceLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java deleted file mode 100644 index 7cef610fe0623..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java +++ /dev/null @@ -1,139 +0,0 @@ -// 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.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure ML Update Resource activity properties. */ -@Fluent -public final class AzureMLUpdateResourceActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLUpdateResourceActivityTypeProperties.class); - - /* - * Name of the Trained Model module in the Web Service experiment to be - * updated. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "trainedModelName", required = true) - private Object trainedModelName; - - /* - * Name of Azure Storage linked service holding the .ilearner file that - * will be uploaded by the update operation. - */ - @JsonProperty(value = "trainedModelLinkedServiceName", required = true) - private LinkedServiceReference trainedModelLinkedServiceName; - - /* - * The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "trainedModelFilePath", required = true) - private Object trainedModelFilePath; - - /** - * Get the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. - * Type: string (or Expression with resultType string). - * - * @return the trainedModelName value. - */ - public Object trainedModelName() { - return this.trainedModelName; - } - - /** - * Set the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. - * Type: string (or Expression with resultType string). - * - * @param trainedModelName the trainedModelName value to set. - * @return the AzureMLUpdateResourceActivityTypeProperties object itself. - */ - public AzureMLUpdateResourceActivityTypeProperties withTrainedModelName(Object trainedModelName) { - this.trainedModelName = trainedModelName; - return this; - } - - /** - * Get the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file - * that will be uploaded by the update operation. - * - * @return the trainedModelLinkedServiceName value. - */ - public LinkedServiceReference trainedModelLinkedServiceName() { - return this.trainedModelLinkedServiceName; - } - - /** - * Set the trainedModelLinkedServiceName property: Name of Azure Storage linked service holding the .ilearner file - * that will be uploaded by the update operation. - * - * @param trainedModelLinkedServiceName the trainedModelLinkedServiceName value to set. - * @return the AzureMLUpdateResourceActivityTypeProperties object itself. - */ - public AzureMLUpdateResourceActivityTypeProperties withTrainedModelLinkedServiceName( - LinkedServiceReference trainedModelLinkedServiceName) { - this.trainedModelLinkedServiceName = trainedModelLinkedServiceName; - return this; - } - - /** - * Get the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType - * string). - * - * @return the trainedModelFilePath value. - */ - public Object trainedModelFilePath() { - return this.trainedModelFilePath; - } - - /** - * Set the trainedModelFilePath property: The relative file path in trainedModelLinkedService to represent the - * .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType - * string). - * - * @param trainedModelFilePath the trainedModelFilePath value to set. - * @return the AzureMLUpdateResourceActivityTypeProperties object itself. - */ - public AzureMLUpdateResourceActivityTypeProperties withTrainedModelFilePath(Object trainedModelFilePath) { - this.trainedModelFilePath = trainedModelFilePath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (trainedModelName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property trainedModelName in model" - + " AzureMLUpdateResourceActivityTypeProperties")); - } - if (trainedModelLinkedServiceName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property trainedModelLinkedServiceName in model" - + " AzureMLUpdateResourceActivityTypeProperties")); - } else { - trainedModelLinkedServiceName().validate(); - } - if (trainedModelFilePath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property trainedModelFilePath in model" - + " AzureMLUpdateResourceActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java deleted file mode 100644 index 2c9f9b08528e2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Database for MariaDB linked service properties. */ -@Fluent -public final class AzureMariaDBLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMariaDBLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureMariaDBLinkedServiceTypeProperties object itself. - */ - public AzureMariaDBLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the AzureMariaDBLinkedServiceTypeProperties object itself. - */ - public AzureMariaDBLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMariaDBLinkedServiceTypeProperties object itself. - */ - public AzureMariaDBLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java deleted file mode 100644 index 81b931d29468f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,119 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure MySQL database linked service properties. */ -@Fluent -public final class AzureMySqlLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMySqlLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureMySqlLinkedServiceTypeProperties object itself. - */ - public AzureMySqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureMySqlLinkedServiceTypeProperties object itself. - */ - public AzureMySqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureMySqlLinkedServiceTypeProperties object itself. - */ - public AzureMySqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AzureMySqlLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java deleted file mode 100644 index a877f20a37506..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,82 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure MySQL database dataset properties. */ -@Fluent -public final class AzureMySqlTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMySqlTableDatasetTypeProperties.class); - - /* - * The Azure MySQL database table name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The name of Azure MySQL database table. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the AzureMySqlTableDatasetTypeProperties object itself. - */ - public AzureMySqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureMySqlTableDatasetTypeProperties object itself. - */ - public AzureMySqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void 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 deleted file mode 100644 index b8a6e5d6711df..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure PostgreSQL linked service properties. */ -@Fluent -public final class AzurePostgreSqlLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzurePostgreSqlLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. - */ - public AzurePostgreSqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. - */ - public AzurePostgreSqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzurePostgreSqlLinkedServiceTypeProperties object itself. - */ - public AzurePostgreSqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java deleted file mode 100644 index 4f1f52a34153f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure PostgreSQL dataset properties. */ -@Fluent -public final class AzurePostgreSqlTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzurePostgreSqlTableDatasetTypeProperties.class); - - /* - * The table name of the Azure PostgreSQL database which includes both - * schema and table. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Azure PostgreSQL database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Azure PostgreSQL database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. - * Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. - * Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AzurePostgreSqlTableDatasetTypeProperties object itself. - */ - public AzurePostgreSqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzurePostgreSqlTableDatasetTypeProperties object itself. - */ - public AzurePostgreSqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzurePostgreSqlTableDatasetTypeProperties object itself. - */ - public AzurePostgreSqlTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java deleted file mode 100644 index db32f13181937..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class AzureSearchIndexDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSearchIndexDatasetTypeProperties.class); - - /* - * The name of the Azure Search Index. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "indexName", required = true) - private Object indexName; - - /** - * Get the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @return the indexName value. - */ - public Object indexName() { - return this.indexName; - } - - /** - * Set the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @param indexName the indexName value to set. - * @return the AzureSearchIndexDatasetTypeProperties object itself. - */ - public AzureSearchIndexDatasetTypeProperties withIndexName(Object indexName) { - this.indexName = indexName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (indexName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property indexName in model AzureSearchIndexDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java deleted file mode 100644 index dce016d59729e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java +++ /dev/null @@ -1,117 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Windows Azure Search Service linked service properties. */ -@Fluent -public final class AzureSearchLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSearchLinkedServiceTypeProperties.class); - - /* - * URL for Azure Search service. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Admin Key for Azure Search service - */ - @JsonProperty(value = "key") - private SecretBase key; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: URL for Azure Search service. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: URL for Azure Search service. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the AzureSearchLinkedServiceTypeProperties object itself. - */ - public AzureSearchLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the key property: Admin Key for Azure Search service. - * - * @return the key value. - */ - public SecretBase key() { - return this.key; - } - - /** - * Set the key property: Admin Key for Azure Search service. - * - * @param key the key value to set. - * @return the AzureSearchLinkedServiceTypeProperties object itself. - */ - public AzureSearchLinkedServiceTypeProperties withKey(SecretBase key) { - this.key = key; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSearchLinkedServiceTypeProperties object itself. - */ - public AzureSearchLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model AzureSearchLinkedServiceTypeProperties")); - } - if (key() != null) { - key().validate(); - } - } -} 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 deleted file mode 100644 index 6472b9e180442..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java +++ /dev/null @@ -1,274 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Data Warehouse linked service properties. */ -@Fluent -public final class AzureSqlDWLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlDWLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Data Warehouse. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL Data - * Warehouse. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Data Warehouse. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlDWLinkedServiceTypeProperties object itself. - */ - public AzureSqlDWLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AzureSqlDWLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java deleted file mode 100644 index 04a4f83ffa483..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Data Warehouse dataset properties. */ -@Fluent -public final class AzureSqlDWTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlDWTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the Azure SQL Data Warehouse. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Azure SQL Data Warehouse. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlDWTableDatasetTypeProperties object itself. - */ - public AzureSqlDWTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzureSqlDWTableDatasetTypeProperties object itself. - */ - public AzureSqlDWTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureSqlDWTableDatasetTypeProperties object itself. - */ - public AzureSqlDWTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void 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 deleted file mode 100644 index f540ec692bb18..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,305 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Database linked service properties. */ -@Fluent -public final class AzureSqlDatabaseLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlDatabaseLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Database. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Database. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Database. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Database. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlDatabaseLinkedServiceTypeProperties object itself. - */ - public AzureSqlDatabaseLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " AzureSqlDatabaseLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - if (credential() != null) { - credential().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 deleted file mode 100644 index c3225bef598cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java +++ /dev/null @@ -1,304 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.azure.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Managed Instance linked service properties. */ -@Fluent -public final class AzureSqlMILinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlMILinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The ID of the service principal used to authenticate against Azure SQL - * Managed Instance. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure SQL - * Managed Instance. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the AzureSqlMILinkedServiceTypeProperties object itself. - */ - public AzureSqlMILinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model AzureSqlMILinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java deleted file mode 100644 index 0ca13f6f13874..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL Managed Instance dataset properties. */ -@Fluent -public final class AzureSqlMITableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlMITableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the Azure SQL Managed Instance. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Azure SQL Managed Instance dataset. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlMITableDatasetTypeProperties object itself. - */ - public AzureSqlMITableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AzureSqlMITableDatasetTypeProperties object itself. - */ - public AzureSqlMITableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression - * with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression - * with resultType string). - * - * @param table the table value to set. - * @return the AzureSqlMITableDatasetTypeProperties object itself. - */ - public AzureSqlMITableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java deleted file mode 100644 index 9bc6a5e769a0e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure SQL dataset properties. */ -@Fluent -public final class AzureSqlTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the Azure SQL database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Azure SQL database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the AzureSqlTableDatasetTypeProperties object itself. - */ - public AzureSqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AzureSqlTableDatasetTypeProperties object itself. - */ - public AzureSqlTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Azure SQL database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureSqlTableDatasetTypeProperties object itself. - */ - public AzureSqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java deleted file mode 100644 index fce63a0ee617b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,172 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Storage linked service properties. */ -@Fluent -public final class AzureStorageLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureStorageLinkedServiceTypeProperties.class); - - /* - * The connection string. It is mutually exclusive with sasUri property. - * Type: string, SecureString or AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of accountKey in connection string. - */ - @JsonProperty(value = "accountKey") - private AzureKeyVaultSecretReference accountKey; - - /* - * SAS URI of the Azure Storage resource. It is mutually exclusive with - * connectionString property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "sasUri") - private Object sasUri; - - /* - * The Azure key vault secret reference of sasToken in sas uri. - */ - @JsonProperty(value = "sasToken") - private AzureKeyVaultSecretReference sasToken; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private String encryptedCredential; - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: - * string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @return the accountKey value. - */ - public AzureKeyVaultSecretReference accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The Azure key vault secret reference of accountKey in connection string. - * - * @param accountKey the accountKey value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the sasUri value. - */ - public Object sasUri() { - return this.sasUri; - } - - /** - * Set the sasUri property: SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString - * property. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param sasUri the sasUri value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withSasUri(Object sasUri) { - this.sasUri = sasUri; - return this; - } - - /** - * Get the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @return the sasToken value. - */ - public AzureKeyVaultSecretReference sasToken() { - return this.sasToken; - } - - /** - * Set the sasToken property: The Azure key vault secret reference of sasToken in sas uri. - * - * @param sasToken the sasToken value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) { - this.sasToken = sasToken; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the AzureStorageLinkedServiceTypeProperties object itself. - */ - public AzureStorageLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void 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/AzureTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java deleted file mode 100644 index b916486055a31..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Azure Table dataset properties. */ -@Fluent -public final class AzureTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureTableDatasetTypeProperties.class); - - /* - * The table name of the Azure Table storage. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "tableName", required = true) - private Object tableName; - - /** - * Get the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the AzureTableDatasetTypeProperties object itself. - */ - public AzureTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (tableName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tableName in model AzureTableDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java deleted file mode 100644 index 3ba60283998c1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java +++ /dev/null @@ -1,89 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Binary dataset properties. */ -@Fluent -public final class BinaryDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BinaryDatasetTypeProperties.class); - - /* - * The location of the Binary storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data compression method used for the binary dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the location property: The location of the Binary storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the Binary storage. - * - * @param location the location value to set. - * @return the BinaryDatasetTypeProperties object itself. - */ - public BinaryDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the compression property: The data compression method used for the binary dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the binary dataset. - * - * @param compression the compression value to set. - * @return the BinaryDatasetTypeProperties object itself. - */ - public BinaryDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model BinaryDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java deleted file mode 100644 index a07996eda183b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java +++ /dev/null @@ -1,182 +0,0 @@ -// 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.resourcemanager.datafactory.models.BlobEventTypes; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Blob Events Trigger properties. */ -@Fluent -public final class BlobEventsTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BlobEventsTriggerTypeProperties.class); - - /* - * The blob path must begin with the pattern provided for trigger to fire. - * For example, '/records/blobs/december/' will only fire the trigger for - * blobs in the december folder under the records container. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - */ - @JsonProperty(value = "blobPathBeginsWith") - private String blobPathBeginsWith; - - /* - * The blob path must end with the pattern provided for trigger to fire. - * For example, 'december/boxes.csv' will only fire the trigger for blobs - * named boxes in a december folder. At least one of these must be - * provided: blobPathBeginsWith, blobPathEndsWith. - */ - @JsonProperty(value = "blobPathEndsWith") - private String blobPathEndsWith; - - /* - * If set to true, blobs with zero bytes will be ignored. - */ - @JsonProperty(value = "ignoreEmptyBlobs") - private Boolean ignoreEmptyBlobs; - - /* - * The type of events that cause this trigger to fire. - */ - @JsonProperty(value = "events", required = true) - private List events; - - /* - * The ARM resource ID of the Storage Account. - */ - @JsonProperty(value = "scope", required = true) - private String scope; - - /** - * Get the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For - * example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records - * container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @return the blobPathBeginsWith value. - */ - public String blobPathBeginsWith() { - return this.blobPathBeginsWith; - } - - /** - * Set the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For - * example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records - * container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @param blobPathBeginsWith the blobPathBeginsWith value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withBlobPathBeginsWith(String blobPathBeginsWith) { - this.blobPathBeginsWith = blobPathBeginsWith; - return this; - } - - /** - * Get the blobPathEndsWith property: The blob path must end with the pattern provided for trigger to fire. For - * example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @return the blobPathEndsWith value. - */ - public String blobPathEndsWith() { - return this.blobPathEndsWith; - } - - /** - * Set the blobPathEndsWith property: The blob path must end with the pattern provided for trigger to fire. For - * example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one - * of these must be provided: blobPathBeginsWith, blobPathEndsWith. - * - * @param blobPathEndsWith the blobPathEndsWith value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withBlobPathEndsWith(String blobPathEndsWith) { - this.blobPathEndsWith = blobPathEndsWith; - return this; - } - - /** - * Get the ignoreEmptyBlobs property: If set to true, blobs with zero bytes will be ignored. - * - * @return the ignoreEmptyBlobs value. - */ - public Boolean ignoreEmptyBlobs() { - return this.ignoreEmptyBlobs; - } - - /** - * Set the ignoreEmptyBlobs property: If set to true, blobs with zero bytes will be ignored. - * - * @param ignoreEmptyBlobs the ignoreEmptyBlobs value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withIgnoreEmptyBlobs(Boolean ignoreEmptyBlobs) { - this.ignoreEmptyBlobs = ignoreEmptyBlobs; - return this; - } - - /** - * Get the events property: The type of events that cause this trigger to fire. - * - * @return the events value. - */ - public List events() { - return this.events; - } - - /** - * Set the events property: The type of events that cause this trigger to fire. - * - * @param events the events value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withEvents(List events) { - this.events = events; - return this; - } - - /** - * Get the scope property: The ARM resource ID of the Storage Account. - * - * @return the scope value. - */ - public String scope() { - return this.scope; - } - - /** - * Set the scope property: The ARM resource ID of the Storage Account. - * - * @param scope the scope value to set. - * @return the BlobEventsTriggerTypeProperties object itself. - */ - public BlobEventsTriggerTypeProperties withScope(String scope) { - this.scope = scope; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (events() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property events in model BlobEventsTriggerTypeProperties")); - } - if (scope() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scope in model BlobEventsTriggerTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java deleted file mode 100644 index faf2aeaa3c5f7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java +++ /dev/null @@ -1,117 +0,0 @@ -// 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.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Blob Trigger properties. */ -@Fluent -public final class BlobTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BlobTriggerTypeProperties.class); - - /* - * The path of the container/folder that will trigger the pipeline. - */ - @JsonProperty(value = "folderPath", required = true) - private String folderPath; - - /* - * The max number of parallel files to handle when it is triggered. - */ - @JsonProperty(value = "maxConcurrency", required = true) - private int maxConcurrency; - - /* - * The Azure Storage linked service reference. - */ - @JsonProperty(value = "linkedService", required = true) - private LinkedServiceReference linkedService; - - /** - * Get the folderPath property: The path of the container/folder that will trigger the pipeline. - * - * @return the folderPath value. - */ - public String folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the container/folder that will trigger the pipeline. - * - * @param folderPath the folderPath value to set. - * @return the BlobTriggerTypeProperties object itself. - */ - public BlobTriggerTypeProperties withFolderPath(String folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the maxConcurrency property: The max number of parallel files to handle when it is triggered. - * - * @return the maxConcurrency value. - */ - public int maxConcurrency() { - return this.maxConcurrency; - } - - /** - * Set the maxConcurrency property: The max number of parallel files to handle when it is triggered. - * - * @param maxConcurrency the maxConcurrency value to set. - * @return the BlobTriggerTypeProperties object itself. - */ - public BlobTriggerTypeProperties withMaxConcurrency(int maxConcurrency) { - this.maxConcurrency = maxConcurrency; - return this; - } - - /** - * Get the linkedService property: The Azure Storage linked service reference. - * - * @return the linkedService value. - */ - public LinkedServiceReference linkedService() { - return this.linkedService; - } - - /** - * Set the linkedService property: The Azure Storage linked service reference. - * - * @param linkedService the linkedService value to set. - * @return the BlobTriggerTypeProperties object itself. - */ - public BlobTriggerTypeProperties withLinkedService(LinkedServiceReference linkedService) { - this.linkedService = linkedService; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (folderPath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property folderPath in model BlobTriggerTypeProperties")); - } - if (linkedService() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedService in model BlobTriggerTypeProperties")); - } else { - linkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java deleted file mode 100644 index 7a07648c94988..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java +++ /dev/null @@ -1,200 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Cassandra linked service properties. */ -@Fluent -public final class CassandraLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CassandraLinkedServiceTypeProperties.class); - - /* - * Host name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * AuthenticationType to be used for connection. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The port for the connection. Type: integer (or Expression with - * resultType integer). - */ - @JsonProperty(value = "port") - private Object port; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: Host name for connection. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name for connection. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. Type: string (or Expression - * with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. Type: string (or Expression - * with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the port property: The port for the connection. Type: integer (or Expression with resultType integer). - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port for the connection. Type: integer (or Expression with resultType integer). - * - * @param port the port value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CassandraLinkedServiceTypeProperties object itself. - */ - public CassandraLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model CassandraLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java deleted file mode 100644 index b402045cde67c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java +++ /dev/null @@ -1,82 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Cassandra dataset properties. */ -@Fluent -public final class CassandraTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CassandraTableDatasetTypeProperties.class); - - /* - * The table name of the Cassandra database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The keyspace of the Cassandra database. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "keyspace") - private Object keyspace; - - /** - * Get the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the CassandraTableDatasetTypeProperties object itself. - */ - public CassandraTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the keyspace value. - */ - public Object keyspace() { - return this.keyspace; - } - - /** - * Set the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param keyspace the keyspace value to set. - * @return the CassandraTableDatasetTypeProperties object itself. - */ - public CassandraTableDatasetTypeProperties withKeyspace(Object keyspace) { - this.keyspace = keyspace; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java deleted file mode 100644 index 414b4739fa2d8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java +++ /dev/null @@ -1,92 +0,0 @@ -// 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.resourcemanager.datafactory.models.PipelineReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Chaining Trigger properties. */ -@Fluent -public final class ChainingTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ChainingTriggerTypeProperties.class); - - /* - * Upstream Pipelines. - */ - @JsonProperty(value = "dependsOn", required = true) - private List dependsOn; - - /* - * Run Dimension property that needs to be emitted by upstream pipelines. - */ - @JsonProperty(value = "runDimension", required = true) - private String runDimension; - - /** - * Get the dependsOn property: Upstream Pipelines. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.dependsOn; - } - - /** - * Set the dependsOn property: Upstream Pipelines. - * - * @param dependsOn the dependsOn value to set. - * @return the ChainingTriggerTypeProperties object itself. - */ - public ChainingTriggerTypeProperties withDependsOn(List dependsOn) { - this.dependsOn = dependsOn; - return this; - } - - /** - * Get the runDimension property: Run Dimension property that needs to be emitted by upstream pipelines. - * - * @return the runDimension value. - */ - public String runDimension() { - return this.runDimension; - } - - /** - * Set the runDimension property: Run Dimension property that needs to be emitted by upstream pipelines. - * - * @param runDimension the runDimension value to set. - * @return the ChainingTriggerTypeProperties object itself. - */ - public ChainingTriggerTypeProperties withRunDimension(String runDimension) { - this.runDimension = runDimension; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dependsOn() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dependsOn in model ChainingTriggerTypeProperties")); - } else { - dependsOn().forEach(e -> e.validate()); - } - if (runDimension() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property runDimension in model ChainingTriggerTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java deleted file mode 100644 index 412eb21f701ab..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java +++ /dev/null @@ -1,123 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Cmdkey command custom setup type properties. */ -@Fluent -public final class CmdkeySetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CmdkeySetupTypeProperties.class); - - /* - * The server name of data source access. - */ - @JsonProperty(value = "targetName", required = true) - private Object targetName; - - /* - * The user name of data source access. - */ - @JsonProperty(value = "userName", required = true) - private Object username; - - /* - * The password of data source access. - */ - @JsonProperty(value = "password", required = true) - private SecretBase password; - - /** - * Get the targetName property: The server name of data source access. - * - * @return the targetName value. - */ - public Object targetName() { - return this.targetName; - } - - /** - * Set the targetName property: The server name of data source access. - * - * @param targetName the targetName value to set. - * @return the CmdkeySetupTypeProperties object itself. - */ - public CmdkeySetupTypeProperties withTargetName(Object targetName) { - this.targetName = targetName; - return this; - } - - /** - * Get the username property: The user name of data source access. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name of data source access. - * - * @param username the username value to set. - * @return the CmdkeySetupTypeProperties object itself. - */ - public CmdkeySetupTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password of data source access. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password of data source access. - * - * @param password the password value to set. - * @return the CmdkeySetupTypeProperties object itself. - */ - public CmdkeySetupTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (targetName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property targetName in model CmdkeySetupTypeProperties")); - } - if (username() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model CmdkeySetupTypeProperties")); - } - if (password() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model CmdkeySetupTypeProperties")); - } else { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java deleted file mode 100644 index ef8f10f36e533..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java +++ /dev/null @@ -1,52 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Common Data Service for Apps entity dataset properties. */ -@Fluent -public final class CommonDataServiceForAppsEntityDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(CommonDataServiceForAppsEntityDatasetTypeProperties.class); - - /* - * The logical name of the entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "entityName") - private Object entityName; - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.entityName; - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the CommonDataServiceForAppsEntityDatasetTypeProperties object itself. - */ - public CommonDataServiceForAppsEntityDatasetTypeProperties withEntityName(Object entityName) { - this.entityName = entityName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java deleted file mode 100644 index 2c5adde1d31ec..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,424 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Common Data Service for Apps linked service properties. */ -@Fluent -public final class CommonDataServiceForAppsLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(CommonDataServiceForAppsLinkedServiceTypeProperties.class); - - /* - * The deployment type of the Common Data Service for Apps instance. - * 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' - * for Common Data Service for Apps on-premises with Ifd. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "deploymentType", required = true) - private Object deploymentType; - - /* - * The host name of the on-premises Common Data Service for Apps server. - * The property is required for on-prem and not allowed for online. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "hostName") - private Object hostname; - - /* - * The port of on-premises Common Data Service for Apps server. The - * property is required for on-prem and not allowed for online. Default is - * 443. Type: integer (or Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The URL to the Microsoft Common Data Service for Apps server. The - * property is required for on-line and not allowed for on-prem. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUri") - private Object serviceUri; - - /* - * The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are - * more than one Common Data Service for Apps instances associated with the - * user. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "organizationName") - private Object organizationName; - - /* - * The authentication type to connect to Common Data Service for Apps - * server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd - * scenario. 'AADServicePrincipal' for Server-To-Server authentication in - * online scenario. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authenticationType", required = true) - private Object authenticationType; - - /* - * User name to access the Common Data Service for Apps instance. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password to access the Common Data Service for Apps instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for - * Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with - * Ifd. Type: string (or Expression with resultType string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.deploymentType; - } - - /** - * Set the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for - * Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with - * Ifd. Type: string (or Expression with resultType string). - * - * @param deploymentType the deploymentType value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withDeploymentType(Object deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Common Data Service for Apps server. The property is - * required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.hostname; - } - - /** - * Set the hostname property: The host name of the on-premises Common Data Service for Apps server. The property is - * required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withHostname(Object hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the port property: The port of on-premises Common Data Service for Apps server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port of on-premises Common Data Service for Apps server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), - * minimum: 0. - * - * @param port the port value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Common Data Service for Apps server. The property is - * required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.serviceUri; - } - - /** - * Set the serviceUri property: The URL to the Microsoft Common Data Service for Apps server. The property is - * required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServiceUri(Object serviceUri) { - this.serviceUri = serviceUri; - return this; - } - - /** - * Get the organizationName property: The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are more than one Common Data Service for - * Apps instances associated with the user. Type: string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.organizationName; - } - - /** - * Set the organizationName property: The organization name of the Common Data Service for Apps instance. The - * property is required for on-prem and required for online when there are more than one Common Data Service for - * Apps instances associated with the user. Type: string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withOrganizationName(Object organizationName) { - this.organizationName = organizationName; - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Common Data Service for Apps server. - * 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for - * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to connect to Common Data Service for Apps server. - * 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for - * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name to access the Common Data Service for Apps instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name to access the Common Data Service for Apps instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the Common Data Service for Apps instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the Common Data Service for Apps instance. - * - * @param password the password value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withServicePrincipalCredential( - SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself. - */ - public CommonDataServiceForAppsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (deploymentType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property deploymentType in model" - + " CommonDataServiceForAppsLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " CommonDataServiceForAppsLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java deleted file mode 100644 index 8b963d0b4f3fe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java +++ /dev/null @@ -1,266 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Concur Service linked service properties. */ -@Fluent -public final class ConcurLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ConcurLinkedServiceTypeProperties.class); - - /* - * Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * Application client_id supplied by Concur App Management. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The user name that you use to access Concur Service. - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * username field. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the clientId property: Application client_id supplied by Concur App Management. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Application client_id supplied by Concur App Management. - * - * @param clientId the clientId value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the username property: The user name that you use to access Concur Service. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Concur Service. - * - * @param username the username value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username field. - * - * @param password the password value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ConcurLinkedServiceTypeProperties object itself. - */ - public ConcurLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model ConcurLinkedServiceTypeProperties")); - } - if (username() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model ConcurLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java deleted file mode 100644 index a9605e704b1ab..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java +++ /dev/null @@ -1,476 +0,0 @@ -// 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.resourcemanager.datafactory.models.CopySink; -import com.azure.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.LogSettings; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings; -import com.azure.resourcemanager.datafactory.models.SkipErrorFile; -import com.azure.resourcemanager.datafactory.models.StagingSettings; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Copy activity properties. */ -@Fluent -public final class CopyActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CopyActivityTypeProperties.class); - - /* - * Copy activity source. - */ - @JsonProperty(value = "source", required = true) - private CopySource source; - - /* - * Copy activity sink. - */ - @JsonProperty(value = "sink", required = true) - private CopySink sink; - - /* - * Copy activity translator. If not specified, tabular translator is used. - */ - @JsonProperty(value = "translator") - private Object translator; - - /* - * Specifies whether to copy data via an interim staging. Default value is - * false. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableStaging") - private Object enableStaging; - - /* - * Specifies interim staging settings when EnableStaging is true. - */ - @JsonProperty(value = "stagingSettings") - private StagingSettings stagingSettings; - - /* - * Maximum number of concurrent sessions opened on the source or sink to - * avoid overloading the data store. Type: integer (or Expression with - * resultType integer), minimum: 0. - */ - @JsonProperty(value = "parallelCopies") - private Object parallelCopies; - - /* - * Maximum number of data integration units that can be used to perform - * this data movement. Type: integer (or Expression with resultType - * integer), minimum: 0. - */ - @JsonProperty(value = "dataIntegrationUnits") - private Object dataIntegrationUnits; - - /* - * Whether to skip incompatible row. Default value is false. Type: boolean - * (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableSkipIncompatibleRow") - private Object enableSkipIncompatibleRow; - - /* - * Redirect incompatible row settings when EnableSkipIncompatibleRow is - * true. - */ - @JsonProperty(value = "redirectIncompatibleRowSettings") - private RedirectIncompatibleRowSettings redirectIncompatibleRowSettings; - - /* - * (Deprecated. Please use LogSettings) Log storage settings customer need - * to provide when enabling session log. - */ - @JsonProperty(value = "logStorageSettings") - private LogStorageSettings logStorageSettings; - - /* - * Log settings customer needs provide when enabling log. - */ - @JsonProperty(value = "logSettings") - private LogSettings logSettings; - - /* - * Preserve Rules. - */ - @JsonProperty(value = "preserveRules") - private List preserveRules; - - /* - * Preserve rules. - */ - @JsonProperty(value = "preserve") - private List preserve; - - /* - * Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - */ - @JsonProperty(value = "validateDataConsistency") - private Object validateDataConsistency; - - /* - * Specify the fault tolerance for data consistency. - */ - @JsonProperty(value = "skipErrorFile") - private SkipErrorFile skipErrorFile; - - /** - * Get the source property: Copy activity source. - * - * @return the source value. - */ - public CopySource source() { - return this.source; - } - - /** - * Set the source property: Copy activity source. - * - * @param source the source value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withSource(CopySource source) { - this.source = source; - return this; - } - - /** - * Get the sink property: Copy activity sink. - * - * @return the sink value. - */ - public CopySink sink() { - return this.sink; - } - - /** - * Set the sink property: Copy activity sink. - * - * @param sink the sink value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withSink(CopySink sink) { - this.sink = sink; - return this; - } - - /** - * Get the translator property: Copy activity translator. If not specified, tabular translator is used. - * - * @return the translator value. - */ - public Object translator() { - return this.translator; - } - - /** - * Set the translator property: Copy activity translator. If not specified, tabular translator is used. - * - * @param translator the translator value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withTranslator(Object translator) { - this.translator = translator; - return this; - } - - /** - * Get the enableStaging property: Specifies whether to copy data via an interim staging. Default value is false. - * Type: boolean (or Expression with resultType boolean). - * - * @return the enableStaging value. - */ - public Object enableStaging() { - return this.enableStaging; - } - - /** - * Set the enableStaging property: Specifies whether to copy data via an interim staging. Default value is false. - * Type: boolean (or Expression with resultType boolean). - * - * @param enableStaging the enableStaging value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withEnableStaging(Object enableStaging) { - this.enableStaging = enableStaging; - return this; - } - - /** - * Get the stagingSettings property: Specifies interim staging settings when EnableStaging is true. - * - * @return the stagingSettings value. - */ - public StagingSettings stagingSettings() { - return this.stagingSettings; - } - - /** - * Set the stagingSettings property: Specifies interim staging settings when EnableStaging is true. - * - * @param stagingSettings the stagingSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withStagingSettings(StagingSettings stagingSettings) { - this.stagingSettings = stagingSettings; - return this; - } - - /** - * Get the parallelCopies property: Maximum number of concurrent sessions opened on the source or sink to avoid - * overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the parallelCopies value. - */ - public Object parallelCopies() { - return this.parallelCopies; - } - - /** - * Set the parallelCopies property: Maximum number of concurrent sessions opened on the source or sink to avoid - * overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param parallelCopies the parallelCopies value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withParallelCopies(Object parallelCopies) { - this.parallelCopies = parallelCopies; - return this; - } - - /** - * Get the dataIntegrationUnits property: Maximum number of data integration units that can be used to perform this - * data movement. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the dataIntegrationUnits value. - */ - public Object dataIntegrationUnits() { - return this.dataIntegrationUnits; - } - - /** - * Set the dataIntegrationUnits property: Maximum number of data integration units that can be used to perform this - * data movement. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param dataIntegrationUnits the dataIntegrationUnits value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withDataIntegrationUnits(Object dataIntegrationUnits) { - this.dataIntegrationUnits = dataIntegrationUnits; - return this; - } - - /** - * Get the enableSkipIncompatibleRow property: Whether to skip incompatible row. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the enableSkipIncompatibleRow value. - */ - public Object enableSkipIncompatibleRow() { - return this.enableSkipIncompatibleRow; - } - - /** - * Set the enableSkipIncompatibleRow property: Whether to skip incompatible row. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param enableSkipIncompatibleRow the enableSkipIncompatibleRow value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withEnableSkipIncompatibleRow(Object enableSkipIncompatibleRow) { - this.enableSkipIncompatibleRow = enableSkipIncompatibleRow; - return this; - } - - /** - * Get the redirectIncompatibleRowSettings property: Redirect incompatible row settings when - * EnableSkipIncompatibleRow is true. - * - * @return the redirectIncompatibleRowSettings value. - */ - public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { - return this.redirectIncompatibleRowSettings; - } - - /** - * Set the redirectIncompatibleRowSettings property: Redirect incompatible row settings when - * EnableSkipIncompatibleRow is true. - * - * @param redirectIncompatibleRowSettings the redirectIncompatibleRowSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withRedirectIncompatibleRowSettings( - RedirectIncompatibleRowSettings redirectIncompatibleRowSettings) { - this.redirectIncompatibleRowSettings = redirectIncompatibleRowSettings; - return this; - } - - /** - * Get the logStorageSettings property: (Deprecated. Please use LogSettings) Log storage settings customer need to - * provide when enabling session log. - * - * @return the logStorageSettings value. - */ - public LogStorageSettings logStorageSettings() { - return this.logStorageSettings; - } - - /** - * Set the logStorageSettings property: (Deprecated. Please use LogSettings) Log storage settings customer need to - * provide when enabling session log. - * - * @param logStorageSettings the logStorageSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withLogStorageSettings(LogStorageSettings logStorageSettings) { - this.logStorageSettings = logStorageSettings; - return this; - } - - /** - * Get the logSettings property: Log settings customer needs provide when enabling log. - * - * @return the logSettings value. - */ - public LogSettings logSettings() { - return this.logSettings; - } - - /** - * Set the logSettings property: Log settings customer needs provide when enabling log. - * - * @param logSettings the logSettings value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withLogSettings(LogSettings logSettings) { - this.logSettings = logSettings; - return this; - } - - /** - * Get the preserveRules property: Preserve Rules. - * - * @return the preserveRules value. - */ - public List preserveRules() { - return this.preserveRules; - } - - /** - * Set the preserveRules property: Preserve Rules. - * - * @param preserveRules the preserveRules value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withPreserveRules(List preserveRules) { - this.preserveRules = preserveRules; - return this; - } - - /** - * Get the preserve property: Preserve rules. - * - * @return the preserve value. - */ - public List preserve() { - return this.preserve; - } - - /** - * Set the preserve property: Preserve rules. - * - * @param preserve the preserve value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withPreserve(List preserve) { - this.preserve = preserve; - return this; - } - - /** - * Get the validateDataConsistency property: Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - * - * @return the validateDataConsistency value. - */ - public Object validateDataConsistency() { - return this.validateDataConsistency; - } - - /** - * Set the validateDataConsistency property: Whether to enable Data Consistency validation. Type: boolean (or - * Expression with resultType boolean). - * - * @param validateDataConsistency the validateDataConsistency value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withValidateDataConsistency(Object validateDataConsistency) { - this.validateDataConsistency = validateDataConsistency; - return this; - } - - /** - * Get the skipErrorFile property: Specify the fault tolerance for data consistency. - * - * @return the skipErrorFile value. - */ - public SkipErrorFile skipErrorFile() { - return this.skipErrorFile; - } - - /** - * Set the skipErrorFile property: Specify the fault tolerance for data consistency. - * - * @param skipErrorFile the skipErrorFile value to set. - * @return the CopyActivityTypeProperties object itself. - */ - public CopyActivityTypeProperties withSkipErrorFile(SkipErrorFile skipErrorFile) { - this.skipErrorFile = skipErrorFile; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (source() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property source in model CopyActivityTypeProperties")); - } else { - source().validate(); - } - if (sink() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property sink in model CopyActivityTypeProperties")); - } else { - sink().validate(); - } - if (stagingSettings() != null) { - stagingSettings().validate(); - } - if (redirectIncompatibleRowSettings() != null) { - redirectIncompatibleRowSettings().validate(); - } - if (logStorageSettings() != null) { - logStorageSettings().validate(); - } - if (logSettings() != null) { - logSettings().validate(); - } - if (skipErrorFile() != null) { - skipErrorFile().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java deleted file mode 100644 index 0d6ce4dddb07c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbLinkedServiceTypeProperties.java +++ /dev/null @@ -1,369 +0,0 @@ -// 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.resourcemanager.datafactory.models.CosmosDbConnectionMode; -import com.azure.resourcemanager.datafactory.models.CosmosDbServicePrincipalCredentialType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB linked service properties. */ -@Fluent -public final class CosmosDbLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CosmosDbLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The endpoint of the Azure CosmosDB account. Type: string (or Expression - * with resultType string) - */ - @JsonProperty(value = "accountEndpoint") - private Object accountEndpoint; - - /* - * The name of the database. Type: string (or Expression with resultType - * string) - */ - @JsonProperty(value = "database") - private Object database; - - /* - * The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "accountKey") - private SecretBase accountKey; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The name or ID of the tenant to which the service principal belongs. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The connection mode used to access CosmosDB account. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "connectionMode") - private CosmosDbConnectionMode connectionMode; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with - * resultType string). - * - * @return the accountEndpoint value. - */ - public Object accountEndpoint() { - return this.accountEndpoint; - } - - /** - * Set the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with - * resultType string). - * - * @param accountEndpoint the accountEndpoint value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withAccountEndpoint(Object accountEndpoint) { - this.accountEndpoint = accountEndpoint; - return this; - } - - /** - * Get the database property: The name of the database. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the database. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - * - * @return the accountKey value. - */ - public SecretBase accountKey() { - return this.accountKey; - } - - /** - * Set the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or - * AzureKeyVaultSecretReference. - * - * @param accountKey the accountKey value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withAccountKey(SecretBase accountKey) { - this.accountKey = accountKey; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withServicePrincipalCredentialType( - CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression - * with resultType string). - * - * @return the connectionMode value. - */ - public CosmosDbConnectionMode connectionMode() { - return this.connectionMode; - } - - /** - * Set the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression - * with resultType string). - * - * @param connectionMode the connectionMode value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withConnectionMode(CosmosDbConnectionMode connectionMode) { - this.connectionMode = connectionMode; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CosmosDbLinkedServiceTypeProperties object itself. - */ - public CosmosDbLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accountKey() != null) { - accountKey().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiCollectionDatasetTypeProperties.java deleted file mode 100644 index ee637f5c40b77..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,61 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB (MongoDB API) database dataset properties. */ -@Fluent -public final class CosmosDbMongoDbApiCollectionDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(CosmosDbMongoDbApiCollectionDatasetTypeProperties.class); - - /* - * The collection name of the CosmosDB (MongoDB API) database. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "collection", required = true) - private Object collection; - - /** - * Get the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.collection; - } - - /** - * Set the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @param collection the collection value to set. - * @return the CosmosDbMongoDbApiCollectionDatasetTypeProperties object itself. - */ - public CosmosDbMongoDbApiCollectionDatasetTypeProperties withCollection(Object collection) { - this.collection = collection; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collection() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collection in model" - + " CosmosDbMongoDbApiCollectionDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java deleted file mode 100644 index d6e31c84bd6d7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbMongoDbApiLinkedServiceTypeProperties.java +++ /dev/null @@ -1,127 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB (MongoDB API) linked service properties. */ -@Fluent -public final class CosmosDbMongoDbApiLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(CosmosDbMongoDbApiLinkedServiceTypeProperties.class); - - /* - * Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "isServerVersionAbove32") - private Object isServerVersionAbove32; - - /* - * The CosmosDB (MongoDB API) connection string. Type: string, SecureString - * or AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The name of the CosmosDB (MongoDB API) database that you want to access. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /** - * Get the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the isServerVersionAbove32 value. - */ - public Object isServerVersionAbove32() { - return this.isServerVersionAbove32; - } - - /** - * Set the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param isServerVersionAbove32 the isServerVersionAbove32 value to set. - * @return the CosmosDbMongoDbApiLinkedServiceTypeProperties object itself. - */ - public CosmosDbMongoDbApiLinkedServiceTypeProperties withIsServerVersionAbove32(Object isServerVersionAbove32) { - this.isServerVersionAbove32 = isServerVersionAbove32; - return this; - } - - /** - * Get the connectionString property: The CosmosDB (MongoDB API) connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The CosmosDB (MongoDB API) connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CosmosDbMongoDbApiLinkedServiceTypeProperties object itself. - */ - public CosmosDbMongoDbApiLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the database property: The name of the CosmosDB (MongoDB API) database that you want to access. Type: string - * (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the CosmosDB (MongoDB API) database that you want to access. Type: string - * (or Expression with resultType string). - * - * @param database the database value to set. - * @return the CosmosDbMongoDbApiLinkedServiceTypeProperties object itself. - */ - public CosmosDbMongoDbApiLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " CosmosDbMongoDbApiLinkedServiceTypeProperties")); - } - if (database() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model CosmosDbMongoDbApiLinkedServiceTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbSqlApiCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbSqlApiCollectionDatasetTypeProperties.java deleted file mode 100644 index 398ff8ea39916..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CosmosDbSqlApiCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,61 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** CosmosDB (SQL API) Collection dataset properties. */ -@Fluent -public final class CosmosDbSqlApiCollectionDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(CosmosDbSqlApiCollectionDatasetTypeProperties.class); - - /* - * CosmosDB (SQL API) collection name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "collectionName", required = true) - private Object collectionName; - - /** - * Get the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.collectionName; - } - - /** - * Set the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the CosmosDbSqlApiCollectionDatasetTypeProperties object itself. - */ - public CosmosDbSqlApiCollectionDatasetTypeProperties withCollectionName(Object collectionName) { - this.collectionName = collectionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collectionName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collectionName in model" - + " CosmosDbSqlApiCollectionDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java deleted file mode 100644 index 58491194f5690..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CouchbaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Couchbase server linked service properties. */ -@Fluent -public final class CouchbaseLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CouchbaseLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of credString in connection string. - */ - @JsonProperty(value = "credString") - private AzureKeyVaultSecretReference credString; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the CouchbaseLinkedServiceTypeProperties object itself. - */ - public CouchbaseLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the credString property: The Azure key vault secret reference of credString in connection string. - * - * @return the credString value. - */ - public AzureKeyVaultSecretReference credString() { - return this.credString; - } - - /** - * Set the credString property: The Azure key vault secret reference of credString in connection string. - * - * @param credString the credString value to set. - * @return the CouchbaseLinkedServiceTypeProperties object itself. - */ - public CouchbaseLinkedServiceTypeProperties withCredString(AzureKeyVaultSecretReference credString) { - this.credString = credString; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the CouchbaseLinkedServiceTypeProperties object itself. - */ - public CouchbaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (credString() != null) { - credString().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java deleted file mode 100644 index 6ec94d176d6f5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomActivityTypeProperties.java +++ /dev/null @@ -1,237 +0,0 @@ -// 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.resourcemanager.datafactory.models.CustomActivityReferenceObject; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Custom activity properties. */ -@Fluent -public final class CustomActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomActivityTypeProperties.class); - - /* - * Command for custom activity Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "command", required = true) - private Object command; - - /* - * Resource linked service reference. - */ - @JsonProperty(value = "resourceLinkedService") - private LinkedServiceReference resourceLinkedService; - - /* - * Folder path for resource files Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * Reference objects - */ - @JsonProperty(value = "referenceObjects") - private CustomActivityReferenceObject referenceObjects; - - /* - * User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full - * responsibility to consume and interpret the content defined. - */ - @JsonProperty(value = "extendedProperties") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map extendedProperties; - - /* - * The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - */ - @JsonProperty(value = "retentionTimeInDays") - private Object retentionTimeInDays; - - /* - * Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - */ - @JsonProperty(value = "autoUserSpecification") - private Object autoUserSpecification; - - /** - * Get the command property: Command for custom activity Type: string (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.command; - } - - /** - * Set the command property: Command for custom activity Type: string (or Expression with resultType string). - * - * @param command the command value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withCommand(Object command) { - this.command = command; - return this; - } - - /** - * Get the resourceLinkedService property: Resource linked service reference. - * - * @return the resourceLinkedService value. - */ - public LinkedServiceReference resourceLinkedService() { - return this.resourceLinkedService; - } - - /** - * Set the resourceLinkedService property: Resource linked service reference. - * - * @param resourceLinkedService the resourceLinkedService value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withResourceLinkedService(LinkedServiceReference resourceLinkedService) { - this.resourceLinkedService = resourceLinkedService; - return this; - } - - /** - * Get the folderPath property: Folder path for resource files Type: string (or Expression with resultType string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: Folder path for resource files Type: string (or Expression with resultType string). - * - * @param folderPath the folderPath value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the referenceObjects property: Reference objects. - * - * @return the referenceObjects value. - */ - public CustomActivityReferenceObject referenceObjects() { - return this.referenceObjects; - } - - /** - * Set the referenceObjects property: Reference objects. - * - * @param referenceObjects the referenceObjects value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withReferenceObjects(CustomActivityReferenceObject referenceObjects) { - this.referenceObjects = referenceObjects; - return this; - } - - /** - * Get the extendedProperties property: User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full responsibility to consume and interpret the - * content defined. - * - * @return the extendedProperties value. - */ - public Map extendedProperties() { - return this.extendedProperties; - } - - /** - * Set the extendedProperties property: User defined property bag. There is no restriction on the keys or values - * that can be used. The user specified custom activity has the full responsibility to consume and interpret the - * content defined. - * - * @param extendedProperties the extendedProperties value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withExtendedProperties(Map extendedProperties) { - this.extendedProperties = extendedProperties; - return this; - } - - /** - * Get the retentionTimeInDays property: The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - * - * @return the retentionTimeInDays value. - */ - public Object retentionTimeInDays() { - return this.retentionTimeInDays; - } - - /** - * Set the retentionTimeInDays property: The retention time for the files submitted for custom activity. Type: - * double (or Expression with resultType double). - * - * @param retentionTimeInDays the retentionTimeInDays value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withRetentionTimeInDays(Object retentionTimeInDays) { - this.retentionTimeInDays = retentionTimeInDays; - return this; - } - - /** - * Get the autoUserSpecification property: Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - * - * @return the autoUserSpecification value. - */ - public Object autoUserSpecification() { - return this.autoUserSpecification; - } - - /** - * Set the autoUserSpecification property: Elevation level and scope for the user, default is nonadmin task. Type: - * string (or Expression with resultType double). - * - * @param autoUserSpecification the autoUserSpecification value to set. - * @return the CustomActivityTypeProperties object itself. - */ - public CustomActivityTypeProperties withAutoUserSpecification(Object autoUserSpecification) { - this.autoUserSpecification = autoUserSpecification; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (command() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property command in model CustomActivityTypeProperties")); - } - if (resourceLinkedService() != null) { - resourceLinkedService().validate(); - } - if (referenceObjects() != null) { - referenceObjects().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomEventsTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomEventsTriggerTypeProperties.java deleted file mode 100644 index 74e628daf44ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CustomEventsTriggerTypeProperties.java +++ /dev/null @@ -1,149 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Custom Events Trigger properties. */ -@Fluent -public final class CustomEventsTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomEventsTriggerTypeProperties.class); - - /* - * The event subject must begin with the pattern provided for trigger to - * fire. At least one of these must be provided: subjectBeginsWith, - * subjectEndsWith. - */ - @JsonProperty(value = "subjectBeginsWith") - private String subjectBeginsWith; - - /* - * The event subject must end with the pattern provided for trigger to - * fire. At least one of these must be provided: subjectBeginsWith, - * subjectEndsWith. - */ - @JsonProperty(value = "subjectEndsWith") - private String subjectEndsWith; - - /* - * The list of event types that cause this trigger to fire. - */ - @JsonProperty(value = "events", required = true) - private List events; - - /* - * The ARM resource ID of the Azure Event Grid Topic. - */ - @JsonProperty(value = "scope", required = true) - private String scope; - - /** - * Get the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. - * At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @return the subjectBeginsWith value. - */ - public String subjectBeginsWith() { - return this.subjectBeginsWith; - } - - /** - * Set the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. - * At least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @param subjectBeginsWith the subjectBeginsWith value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withSubjectBeginsWith(String subjectBeginsWith) { - this.subjectBeginsWith = subjectBeginsWith; - return this; - } - - /** - * Get the subjectEndsWith property: The event subject must end with the pattern provided for trigger to fire. At - * least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @return the subjectEndsWith value. - */ - public String subjectEndsWith() { - return this.subjectEndsWith; - } - - /** - * Set the subjectEndsWith property: The event subject must end with the pattern provided for trigger to fire. At - * least one of these must be provided: subjectBeginsWith, subjectEndsWith. - * - * @param subjectEndsWith the subjectEndsWith value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withSubjectEndsWith(String subjectEndsWith) { - this.subjectEndsWith = subjectEndsWith; - return this; - } - - /** - * Get the events property: The list of event types that cause this trigger to fire. - * - * @return the events value. - */ - public List events() { - return this.events; - } - - /** - * Set the events property: The list of event types that cause this trigger to fire. - * - * @param events the events value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withEvents(List events) { - this.events = events; - return this; - } - - /** - * Get the scope property: The ARM resource ID of the Azure Event Grid Topic. - * - * @return the scope value. - */ - public String scope() { - return this.scope; - } - - /** - * Set the scope property: The ARM resource ID of the Azure Event Grid Topic. - * - * @param scope the scope value to set. - * @return the CustomEventsTriggerTypeProperties object itself. - */ - public CustomEventsTriggerTypeProperties withScope(String scope) { - this.scope = scope; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (events() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property events in model CustomEventsTriggerTypeProperties")); - } - if (scope() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scope in model CustomEventsTriggerTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java deleted file mode 100644 index 37663e7025720..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataLakeAnalyticsUsqlActivityTypeProperties.java +++ /dev/null @@ -1,246 +0,0 @@ -// 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.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** DataLakeAnalyticsU-SQL activity properties. */ -@Fluent -public final class DataLakeAnalyticsUsqlActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsUsqlActivityTypeProperties.class); - - /* - * Case-sensitive path to folder that contains the U-SQL script. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "scriptPath", required = true) - private Object scriptPath; - - /* - * Script linked service reference. - */ - @JsonProperty(value = "scriptLinkedService", required = true) - private LinkedServiceReference scriptLinkedService; - - /* - * The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), - * minimum: 1. - */ - @JsonProperty(value = "degreeOfParallelism") - private Object degreeOfParallelism; - - /* - * Determines which jobs out of all that are queued should be selected to - * run first. The lower the number, the higher the priority. Default value - * is 1000. Type: integer (or Expression with resultType integer), minimum: - * 1. - */ - @JsonProperty(value = "priority") - private Object priority; - - /* - * Parameters for U-SQL job request. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Runtime version of the U-SQL engine to use. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "runtimeVersion") - private Object runtimeVersion; - - /* - * Compilation mode of U-SQL. Must be one of these values : Semantic, Full - * and SingleBox. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "compilationMode") - private Object compilationMode; - - /** - * Get the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or - * Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.scriptPath; - } - - /** - * Set the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or - * Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withScriptPath(Object scriptPath) { - this.scriptPath = scriptPath; - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.scriptLinkedService; - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withScriptLinkedService( - LinkedServiceReference scriptLinkedService) { - this.scriptLinkedService = scriptLinkedService; - return this; - } - - /** - * Get the degreeOfParallelism property: The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - * - * @return the degreeOfParallelism value. - */ - public Object degreeOfParallelism() { - return this.degreeOfParallelism; - } - - /** - * Set the degreeOfParallelism property: The maximum number of nodes simultaneously used to run the job. Default - * value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - * - * @param degreeOfParallelism the degreeOfParallelism value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withDegreeOfParallelism(Object degreeOfParallelism) { - this.degreeOfParallelism = degreeOfParallelism; - return this; - } - - /** - * Get the priority property: Determines which jobs out of all that are queued should be selected to run first. The - * lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType - * integer), minimum: 1. - * - * @return the priority value. - */ - public Object priority() { - return this.priority; - } - - /** - * Set the priority property: Determines which jobs out of all that are queued should be selected to run first. The - * lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType - * integer), minimum: 1. - * - * @param priority the priority value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withPriority(Object priority) { - this.priority = priority; - return this; - } - - /** - * Get the parameters property: Parameters for U-SQL job request. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters for U-SQL job request. - * - * @param parameters the parameters value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the runtimeVersion property: Runtime version of the U-SQL engine to use. Type: string (or Expression with - * resultType string). - * - * @return the runtimeVersion value. - */ - public Object runtimeVersion() { - return this.runtimeVersion; - } - - /** - * Set the runtimeVersion property: Runtime version of the U-SQL engine to use. Type: string (or Expression with - * resultType string). - * - * @param runtimeVersion the runtimeVersion value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withRuntimeVersion(Object runtimeVersion) { - this.runtimeVersion = runtimeVersion; - return this; - } - - /** - * Get the compilationMode property: Compilation mode of U-SQL. Must be one of these values : Semantic, Full and - * SingleBox. Type: string (or Expression with resultType string). - * - * @return the compilationMode value. - */ - public Object compilationMode() { - return this.compilationMode; - } - - /** - * Set the compilationMode property: Compilation mode of U-SQL. Must be one of these values : Semantic, Full and - * SingleBox. Type: string (or Expression with resultType string). - * - * @param compilationMode the compilationMode value to set. - * @return the DataLakeAnalyticsUsqlActivityTypeProperties object itself. - */ - public DataLakeAnalyticsUsqlActivityTypeProperties withCompilationMode(Object compilationMode) { - this.compilationMode = compilationMode; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (scriptPath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scriptPath in model DataLakeAnalyticsUsqlActivityTypeProperties")); - } - if (scriptLinkedService() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scriptLinkedService in model" - + " DataLakeAnalyticsUsqlActivityTypeProperties")); - } else { - scriptLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksNotebookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksNotebookActivityTypeProperties.java deleted file mode 100644 index c166454b74f71..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksNotebookActivityTypeProperties.java +++ /dev/null @@ -1,121 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Databricks Notebook activity properties. */ -@Fluent -public final class DatabricksNotebookActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabricksNotebookActivityTypeProperties.class); - - /* - * The absolute path of the notebook to be run in the Databricks Workspace. - * This path must begin with a slash. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "notebookPath", required = true) - private Object notebookPath; - - /* - * Base parameters to be used for each run of this job.If the notebook - * takes a parameter that is not specified, the default value from the - * notebook will be used. - */ - @JsonProperty(value = "baseParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map baseParameters; - - /* - * A list of libraries to be installed on the cluster that will execute the - * job. - */ - @JsonProperty(value = "libraries") - private List> libraries; - - /** - * Get the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path - * must begin with a slash. Type: string (or Expression with resultType string). - * - * @return the notebookPath value. - */ - public Object notebookPath() { - return this.notebookPath; - } - - /** - * Set the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path - * must begin with a slash. Type: string (or Expression with resultType string). - * - * @param notebookPath the notebookPath value to set. - * @return the DatabricksNotebookActivityTypeProperties object itself. - */ - public DatabricksNotebookActivityTypeProperties withNotebookPath(Object notebookPath) { - this.notebookPath = notebookPath; - return this; - } - - /** - * Get the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a - * parameter that is not specified, the default value from the notebook will be used. - * - * @return the baseParameters value. - */ - public Map baseParameters() { - return this.baseParameters; - } - - /** - * Set the baseParameters property: Base parameters to be used for each run of this job.If the notebook takes a - * parameter that is not specified, the default value from the notebook will be used. - * - * @param baseParameters the baseParameters value to set. - * @return the DatabricksNotebookActivityTypeProperties object itself. - */ - public DatabricksNotebookActivityTypeProperties withBaseParameters(Map baseParameters) { - this.baseParameters = baseParameters; - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.libraries; - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksNotebookActivityTypeProperties object itself. - */ - public DatabricksNotebookActivityTypeProperties withLibraries(List> libraries) { - this.libraries = libraries; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (notebookPath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property notebookPath in model DatabricksNotebookActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkJarActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkJarActivityTypeProperties.java deleted file mode 100644 index d947bfbabd034..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkJarActivityTypeProperties.java +++ /dev/null @@ -1,115 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Databricks SparkJar activity properties. */ -@Fluent -public final class DatabricksSparkJarActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabricksSparkJarActivityTypeProperties.class); - - /* - * The full name of the class containing the main method to be executed. - * This class must be contained in a JAR provided as a library. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "mainClassName", required = true) - private Object mainClassName; - - /* - * Parameters that will be passed to the main method. - */ - @JsonProperty(value = "parameters") - private List parameters; - - /* - * A list of libraries to be installed on the cluster that will execute the - * job. - */ - @JsonProperty(value = "libraries") - private List> libraries; - - /** - * Get the mainClassName property: The full name of the class containing the main method to be executed. This class - * must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). - * - * @return the mainClassName value. - */ - public Object mainClassName() { - return this.mainClassName; - } - - /** - * Set the mainClassName property: The full name of the class containing the main method to be executed. This class - * must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). - * - * @param mainClassName the mainClassName value to set. - * @return the DatabricksSparkJarActivityTypeProperties object itself. - */ - public DatabricksSparkJarActivityTypeProperties withMainClassName(Object mainClassName) { - this.mainClassName = mainClassName; - return this; - } - - /** - * Get the parameters property: Parameters that will be passed to the main method. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters that will be passed to the main method. - * - * @param parameters the parameters value to set. - * @return the DatabricksSparkJarActivityTypeProperties object itself. - */ - public DatabricksSparkJarActivityTypeProperties withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.libraries; - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksSparkJarActivityTypeProperties object itself. - */ - public DatabricksSparkJarActivityTypeProperties withLibraries(List> libraries) { - this.libraries = libraries; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (mainClassName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mainClassName in model DatabricksSparkJarActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkPythonActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkPythonActivityTypeProperties.java deleted file mode 100644 index ac8e7ed2a1bfe..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DatabricksSparkPythonActivityTypeProperties.java +++ /dev/null @@ -1,114 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** Databricks SparkPython activity properties. */ -@Fluent -public final class DatabricksSparkPythonActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabricksSparkPythonActivityTypeProperties.class); - - /* - * The URI of the Python file to be executed. DBFS paths are supported. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "pythonFile", required = true) - private Object pythonFile; - - /* - * Command line parameters that will be passed to the Python file. - */ - @JsonProperty(value = "parameters") - private List parameters; - - /* - * A list of libraries to be installed on the cluster that will execute the - * job. - */ - @JsonProperty(value = "libraries") - private List> libraries; - - /** - * Get the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string - * (or Expression with resultType string). - * - * @return the pythonFile value. - */ - public Object pythonFile() { - return this.pythonFile; - } - - /** - * Set the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string - * (or Expression with resultType string). - * - * @param pythonFile the pythonFile value to set. - * @return the DatabricksSparkPythonActivityTypeProperties object itself. - */ - public DatabricksSparkPythonActivityTypeProperties withPythonFile(Object pythonFile) { - this.pythonFile = pythonFile; - return this; - } - - /** - * Get the parameters property: Command line parameters that will be passed to the Python file. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Command line parameters that will be passed to the Python file. - * - * @param parameters the parameters value to set. - * @return the DatabricksSparkPythonActivityTypeProperties object itself. - */ - public DatabricksSparkPythonActivityTypeProperties withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @return the libraries value. - */ - public List> libraries() { - return this.libraries; - } - - /** - * Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. - * - * @param libraries the libraries value to set. - * @return the DatabricksSparkPythonActivityTypeProperties object itself. - */ - public DatabricksSparkPythonActivityTypeProperties withLibraries(List> libraries) { - this.libraries = libraries; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pythonFile() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property pythonFile in model DatabricksSparkPythonActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java deleted file mode 100644 index bebc21187e3bc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2LinkedServiceTypeProperties.java +++ /dev/null @@ -1,300 +0,0 @@ -// 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.resourcemanager.datafactory.models.Db2AuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** DB2 linked service properties. */ -@Fluent -public final class Db2LinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Db2LinkedServiceTypeProperties.class); - - /* - * The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and - * certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * Server name for connection. It is mutually exclusive with - * connectionString property. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * Database name for connection. It is mutually exclusive with - * connectionString property. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "database") - private Object database; - - /* - * AuthenticationType to be used for connection. It is mutually exclusive - * with connectionString property. - */ - @JsonProperty(value = "authenticationType") - private Db2AuthenticationType authenticationType; - - /* - * Username for authentication. It is mutually exclusive with - * connectionString property. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "packageCollection") - private Object packageCollection; - - /* - * Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "certificateCommonName") - private Object certificateCommonName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. It is - * mutually exclusive with connectionString property. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. It is mutually exclusive with server, database, - * authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the server property: Server name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Server name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the database property: Database name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: Database name for connection. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with - * connectionString property. - * - * @return the authenticationType value. - */ - public Db2AuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with - * connectionString property. - * - * @param authenticationType the authenticationType value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withAuthenticationType(Db2AuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username for authentication. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. It is mutually exclusive with connectionString property. - * Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the packageCollection property: Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression with resultType string). - * - * @return the packageCollection value. - */ - public Object packageCollection() { - return this.packageCollection; - } - - /** - * Set the packageCollection property: Under where packages are created when querying database. It is mutually - * exclusive with connectionString property. Type: string (or Expression with resultType string). - * - * @param packageCollection the packageCollection value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withPackageCollection(Object packageCollection) { - this.packageCollection = packageCollection; - return this; - } - - /** - * Get the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with resultType string). - * - * @return the certificateCommonName value. - */ - public Object certificateCommonName() { - return this.certificateCommonName; - } - - /** - * Set the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive - * with connectionString property. Type: string (or Expression with resultType string). - * - * @param certificateCommonName the certificateCommonName value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withCertificateCommonName(Object certificateCommonName) { - this.certificateCommonName = certificateCommonName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: - * string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: - * string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the Db2LinkedServiceTypeProperties object itself. - */ - public Db2LinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java deleted file mode 100644 index 64b219ffd0a14..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Db2TableDatasetTypeProperties.java +++ /dev/null @@ -1,106 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Db2 table dataset properties. */ -@Fluent -public final class Db2TableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Db2TableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The Db2 schema name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The Db2 table name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the Db2TableDatasetTypeProperties object itself. - */ - public Db2TableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The Db2 schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The Db2 schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the Db2TableDatasetTypeProperties object itself. - */ - public Db2TableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The Db2 table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The Db2 table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the Db2TableDatasetTypeProperties object itself. - */ - public Db2TableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java deleted file mode 100644 index 575768e26378f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DeleteActivityTypeProperties.java +++ /dev/null @@ -1,207 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.LogStorageSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Delete activity properties. */ -@Fluent -public final class DeleteActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DeleteActivityTypeProperties.class); - - /* - * If true, files or sub-folders under current folder path will be deleted - * recursively. Default is false. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "recursive") - private Object recursive; - - /* - * The max concurrent connections to connect data source at the same time. - */ - @JsonProperty(value = "maxConcurrentConnections") - private Integer maxConcurrentConnections; - - /* - * Whether to record detailed logs of delete-activity execution. Default - * value is false. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableLogging") - private Object enableLogging; - - /* - * Log storage settings customer need to provide when enableLogging is - * true. - */ - @JsonProperty(value = "logStorageSettings") - private LogStorageSettings logStorageSettings; - - /* - * Delete activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /* - * Delete activity store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /** - * Get the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. - * Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the recursive value. - */ - public Object recursive() { - return this.recursive; - } - - /** - * Set the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. - * Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param recursive the recursive value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withRecursive(Object recursive) { - this.recursive = recursive; - return this; - } - - /** - * Get the maxConcurrentConnections property: The max concurrent connections to connect data source at the same - * time. - * - * @return the maxConcurrentConnections value. - */ - public Integer maxConcurrentConnections() { - return this.maxConcurrentConnections; - } - - /** - * Set the maxConcurrentConnections property: The max concurrent connections to connect data source at the same - * time. - * - * @param maxConcurrentConnections the maxConcurrentConnections value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withMaxConcurrentConnections(Integer maxConcurrentConnections) { - this.maxConcurrentConnections = maxConcurrentConnections; - return this; - } - - /** - * Get the enableLogging property: Whether to record detailed logs of delete-activity execution. Default value is - * false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableLogging value. - */ - public Object enableLogging() { - return this.enableLogging; - } - - /** - * Set the enableLogging property: Whether to record detailed logs of delete-activity execution. Default value is - * false. Type: boolean (or Expression with resultType boolean). - * - * @param enableLogging the enableLogging value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withEnableLogging(Object enableLogging) { - this.enableLogging = enableLogging; - return this; - } - - /** - * Get the logStorageSettings property: Log storage settings customer need to provide when enableLogging is true. - * - * @return the logStorageSettings value. - */ - public LogStorageSettings logStorageSettings() { - return this.logStorageSettings; - } - - /** - * Set the logStorageSettings property: Log storage settings customer need to provide when enableLogging is true. - * - * @param logStorageSettings the logStorageSettings value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withLogStorageSettings(LogStorageSettings logStorageSettings) { - this.logStorageSettings = logStorageSettings; - return this; - } - - /** - * Get the dataset property: Delete activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Delete activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the storeSettings property: Delete activity store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: Delete activity store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the DeleteActivityTypeProperties object itself. - */ - public DeleteActivityTypeProperties withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (logStorageSettings() != null) { - logStorageSettings().validate(); - } - if (dataset() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model DeleteActivityTypeProperties")); - } else { - dataset().validate(); - } - if (storeSettings() != null) { - storeSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java deleted file mode 100644 index f4563c75649ba..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DelimitedTextDatasetTypeProperties.java +++ /dev/null @@ -1,317 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** DelimitedText dataset properties. */ -@Fluent -public final class DelimitedTextDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DelimitedTextDatasetTypeProperties.class); - - /* - * The location of the delimited text storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The column delimiter. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "columnDelimiter") - private Object columnDelimiter; - - /* - * The row delimiter. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "rowDelimiter") - private Object rowDelimiter; - - /* - * The code page name of the preferred encoding. If miss, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name - * column of the table in the following link to set supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The data compressionCodec. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "compressionCodec") - private Object compressionCodec; - - /* - * The data compression method used for DelimitedText. - */ - @JsonProperty(value = "compressionLevel") - private Object compressionLevel; - - /* - * The quote character. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "quoteChar") - private Object quoteChar; - - /* - * The escape character. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "escapeChar") - private Object escapeChar; - - /* - * When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "firstRowAsHeader") - private Object firstRowAsHeader; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /** - * Get the location property: The location of the delimited text storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the delimited text storage. - * - * @param location the location value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @return the columnDelimiter value. - */ - public Object columnDelimiter() { - return this.columnDelimiter; - } - - /** - * Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string). - * - * @param columnDelimiter the columnDelimiter value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withColumnDelimiter(Object columnDelimiter) { - this.columnDelimiter = columnDelimiter; - return this; - } - - /** - * Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @return the rowDelimiter value. - */ - public Object rowDelimiter() { - return this.rowDelimiter; - } - - /** - * Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string). - * - * @param rowDelimiter the rowDelimiter value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withRowDelimiter(Object rowDelimiter) { - this.rowDelimiter = rowDelimiter; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If miss, the default value is UTF-8, - * unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set - * supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - * resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If miss, the default value is UTF-8, - * unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set - * supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with - * resultType string). - * - * @param encodingName the encodingName value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.compressionCodec; - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withCompressionCodec(Object compressionCodec) { - this.compressionCodec = compressionCodec; - return this; - } - - /** - * Get the compressionLevel property: The data compression method used for DelimitedText. - * - * @return the compressionLevel value. - */ - public Object compressionLevel() { - return this.compressionLevel; - } - - /** - * Set the compressionLevel property: The data compression method used for DelimitedText. - * - * @param compressionLevel the compressionLevel value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withCompressionLevel(Object compressionLevel) { - this.compressionLevel = compressionLevel; - return this; - } - - /** - * Get the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @return the quoteChar value. - */ - public Object quoteChar() { - return this.quoteChar; - } - - /** - * Set the quoteChar property: The quote character. Type: string (or Expression with resultType string). - * - * @param quoteChar the quoteChar value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withQuoteChar(Object quoteChar) { - this.quoteChar = quoteChar; - return this; - } - - /** - * Get the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @return the escapeChar value. - */ - public Object escapeChar() { - return this.escapeChar; - } - - /** - * Set the escapeChar property: The escape character. Type: string (or Expression with resultType string). - * - * @param escapeChar the escapeChar value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withEscapeChar(Object escapeChar) { - this.escapeChar = escapeChar; - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.firstRowAsHeader; - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withFirstRowAsHeader(Object firstRowAsHeader) { - this.firstRowAsHeader = firstRowAsHeader; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the DelimitedTextDatasetTypeProperties object itself. - */ - public DelimitedTextDatasetTypeProperties withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model DelimitedTextDatasetTypeProperties")); - } else { - location().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DocumentDbCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DocumentDbCollectionDatasetTypeProperties.java deleted file mode 100644 index a46f22b3b9c4b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DocumentDbCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** DocumentDB Collection dataset properties. */ -@Fluent -public final class DocumentDbCollectionDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DocumentDbCollectionDatasetTypeProperties.class); - - /* - * Document Database collection name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "collectionName", required = true) - private Object collectionName; - - /** - * Get the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.collectionName; - } - - /** - * Set the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the DocumentDbCollectionDatasetTypeProperties object itself. - */ - public DocumentDbCollectionDatasetTypeProperties withCollectionName(Object collectionName) { - this.collectionName = collectionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collectionName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collectionName in model DocumentDbCollectionDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java deleted file mode 100644 index f4356f26d95ff..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Drill Dataset Properties. */ -@Fluent -public final class DrillDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DrillDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Drill. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Drill. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the DrillDatasetTypeProperties object itself. - */ - public DrillDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Drill. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Drill. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the DrillDatasetTypeProperties object itself. - */ - public DrillDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the DrillDatasetTypeProperties object itself. - */ - public DrillDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java deleted file mode 100644 index b14adb0d224d1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DrillLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Drill server linked service properties. */ -@Fluent -public final class DrillLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DrillLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the DrillLinkedServiceTypeProperties object itself. - */ - public DrillLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the DrillLinkedServiceTypeProperties object itself. - */ - public DrillLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DrillLinkedServiceTypeProperties object itself. - */ - public DrillLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXLinkedServiceTypeProperties.java deleted file mode 100644 index 2265193346089..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXLinkedServiceTypeProperties.java +++ /dev/null @@ -1,238 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics AX linked service properties. */ -@Fluent -public final class DynamicsAXLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsAXLinkedServiceTypeProperties.class); - - /* - * The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData - * endpoint. - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Specify the application's client ID. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId", required = true) - private Object servicePrincipalId; - - /* - * Specify the application's key. Mark this field as a SecureString to - * store it securely in Data Factory, or reference a secret stored in Azure - * Key Vault. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalKey", required = true) - private SecretBase servicePrincipalKey; - - /* - * Specify the tenant information (domain name or tenant ID) under which - * your application resides. Retrieve it by hovering the mouse in the - * top-right corner of the Azure portal. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tenant", required = true) - private Object tenant; - - /* - * Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "aadResourceId", required = true) - private Object aadResourceId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - * - * @param url the url value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the application's key. Mark this field as a SecureString to store - * it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: Specify the application's key. Mark this field as a SecureString to store - * it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or - * Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or - * Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the aadResourceId property: Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.aadResourceId; - } - - /** - * Set the aadResourceId property: Specify the resource you are requesting authorization. Type: string (or - * Expression with resultType string). - * - * @param aadResourceId the aadResourceId value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withAadResourceId(Object aadResourceId) { - this.aadResourceId = aadResourceId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsAXLinkedServiceTypeProperties object itself. - */ - public DynamicsAXLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model DynamicsAXLinkedServiceTypeProperties")); - } - if (servicePrincipalId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalId in model DynamicsAXLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalKey in model" - + " DynamicsAXLinkedServiceTypeProperties")); - } else { - servicePrincipalKey().validate(); - } - if (tenant() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenant in model DynamicsAXLinkedServiceTypeProperties")); - } - if (aadResourceId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property aadResourceId in model DynamicsAXLinkedServiceTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXResourceDatasetTypeProperties.java deleted file mode 100644 index 211f891e765ec..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsAXResourceDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics AX OData resource dataset properties. */ -@Fluent -public final class DynamicsAXResourceDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsAXResourceDatasetTypeProperties.class); - - /* - * The path of the Dynamics AX OData entity. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "path", required = true) - private Object path; - - /** - * Get the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @param path the path value to set. - * @return the DynamicsAXResourceDatasetTypeProperties object itself. - */ - public DynamicsAXResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (path() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property path in model DynamicsAXResourceDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java deleted file mode 100644 index cc34b46eff52a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmEntityDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics CRM entity dataset properties. */ -@Fluent -public final class DynamicsCrmEntityDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsCrmEntityDatasetTypeProperties.class); - - /* - * The logical name of the entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "entityName") - private Object entityName; - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.entityName; - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsCrmEntityDatasetTypeProperties object itself. - */ - public DynamicsCrmEntityDatasetTypeProperties withEntityName(Object entityName) { - this.entityName = entityName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java deleted file mode 100644 index 05bcd4a49f69d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsCrmLinkedServiceTypeProperties.java +++ /dev/null @@ -1,419 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics CRM linked service properties. */ -@Fluent -public final class DynamicsCrmLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsCrmLinkedServiceTypeProperties.class); - - /* - * The deployment type of the Dynamics CRM instance. 'Online' for Dynamics - * CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with - * Ifd. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "deploymentType", required = true) - private Object deploymentType; - - /* - * The host name of the on-premises Dynamics CRM server. The property is - * required for on-prem and not allowed for online. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostName") - private Object hostname; - - /* - * The port of on-premises Dynamics CRM server. The property is required - * for on-prem and not allowed for online. Default is 443. Type: integer - * (or Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The URL to the Microsoft Dynamics CRM server. The property is required - * for on-line and not allowed for on-prem. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "serviceUri") - private Object serviceUri; - - /* - * The organization name of the Dynamics CRM instance. The property is - * required for on-prem and required for online when there are more than - * one Dynamics CRM instances associated with the user. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "organizationName") - private Object organizationName; - - /* - * The authentication type to connect to Dynamics CRM server. 'Office365' - * for online scenario, 'Ifd' for on-premises with Ifd scenario, - * 'AADServicePrincipal' for Server-To-Server authentication in online - * scenario. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authenticationType", required = true) - private Object authenticationType; - - /* - * User name to access the Dynamics CRM instance. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password to access the Dynamics CRM instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM - * Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType - * string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.deploymentType; - } - - /** - * Set the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM - * Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType - * string). - * - * @param deploymentType the deploymentType value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withDeploymentType(Object deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Dynamics CRM server. The property is required for - * on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.hostname; - } - - /** - * Set the hostname property: The host name of the on-premises Dynamics CRM server. The property is required for - * on-prem and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withHostname(Object hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the port property: The port of on-premises Dynamics CRM server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port of on-premises Dynamics CRM server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Dynamics CRM server. The property is required for on-line - * and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.serviceUri; - } - - /** - * Set the serviceUri property: The URL to the Microsoft Dynamics CRM server. The property is required for on-line - * and not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServiceUri(Object serviceUri) { - this.serviceUri = serviceUri; - return this; - } - - /** - * Get the organizationName property: The organization name of the Dynamics CRM instance. The property is required - * for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. - * Type: string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.organizationName; - } - - /** - * Set the organizationName property: The organization name of the Dynamics CRM instance. The property is required - * for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. - * Type: string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withOrganizationName(Object organizationName) { - this.organizationName = organizationName; - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Dynamics CRM server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to connect to Dynamics CRM server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name to access the Dynamics CRM instance. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name to access the Dynamics CRM instance. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the Dynamics CRM instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the Dynamics CRM instance. - * - * @param password the password value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withServicePrincipalCredential( - SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsCrmLinkedServiceTypeProperties object itself. - */ - public DynamicsCrmLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (deploymentType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property deploymentType in model DynamicsCrmLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " DynamicsCrmLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java deleted file mode 100644 index 87b60180eb0d9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsEntityDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics entity dataset properties. */ -@Fluent -public final class DynamicsEntityDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsEntityDatasetTypeProperties.class); - - /* - * The logical name of the entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "entityName") - private Object entityName; - - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.entityName; - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsEntityDatasetTypeProperties object itself. - */ - public DynamicsEntityDatasetTypeProperties withEntityName(Object entityName) { - this.entityName = entityName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java deleted file mode 100644 index 0d9fbf1d44fa5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DynamicsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,415 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Dynamics linked service properties. */ -@Fluent -public final class DynamicsLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsLinkedServiceTypeProperties.class); - - /* - * The deployment type of the Dynamics instance. 'Online' for Dynamics - * Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "deploymentType", required = true) - private Object deploymentType; - - /* - * The host name of the on-premises Dynamics server. The property is - * required for on-prem and not allowed for online. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostName") - private Object hostname; - - /* - * The port of on-premises Dynamics server. The property is required for - * on-prem and not allowed for online. Default is 443. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The URL to the Microsoft Dynamics server. The property is required for - * on-line and not allowed for on-prem. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "serviceUri") - private Object serviceUri; - - /* - * The organization name of the Dynamics instance. The property is required - * for on-prem and required for online when there are more than one - * Dynamics instances associated with the user. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "organizationName") - private Object organizationName; - - /* - * The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, - * 'AADServicePrincipal' for Server-To-Server authentication in online - * scenario. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "authenticationType", required = true) - private Object authenticationType; - - /* - * User name to access the Dynamics instance. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password to access the Dynamics instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, - * 'ServicePrincipalCert' for certificate. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalCredentialType") - private Object servicePrincipalCredentialType; - - /* - * The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', - * servicePrincipalCredential can be SecureString or - * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is - * 'ServicePrincipalCert', servicePrincipalCredential can only be - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "servicePrincipalCredential") - private SecretBase servicePrincipalCredential; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and - * 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - * - * @return the deploymentType value. - */ - public Object deploymentType() { - return this.deploymentType; - } - - /** - * Set the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and - * 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - * - * @param deploymentType the deploymentType value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withDeploymentType(Object deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Get the hostname property: The host name of the on-premises Dynamics server. The property is required for on-prem - * and not allowed for online. Type: string (or Expression with resultType string). - * - * @return the hostname value. - */ - public Object hostname() { - return this.hostname; - } - - /** - * Set the hostname property: The host name of the on-premises Dynamics server. The property is required for on-prem - * and not allowed for online. Type: string (or Expression with resultType string). - * - * @param hostname the hostname value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withHostname(Object hostname) { - this.hostname = hostname; - return this; - } - - /** - * Get the port property: The port of on-premises Dynamics server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The port of on-premises Dynamics server. The property is required for on-prem and not - * allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serviceUri property: The URL to the Microsoft Dynamics server. The property is required for on-line and - * not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @return the serviceUri value. - */ - public Object serviceUri() { - return this.serviceUri; - } - - /** - * Set the serviceUri property: The URL to the Microsoft Dynamics server. The property is required for on-line and - * not allowed for on-prem. Type: string (or Expression with resultType string). - * - * @param serviceUri the serviceUri value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServiceUri(Object serviceUri) { - this.serviceUri = serviceUri; - return this; - } - - /** - * Get the organizationName property: The organization name of the Dynamics instance. The property is required for - * on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: - * string (or Expression with resultType string). - * - * @return the organizationName value. - */ - public Object organizationName() { - return this.organizationName; - } - - /** - * Set the organizationName property: The organization name of the Dynamics instance. The property is required for - * on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: - * string (or Expression with resultType string). - * - * @param organizationName the organizationName value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withOrganizationName(Object organizationName) { - this.organizationName = organizationName; - return this; - } - - /** - * Get the authenticationType property: The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to connect to Dynamics server. 'Office365' for - * online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server - * authentication in online scenario. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name to access the Dynamics instance. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name to access the Dynamics instance. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the Dynamics instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the Dynamics instance. - * - * @param password the password value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for - * Server-To-Server authentication. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalCredentialType value. - */ - public Object servicePrincipalCredentialType() { - return this.servicePrincipalCredentialType; - } - - /** - * Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server - * authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServicePrincipalCredentialType( - Object servicePrincipalCredentialType) { - this.servicePrincipalCredentialType = servicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @return the servicePrincipalCredential value. - */ - public SecretBase servicePrincipalCredential() { - return this.servicePrincipalCredential; - } - - /** - * Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active - * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be - * SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', - * servicePrincipalCredential can only be AzureKeyVaultSecretReference. - * - * @param servicePrincipalCredential the servicePrincipalCredential value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - this.servicePrincipalCredential = servicePrincipalCredential; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the DynamicsLinkedServiceTypeProperties object itself. - */ - public DynamicsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (deploymentType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property deploymentType in model DynamicsLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model DynamicsLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalCredential() != null) { - servicePrincipalCredential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java deleted file mode 100644 index 8f947685f307b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EloquaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,239 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Eloqua server linked service properties. */ -@Fluent -public final class EloquaLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EloquaLinkedServiceTypeProperties.class); - - /* - * The endpoint of the Eloqua server. (i.e. eloqua.example.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The site name and user name of your Eloqua account in the form: - * sitename/username. (i.e. Eloqua/Alice) - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). - * - * @param endpoint the endpoint value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the username property: The site name and user name of your Eloqua account in the form: sitename/username. - * (i.e. Eloqua/Alice). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The site name and user name of your Eloqua account in the form: sitename/username. - * (i.e. Eloqua/Alice). - * - * @param username the username value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the EloquaLinkedServiceTypeProperties object itself. - */ - public EloquaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model EloquaLinkedServiceTypeProperties")); - } - if (username() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model EloquaLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EnvironmentVariableSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EnvironmentVariableSetupTypeProperties.java deleted file mode 100644 index c7439db95f65c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/EnvironmentVariableSetupTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Environment variable custom setup type properties. */ -@Fluent -public final class EnvironmentVariableSetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnvironmentVariableSetupTypeProperties.class); - - /* - * The name of the environment variable. - */ - @JsonProperty(value = "variableName", required = true) - private String variableName; - - /* - * The value of the environment variable. - */ - @JsonProperty(value = "variableValue", required = true) - private String variableValue; - - /** - * Get the variableName property: The name of the environment variable. - * - * @return the variableName value. - */ - public String variableName() { - return this.variableName; - } - - /** - * Set the variableName property: The name of the environment variable. - * - * @param variableName the variableName value to set. - * @return the EnvironmentVariableSetupTypeProperties object itself. - */ - public EnvironmentVariableSetupTypeProperties withVariableName(String variableName) { - this.variableName = variableName; - return this; - } - - /** - * Get the variableValue property: The value of the environment variable. - * - * @return the variableValue value. - */ - public String variableValue() { - return this.variableValue; - } - - /** - * Set the variableValue property: The value of the environment variable. - * - * @param variableValue the variableValue value to set. - * @return the EnvironmentVariableSetupTypeProperties object itself. - */ - public EnvironmentVariableSetupTypeProperties withVariableValue(String variableValue) { - this.variableValue = variableValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (variableName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property variableName in model EnvironmentVariableSetupTypeProperties")); - } - if (variableValue() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property variableValue in model EnvironmentVariableSetupTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java deleted file mode 100644 index 824f0ca7123ff..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExcelDatasetTypeProperties.java +++ /dev/null @@ -1,232 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Excel dataset properties. */ -@Fluent -public final class ExcelDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExcelDatasetTypeProperties.class); - - /* - * The location of the excel storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The sheet name of excel file. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "sheetName") - private Object sheetName; - - /* - * The sheet index of excel file and default value is 0. Type: integer (or - * Expression with resultType integer) - */ - @JsonProperty(value = "sheetIndex") - private Object sheetIndex; - - /* - * The partial data of one sheet. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "range") - private Object range; - - /* - * When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "firstRowAsHeader") - private Object firstRowAsHeader; - - /* - * The data compression method used for the json dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /** - * Get the location property: The location of the excel storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the excel storage. - * - * @param location the location value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the sheetName property: The sheet name of excel file. Type: string (or Expression with resultType string). - * - * @return the sheetName value. - */ - public Object sheetName() { - return this.sheetName; - } - - /** - * Set the sheetName property: The sheet name of excel file. Type: string (or Expression with resultType string). - * - * @param sheetName the sheetName value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withSheetName(Object sheetName) { - this.sheetName = sheetName; - return this; - } - - /** - * Get the sheetIndex property: The sheet index of excel file and default value is 0. Type: integer (or Expression - * with resultType integer). - * - * @return the sheetIndex value. - */ - public Object sheetIndex() { - return this.sheetIndex; - } - - /** - * Set the sheetIndex property: The sheet index of excel file and default value is 0. Type: integer (or Expression - * with resultType integer). - * - * @param sheetIndex the sheetIndex value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withSheetIndex(Object sheetIndex) { - this.sheetIndex = sheetIndex; - return this; - } - - /** - * Get the range property: The partial data of one sheet. Type: string (or Expression with resultType string). - * - * @return the range value. - */ - public Object range() { - return this.range; - } - - /** - * Set the range property: The partial data of one sheet. Type: string (or Expression with resultType string). - * - * @param range the range value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withRange(Object range) { - this.range = range; - return this; - } - - /** - * Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowAsHeader value. - */ - public Object firstRowAsHeader() { - return this.firstRowAsHeader; - } - - /** - * Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as - * output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowAsHeader the firstRowAsHeader value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withFirstRowAsHeader(Object firstRowAsHeader) { - this.firstRowAsHeader = firstRowAsHeader; - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the ExcelDatasetTypeProperties object itself. - */ - public ExcelDatasetTypeProperties withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model ExcelDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePipelineActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePipelineActivityTypeProperties.java deleted file mode 100644 index b68717195a6c6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePipelineActivityTypeProperties.java +++ /dev/null @@ -1,117 +0,0 @@ -// 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.resourcemanager.datafactory.models.PipelineReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Execute pipeline activity properties. */ -@Fluent -public final class ExecutePipelineActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecutePipelineActivityTypeProperties.class); - - /* - * Pipeline reference. - */ - @JsonProperty(value = "pipeline", required = true) - private PipelineReference pipeline; - - /* - * Pipeline parameters. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - */ - @JsonProperty(value = "waitOnCompletion") - private Boolean waitOnCompletion; - - /** - * Get the pipeline property: Pipeline reference. - * - * @return the pipeline value. - */ - public PipelineReference pipeline() { - return this.pipeline; - } - - /** - * Set the pipeline property: Pipeline reference. - * - * @param pipeline the pipeline value to set. - * @return the ExecutePipelineActivityTypeProperties object itself. - */ - public ExecutePipelineActivityTypeProperties withPipeline(PipelineReference pipeline) { - this.pipeline = pipeline; - return this; - } - - /** - * Get the parameters property: Pipeline parameters. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Pipeline parameters. - * - * @param parameters the parameters value to set. - * @return the ExecutePipelineActivityTypeProperties object itself. - */ - public ExecutePipelineActivityTypeProperties withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the waitOnCompletion property: Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - * - * @return the waitOnCompletion value. - */ - public Boolean waitOnCompletion() { - return this.waitOnCompletion; - } - - /** - * Set the waitOnCompletion property: Defines whether activity execution will wait for the dependent pipeline - * execution to finish. Default is false. - * - * @param waitOnCompletion the waitOnCompletion value to set. - * @return the ExecutePipelineActivityTypeProperties object itself. - */ - public ExecutePipelineActivityTypeProperties withWaitOnCompletion(Boolean waitOnCompletion) { - this.waitOnCompletion = waitOnCompletion; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pipeline() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property pipeline in model ExecutePipelineActivityTypeProperties")); - } else { - pipeline().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java deleted file mode 100644 index 88fae67f34aa3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteSsisPackageActivityTypeProperties.java +++ /dev/null @@ -1,450 +0,0 @@ -// 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.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.SsisExecutionCredential; -import com.azure.resourcemanager.datafactory.models.SsisExecutionParameter; -import com.azure.resourcemanager.datafactory.models.SsisLogLocation; -import com.azure.resourcemanager.datafactory.models.SsisPackageLocation; -import com.azure.resourcemanager.datafactory.models.SsisPropertyOverride; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Execute SSIS package activity properties. */ -@Fluent -public final class ExecuteSsisPackageActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecuteSsisPackageActivityTypeProperties.class); - - /* - * SSIS package location. - */ - @JsonProperty(value = "packageLocation", required = true) - private SsisPackageLocation packageLocation; - - /* - * Specifies the runtime to execute SSIS package. The value should be "x86" - * or "x64". Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "runtime") - private Object runtime; - - /* - * The logging level of SSIS package execution. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "loggingLevel") - private Object loggingLevel; - - /* - * The environment path to execute the SSIS package. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "environmentPath") - private Object environmentPath; - - /* - * The package execution credential. - */ - @JsonProperty(value = "executionCredential") - private SsisExecutionCredential executionCredential; - - /* - * The integration runtime reference. - */ - @JsonProperty(value = "connectVia", required = true) - private IntegrationRuntimeReference connectVia; - - /* - * The project level parameters to execute the SSIS package. - */ - @JsonProperty(value = "projectParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map projectParameters; - - /* - * The package level parameters to execute the SSIS package. - */ - @JsonProperty(value = "packageParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map packageParameters; - - /* - * The project level connection managers to execute the SSIS package. - */ - @JsonProperty(value = "projectConnectionManagers") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map> projectConnectionManagers; - - /* - * The package level connection managers to execute the SSIS package. - */ - @JsonProperty(value = "packageConnectionManagers") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map> packageConnectionManagers; - - /* - * The property overrides to execute the SSIS package. - */ - @JsonProperty(value = "propertyOverrides") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map propertyOverrides; - - /* - * SSIS package execution log location. - */ - @JsonProperty(value = "logLocation") - private SsisLogLocation logLocation; - - /** - * Get the packageLocation property: SSIS package location. - * - * @return the packageLocation value. - */ - public SsisPackageLocation packageLocation() { - return this.packageLocation; - } - - /** - * Set the packageLocation property: SSIS package location. - * - * @param packageLocation the packageLocation value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPackageLocation(SsisPackageLocation packageLocation) { - this.packageLocation = packageLocation; - return this; - } - - /** - * Get the runtime property: Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". - * Type: string (or Expression with resultType string). - * - * @return the runtime value. - */ - public Object runtime() { - return this.runtime; - } - - /** - * Set the runtime property: Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". - * Type: string (or Expression with resultType string). - * - * @param runtime the runtime value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withRuntime(Object runtime) { - this.runtime = runtime; - return this; - } - - /** - * Get the loggingLevel property: The logging level of SSIS package execution. Type: string (or Expression with - * resultType string). - * - * @return the loggingLevel value. - */ - public Object loggingLevel() { - return this.loggingLevel; - } - - /** - * Set the loggingLevel property: The logging level of SSIS package execution. Type: string (or Expression with - * resultType string). - * - * @param loggingLevel the loggingLevel value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withLoggingLevel(Object loggingLevel) { - this.loggingLevel = loggingLevel; - return this; - } - - /** - * Get the environmentPath property: The environment path to execute the SSIS package. Type: string (or Expression - * with resultType string). - * - * @return the environmentPath value. - */ - public Object environmentPath() { - return this.environmentPath; - } - - /** - * Set the environmentPath property: The environment path to execute the SSIS package. Type: string (or Expression - * with resultType string). - * - * @param environmentPath the environmentPath value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withEnvironmentPath(Object environmentPath) { - this.environmentPath = environmentPath; - return this; - } - - /** - * Get the executionCredential property: The package execution credential. - * - * @return the executionCredential value. - */ - public SsisExecutionCredential executionCredential() { - return this.executionCredential; - } - - /** - * Set the executionCredential property: The package execution credential. - * - * @param executionCredential the executionCredential value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withExecutionCredential( - SsisExecutionCredential executionCredential) { - this.executionCredential = executionCredential; - return this; - } - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.connectVia; - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withConnectVia(IntegrationRuntimeReference connectVia) { - this.connectVia = connectVia; - return this; - } - - /** - * Get the projectParameters property: The project level parameters to execute the SSIS package. - * - * @return the projectParameters value. - */ - public Map projectParameters() { - return this.projectParameters; - } - - /** - * Set the projectParameters property: The project level parameters to execute the SSIS package. - * - * @param projectParameters the projectParameters value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withProjectParameters( - Map projectParameters) { - this.projectParameters = projectParameters; - return this; - } - - /** - * Get the packageParameters property: The package level parameters to execute the SSIS package. - * - * @return the packageParameters value. - */ - public Map packageParameters() { - return this.packageParameters; - } - - /** - * Set the packageParameters property: The package level parameters to execute the SSIS package. - * - * @param packageParameters the packageParameters value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPackageParameters( - Map packageParameters) { - this.packageParameters = packageParameters; - return this; - } - - /** - * Get the projectConnectionManagers property: The project level connection managers to execute the SSIS package. - * - * @return the projectConnectionManagers value. - */ - public Map> projectConnectionManagers() { - return this.projectConnectionManagers; - } - - /** - * Set the projectConnectionManagers property: The project level connection managers to execute the SSIS package. - * - * @param projectConnectionManagers the projectConnectionManagers value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withProjectConnectionManagers( - Map> projectConnectionManagers) { - this.projectConnectionManagers = projectConnectionManagers; - return this; - } - - /** - * Get the packageConnectionManagers property: The package level connection managers to execute the SSIS package. - * - * @return the packageConnectionManagers value. - */ - public Map> packageConnectionManagers() { - return this.packageConnectionManagers; - } - - /** - * Set the packageConnectionManagers property: The package level connection managers to execute the SSIS package. - * - * @param packageConnectionManagers the packageConnectionManagers value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPackageConnectionManagers( - Map> packageConnectionManagers) { - this.packageConnectionManagers = packageConnectionManagers; - return this; - } - - /** - * Get the propertyOverrides property: The property overrides to execute the SSIS package. - * - * @return the propertyOverrides value. - */ - public Map propertyOverrides() { - return this.propertyOverrides; - } - - /** - * Set the propertyOverrides property: The property overrides to execute the SSIS package. - * - * @param propertyOverrides the propertyOverrides value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withPropertyOverrides( - Map propertyOverrides) { - this.propertyOverrides = propertyOverrides; - return this; - } - - /** - * Get the logLocation property: SSIS package execution log location. - * - * @return the logLocation value. - */ - public SsisLogLocation logLocation() { - return this.logLocation; - } - - /** - * Set the logLocation property: SSIS package execution log location. - * - * @param logLocation the logLocation value to set. - * @return the ExecuteSsisPackageActivityTypeProperties object itself. - */ - public ExecuteSsisPackageActivityTypeProperties withLogLocation(SsisLogLocation logLocation) { - this.logLocation = logLocation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (packageLocation() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property packageLocation in model ExecuteSsisPackageActivityTypeProperties")); - } else { - packageLocation().validate(); - } - if (executionCredential() != null) { - executionCredential().validate(); - } - if (connectVia() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectVia in model ExecuteSsisPackageActivityTypeProperties")); - } else { - connectVia().validate(); - } - if (projectParameters() != null) { - projectParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (packageParameters() != null) { - packageParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (projectConnectionManagers() != null) { - projectConnectionManagers() - .values() - .forEach( - e -> { - if (e != null) { - e - .values() - .forEach( - e1 -> { - if (e1 != null) { - e1.validate(); - } - }); - } - }); - } - if (packageConnectionManagers() != null) { - packageConnectionManagers() - .values() - .forEach( - e -> { - if (e != null) { - e - .values() - .forEach( - e1 -> { - if (e1 != null) { - e1.validate(); - } - }); - } - }); - } - if (propertyOverrides() != null) { - propertyOverrides() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (logLocation() != null) { - logLocation().validate(); - } - } -} 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 d6fbfb0e64cd5..b6987da1887f2 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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.datafactory.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.EncryptionConfiguration; @@ -15,14 +16,16 @@ import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; /** Factory resource type. */ +@JsonFlatten @Fluent -public final class FactoryInner extends Resource { +public class FactoryInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(FactoryInner.class); /* @@ -32,10 +35,47 @@ public final class FactoryInner extends Resource { private FactoryIdentity identity; /* - * Properties of the factory. + * Factory provisioning state, example Succeeded. */ - @JsonProperty(value = "properties") - private FactoryProperties innerProperties; + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /* + * Time the factory was created in ISO8601 format. + */ + @JsonProperty(value = "properties.createTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createTime; + + /* + * Version of the factory. + */ + @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Git repo information of the factory. + */ + @JsonProperty(value = "properties.repoConfiguration") + private FactoryRepoConfiguration repoConfiguration; + + /* + * List of parameters for factory. + */ + @JsonProperty(value = "properties.globalParameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map globalParameters; + + /* + * Properties to enable Customer Managed Key for the factory. + */ + @JsonProperty(value = "properties.encryption") + private EncryptionConfiguration encryption; + + /* + * Whether or not public network access is allowed for the data factory. + */ + @JsonProperty(value = "properties.publicNetworkAccess") + private PublicNetworkAccess publicNetworkAccess; /* * Etag identifies change in the resource. @@ -68,74 +108,13 @@ public FactoryInner withIdentity(FactoryIdentity identity) { return this; } - /** - * Get the innerProperties property: Properties of the factory. - * - * @return the innerProperties value. - */ - private FactoryProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Get the additionalProperties property: Factory resource type. - * - * @return the additionalProperties value. - */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } - - /** - * Set the additionalProperties property: Factory resource type. - * - * @param additionalProperties the additionalProperties value to set. - * @return the FactoryInner object itself. - */ - public FactoryInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } - - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } - - /** {@inheritDoc} */ - @Override - public FactoryInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public FactoryInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the provisioningState property: Factory provisioning state, example Succeeded. * * @return the provisioningState value. */ public String provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + return this.provisioningState; } /** @@ -144,7 +123,7 @@ public String provisioningState() { * @return the createTime value. */ public OffsetDateTime createTime() { - return this.innerProperties() == null ? null : this.innerProperties().createTime(); + return this.createTime; } /** @@ -153,7 +132,7 @@ public OffsetDateTime createTime() { * @return the version value. */ public String version() { - return this.innerProperties() == null ? null : this.innerProperties().version(); + return this.version; } /** @@ -162,7 +141,7 @@ public String version() { * @return the repoConfiguration value. */ public FactoryRepoConfiguration repoConfiguration() { - return this.innerProperties() == null ? null : this.innerProperties().repoConfiguration(); + return this.repoConfiguration; } /** @@ -172,10 +151,7 @@ public FactoryRepoConfiguration repoConfiguration() { * @return the FactoryInner object itself. */ public FactoryInner withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryProperties(); - } - this.innerProperties().withRepoConfiguration(repoConfiguration); + this.repoConfiguration = repoConfiguration; return this; } @@ -185,7 +161,7 @@ public FactoryInner withRepoConfiguration(FactoryRepoConfiguration repoConfigura * @return the globalParameters value. */ public Map globalParameters() { - return this.innerProperties() == null ? null : this.innerProperties().globalParameters(); + return this.globalParameters; } /** @@ -195,10 +171,7 @@ public Map globalParameters() { * @return the FactoryInner object itself. */ public FactoryInner withGlobalParameters(Map globalParameters) { - if (this.innerProperties() == null) { - this.innerProperties = new FactoryProperties(); - } - this.innerProperties().withGlobalParameters(globalParameters); + this.globalParameters = globalParameters; return this; } @@ -208,7 +181,7 @@ public FactoryInner withGlobalParameters(Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Factory resource type. + * + * @param additionalProperties the additionalProperties value to set. + * @return the FactoryInner object itself. + */ + public FactoryInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); } - this.innerProperties().withPublicNetworkAccess(publicNetworkAccess); + additionalProperties.put(key.replace("\\.", "."), value); + } + + /** {@inheritDoc} */ + @Override + public FactoryInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public FactoryInner withTags(Map tags) { + super.withTags(tags); return this; } @@ -257,8 +276,21 @@ public void validate() { if (identity() != null) { identity().validate(); } - if (innerProperties() != null) { - innerProperties().validate(); + if (repoConfiguration() != null) { + repoConfiguration().validate(); + } + if (globalParameters() != null) { + globalParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (encryption() != null) { + encryption().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryProperties.java deleted file mode 100644 index 0b9d60b2a55a2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryProperties.java +++ /dev/null @@ -1,197 +0,0 @@ -// 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.resourcemanager.datafactory.models.EncryptionConfiguration; -import com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration; -import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Factory resource properties. */ -@Fluent -public final class FactoryProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FactoryProperties.class); - - /* - * Factory provisioning state, example Succeeded. - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private String provisioningState; - - /* - * Time the factory was created in ISO8601 format. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /* - * Version of the factory. - */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * Git repo information of the factory. - */ - @JsonProperty(value = "repoConfiguration") - private FactoryRepoConfiguration repoConfiguration; - - /* - * List of parameters for factory. - */ - @JsonProperty(value = "globalParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map globalParameters; - - /* - * Properties to enable Customer Managed Key for the factory. - */ - @JsonProperty(value = "encryption") - private EncryptionConfiguration encryption; - - /* - * Whether or not public network access is allowed for the data factory. - */ - @JsonProperty(value = "publicNetworkAccess") - private PublicNetworkAccess publicNetworkAccess; - - /** - * Get the provisioningState property: Factory provisioning state, example Succeeded. - * - * @return the provisioningState value. - */ - public String provisioningState() { - return this.provisioningState; - } - - /** - * Get the createTime property: Time the factory was created in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Get the version property: Version of the factory. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the repoConfiguration property: Git repo information of the factory. - * - * @return the repoConfiguration value. - */ - public FactoryRepoConfiguration repoConfiguration() { - return this.repoConfiguration; - } - - /** - * Set the repoConfiguration property: Git repo information of the factory. - * - * @param repoConfiguration the repoConfiguration value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { - this.repoConfiguration = repoConfiguration; - return this; - } - - /** - * Get the globalParameters property: List of parameters for factory. - * - * @return the globalParameters value. - */ - public Map globalParameters() { - return this.globalParameters; - } - - /** - * Set the globalParameters property: List of parameters for factory. - * - * @param globalParameters the globalParameters value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withGlobalParameters(Map globalParameters) { - this.globalParameters = globalParameters; - return this; - } - - /** - * Get the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @return the encryption value. - */ - public EncryptionConfiguration encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Properties to enable Customer Managed Key for the factory. - * - * @param encryption the encryption value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withEncryption(EncryptionConfiguration encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @return the publicNetworkAccess value. - */ - public PublicNetworkAccess publicNetworkAccess() { - return this.publicNetworkAccess; - } - - /** - * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. - * - * @param publicNetworkAccess the publicNetworkAccess value to set. - * @return the FactoryProperties object itself. - */ - public FactoryProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - this.publicNetworkAccess = publicNetworkAccess; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (repoConfiguration() != null) { - repoConfiguration().validate(); - } - if (globalParameters() != null) { - globalParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (encryption() != null) { - encryption().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java deleted file mode 100644 index 77145b5345f4a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** File system linked service properties. */ -@Fluent -public final class FileServerLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FileServerLinkedServiceTypeProperties.class); - - /* - * Host name of the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * User ID to logon the server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "userId") - private Object userId; - - /* - * Password to logon the server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name of the server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @return the userId value. - */ - public Object userId() { - return this.userId; - } - - /** - * Set the userId property: User ID to logon the server. Type: string (or Expression with resultType string). - * - * @param userId the userId value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withUserId(Object userId) { - this.userId = userId; - return this; - } - - /** - * Get the password property: Password to logon the server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the server. - * - * @param password the password value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the FileServerLinkedServiceTypeProperties object itself. - */ - public FileServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model FileServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java deleted file mode 100644 index 9d0cb32883632..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FileShareDatasetTypeProperties.java +++ /dev/null @@ -1,230 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** On-premises file system dataset properties. */ -@Fluent -public final class FileShareDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FileShareDatasetTypeProperties.class); - - /* - * The path of the on-premises file system. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "folderPath") - private Object folderPath; - - /* - * The name of the on-premises file system. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "fileName") - private Object fileName; - - /* - * The start of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeStart") - private Object modifiedDatetimeStart; - - /* - * The end of file's modified datetime. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "modifiedDatetimeEnd") - private Object modifiedDatetimeEnd; - - /* - * The format of the files. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * Specify a filter to be used to select a subset of files in the - * folderPath rather than all files. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "fileFilter") - private Object fileFilter; - - /* - * The data compression method used for the file system. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @return the folderPath value. - */ - public Object folderPath() { - return this.folderPath; - } - - /** - * Set the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @param folderPath the folderPath value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFolderPath(Object folderPath) { - this.folderPath = folderPath; - return this; - } - - /** - * Get the fileName property: The name of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @return the fileName value. - */ - public Object fileName() { - return this.fileName; - } - - /** - * Set the fileName property: The name of the on-premises file system. Type: string (or Expression with resultType - * string). - * - * @param fileName the fileName value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFileName(Object fileName) { - this.fileName = fileName; - return this; - } - - /** - * Get the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeStart value. - */ - public Object modifiedDatetimeStart() { - return this.modifiedDatetimeStart; - } - - /** - * Set the modifiedDatetimeStart property: The start of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeStart the modifiedDatetimeStart value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withModifiedDatetimeStart(Object modifiedDatetimeStart) { - this.modifiedDatetimeStart = modifiedDatetimeStart; - return this; - } - - /** - * Get the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @return the modifiedDatetimeEnd value. - */ - public Object modifiedDatetimeEnd() { - return this.modifiedDatetimeEnd; - } - - /** - * Set the modifiedDatetimeEnd property: The end of file's modified datetime. Type: string (or Expression with - * resultType string). - * - * @param modifiedDatetimeEnd the modifiedDatetimeEnd value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - this.modifiedDatetimeEnd = modifiedDatetimeEnd; - return this; - } - - /** - * Get the format property: The format of the files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of the files. - * - * @param format the format value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @return the fileFilter value. - */ - public Object fileFilter() { - return this.fileFilter; - } - - /** - * Set the fileFilter property: Specify a filter to be used to select a subset of files in the folderPath rather - * than all files. Type: string (or Expression with resultType string). - * - * @param fileFilter the fileFilter value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withFileFilter(Object fileFilter) { - this.fileFilter = fileFilter; - return this; - } - - /** - * Get the compression property: The data compression method used for the file system. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the file system. - * - * @param compression the compression value to set. - * @return the FileShareDatasetTypeProperties object itself. - */ - public FileShareDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FilterActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FilterActivityTypeProperties.java deleted file mode 100644 index 030c9f5f9680e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FilterActivityTypeProperties.java +++ /dev/null @@ -1,93 +0,0 @@ -// 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.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Filter activity properties. */ -@Fluent -public final class FilterActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FilterActivityTypeProperties.class); - - /* - * Input array on which filter should be applied. - */ - @JsonProperty(value = "items", required = true) - private Expression items; - - /* - * Condition to be used for filtering the input. - */ - @JsonProperty(value = "condition", required = true) - private Expression condition; - - /** - * Get the items property: Input array on which filter should be applied. - * - * @return the items value. - */ - public Expression items() { - return this.items; - } - - /** - * Set the items property: Input array on which filter should be applied. - * - * @param items the items value to set. - * @return the FilterActivityTypeProperties object itself. - */ - public FilterActivityTypeProperties withItems(Expression items) { - this.items = items; - return this; - } - - /** - * Get the condition property: Condition to be used for filtering the input. - * - * @return the condition value. - */ - public Expression condition() { - return this.condition; - } - - /** - * Set the condition property: Condition to be used for filtering the input. - * - * @param condition the condition value to set. - * @return the FilterActivityTypeProperties object itself. - */ - public FilterActivityTypeProperties withCondition(Expression condition) { - this.condition = condition; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (items() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property items in model FilterActivityTypeProperties")); - } else { - items().validate(); - } - if (condition() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property condition in model FilterActivityTypeProperties")); - } else { - condition().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ForEachActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ForEachActivityTypeProperties.java deleted file mode 100644 index 9f3430ee4fba1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ForEachActivityTypeProperties.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** ForEach activity properties. */ -@Fluent -public final class ForEachActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ForEachActivityTypeProperties.class); - - /* - * Should the loop be executed in sequence or in parallel (max 50) - */ - @JsonProperty(value = "isSequential") - private Boolean isSequential; - - /* - * Batch count to be used for controlling the number of parallel execution - * (when isSequential is set to false). - */ - @JsonProperty(value = "batchCount") - private Integer batchCount; - - /* - * Collection to iterate. - */ - @JsonProperty(value = "items", required = true) - private Expression items; - - /* - * List of activities to execute . - */ - @JsonProperty(value = "activities", required = true) - private List activities; - - /** - * Get the isSequential property: Should the loop be executed in sequence or in parallel (max 50). - * - * @return the isSequential value. - */ - public Boolean isSequential() { - return this.isSequential; - } - - /** - * Set the isSequential property: Should the loop be executed in sequence or in parallel (max 50). - * - * @param isSequential the isSequential value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withIsSequential(Boolean isSequential) { - this.isSequential = isSequential; - return this; - } - - /** - * Get the batchCount property: Batch count to be used for controlling the number of parallel execution (when - * isSequential is set to false). - * - * @return the batchCount value. - */ - public Integer batchCount() { - return this.batchCount; - } - - /** - * Set the batchCount property: Batch count to be used for controlling the number of parallel execution (when - * isSequential is set to false). - * - * @param batchCount the batchCount value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withBatchCount(Integer batchCount) { - this.batchCount = batchCount; - return this; - } - - /** - * Get the items property: Collection to iterate. - * - * @return the items value. - */ - public Expression items() { - return this.items; - } - - /** - * Set the items property: Collection to iterate. - * - * @param items the items value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withItems(Expression items) { - this.items = items; - return this; - } - - /** - * Get the activities property: List of activities to execute . - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities to execute . - * - * @param activities the activities value to set. - * @return the ForEachActivityTypeProperties object itself. - */ - public ForEachActivityTypeProperties withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (items() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property items in model ForEachActivityTypeProperties")); - } else { - items().validate(); - } - if (activities() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property activities in model ForEachActivityTypeProperties")); - } else { - activities().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java deleted file mode 100644 index 94cfcdf245c96..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/FtpServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,261 +0,0 @@ -// 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.resourcemanager.datafactory.models.FtpAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class FtpServerLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FtpServerLinkedServiceTypeProperties.class); - - /* - * Host name of the FTP server. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port number that the FTP server uses to listen for client - * connections. Default value is 21. Type: integer (or Expression with - * resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication type to be used to connect to the FTP server. - */ - @JsonProperty(value = "authenticationType") - private FtpAuthenticationType authenticationType; - - /* - * Username to logon the FTP server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to logon the FTP server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * If true, connect to the FTP server over SSL/TLS channel. Default value - * is true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * If true, validate the FTP server SSL certificate when connect over - * SSL/TLS channel. Default value is true. Type: boolean (or Expression - * with resultType boolean). - */ - @JsonProperty(value = "enableServerCertificateValidation") - private Object enableServerCertificateValidation; - - /** - * Get the host property: Host name of the FTP server. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: Host name of the FTP server. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port number that the FTP server uses to listen for client connections. Default - * value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the FTP server uses to listen for client connections. Default - * value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @return the authenticationType value. - */ - public FtpAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withAuthenticationType(FtpAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username to logon the FTP server. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to logon the FTP server. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to logon the FTP server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the FTP server. - * - * @param password the password value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the enableSsl property: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: - * boolean (or Expression with resultType boolean). - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: - * boolean (or Expression with resultType boolean). - * - * @param enableSsl the enableSsl value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the enableServerCertificateValidation property: If true, validate the FTP server SSL certificate when connect - * over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.enableServerCertificateValidation; - } - - /** - * Set the enableServerCertificateValidation property: If true, validate the FTP server SSL certificate when connect - * over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the FtpServerLinkedServiceTypeProperties object itself. - */ - public FtpServerLinkedServiceTypeProperties withEnableServerCertificateValidation( - Object enableServerCertificateValidation) { - this.enableServerCertificateValidation = enableServerCertificateValidation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model FtpServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java deleted file mode 100644 index 0cca0e0cc2c1d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GenericDatasetTypeProperties.java +++ /dev/null @@ -1,50 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class GenericDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GenericDatasetTypeProperties.class); - - /* - * The table name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the GenericDatasetTypeProperties object itself. - */ - public GenericDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GetMetadataActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GetMetadataActivityTypeProperties.java deleted file mode 100644 index 6259ffa1ac1ab..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GetMetadataActivityTypeProperties.java +++ /dev/null @@ -1,146 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.FormatReadSettings; -import com.azure.resourcemanager.datafactory.models.StoreReadSettings; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** GetMetadata activity properties. */ -@Fluent -public final class GetMetadataActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GetMetadataActivityTypeProperties.class); - - /* - * GetMetadata activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /* - * Fields of metadata to get from dataset. - */ - @JsonProperty(value = "fieldList") - private List fieldList; - - /* - * GetMetadata activity store settings. - */ - @JsonProperty(value = "storeSettings") - private StoreReadSettings storeSettings; - - /* - * GetMetadata activity format settings. - */ - @JsonProperty(value = "formatSettings") - private FormatReadSettings formatSettings; - - /** - * Get the dataset property: GetMetadata activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: GetMetadata activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the fieldList property: Fields of metadata to get from dataset. - * - * @return the fieldList value. - */ - public List fieldList() { - return this.fieldList; - } - - /** - * Set the fieldList property: Fields of metadata to get from dataset. - * - * @param fieldList the fieldList value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withFieldList(List fieldList) { - this.fieldList = fieldList; - return this; - } - - /** - * Get the storeSettings property: GetMetadata activity store settings. - * - * @return the storeSettings value. - */ - public StoreReadSettings storeSettings() { - return this.storeSettings; - } - - /** - * Set the storeSettings property: GetMetadata activity store settings. - * - * @param storeSettings the storeSettings value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withStoreSettings(StoreReadSettings storeSettings) { - this.storeSettings = storeSettings; - return this; - } - - /** - * Get the formatSettings property: GetMetadata activity format settings. - * - * @return the formatSettings value. - */ - public FormatReadSettings formatSettings() { - return this.formatSettings; - } - - /** - * Set the formatSettings property: GetMetadata activity format settings. - * - * @param formatSettings the formatSettings value to set. - * @return the GetMetadataActivityTypeProperties object itself. - */ - public GetMetadataActivityTypeProperties withFormatSettings(FormatReadSettings formatSettings) { - this.formatSettings = formatSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataset() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model GetMetadataActivityTypeProperties")); - } else { - dataset().validate(); - } - if (storeSettings() != null) { - storeSettings().validate(); - } - if (formatSettings() != null) { - formatSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java deleted file mode 100644 index 5d5e3f2ba8e99..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleAdWordsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,377 +0,0 @@ -// 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.resourcemanager.datafactory.models.GoogleAdWordsAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google AdWords service linked service properties. */ -@Fluent -public final class GoogleAdWordsLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleAdWordsLinkedServiceTypeProperties.class); - - /* - * The Client customer ID of the AdWords account that you want to fetch - * report data for. - */ - @JsonProperty(value = "clientCustomerID", required = true) - private Object clientCustomerId; - - /* - * The developer token associated with the manager account that you use to - * grant access to the AdWords API. - */ - @JsonProperty(value = "developerToken", required = true) - private SecretBase developerToken; - - /* - * The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - */ - @JsonProperty(value = "authenticationType", required = true) - private GoogleAdWordsAuthenticationType authenticationType; - - /* - * The refresh token obtained from Google for authorizing access to AdWords - * for UserAuthentication. - */ - @JsonProperty(value = "refreshToken") - private SecretBase refreshToken; - - /* - * The client id of the google application used to acquire the refresh - * token. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret of the google application used to acquire the refresh - * token. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The service account email ID that is used for ServiceAuthentication and - * can only be used on self-hosted IR. - */ - @JsonProperty(value = "email") - private Object email; - - /* - * The full path to the .p12 key file that is used to authenticate the - * service account email address and can only be used on self-hosted IR. - */ - @JsonProperty(value = "keyFilePath") - private Object keyFilePath; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report - * data for. - * - * @return the clientCustomerId value. - */ - public Object clientCustomerId() { - return this.clientCustomerId; - } - - /** - * Set the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report - * data for. - * - * @param clientCustomerId the clientCustomerId value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withClientCustomerId(Object clientCustomerId) { - this.clientCustomerId = clientCustomerId; - return this; - } - - /** - * Get the developerToken property: The developer token associated with the manager account that you use to grant - * access to the AdWords API. - * - * @return the developerToken value. - */ - public SecretBase developerToken() { - return this.developerToken; - } - - /** - * Set the developerToken property: The developer token associated with the manager account that you use to grant - * access to the AdWords API. - * - * @param developerToken the developerToken value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withDeveloperToken(SecretBase developerToken) { - this.developerToken = developerToken; - return this; - } - - /** - * Get the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @return the authenticationType value. - */ - public GoogleAdWordsAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @param authenticationType the authenticationType value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withAuthenticationType( - GoogleAdWordsAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained from Google for authorizing access to AdWords for - * UserAuthentication. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.refreshToken; - } - - /** - * Set the refreshToken property: The refresh token obtained from Google for authorizing access to AdWords for - * UserAuthentication. - * - * @param refreshToken the refreshToken value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withRefreshToken(SecretBase refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * Get the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @param clientSecret the clientSecret value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @return the email value. - */ - public Object email() { - return this.email; - } - - /** - * Set the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @param email the email value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withEmail(Object email) { - this.email = email; - return this; - } - - /** - * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @return the keyFilePath value. - */ - public Object keyFilePath() { - return this.keyFilePath; - } - - /** - * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @param keyFilePath the keyFilePath value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withKeyFilePath(Object keyFilePath) { - this.keyFilePath = keyFilePath; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleAdWordsLinkedServiceTypeProperties object itself. - */ - public GoogleAdWordsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientCustomerId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientCustomerId in model" - + " GoogleAdWordsLinkedServiceTypeProperties")); - } - if (developerToken() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property developerToken in model GoogleAdWordsLinkedServiceTypeProperties")); - } else { - developerToken().validate(); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " GoogleAdWordsLinkedServiceTypeProperties")); - } - if (refreshToken() != null) { - refreshToken().validate(); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java deleted file mode 100644 index ae68635bdecb3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google BigQuery Dataset Properties. */ -@Fluent -public final class GoogleBigQueryDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleBigQueryDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using database + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Google BigQuery. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The database name of the Google BigQuery. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "dataset") - private Object dataset; - - /** - * Get the tableName property: This property will be retired. Please consider using database + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using database + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the GoogleBigQueryDatasetTypeProperties object itself. - */ - public GoogleBigQueryDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the GoogleBigQueryDatasetTypeProperties object itself. - */ - public GoogleBigQueryDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the dataset property: The database name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @return the dataset value. - */ - public Object dataset() { - return this.dataset; - } - - /** - * Set the dataset property: The database name of the Google BigQuery. Type: string (or Expression with resultType - * string). - * - * @param dataset the dataset value to set. - * @return the GoogleBigQueryDatasetTypeProperties object itself. - */ - public GoogleBigQueryDatasetTypeProperties withDataset(Object dataset) { - this.dataset = dataset; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java deleted file mode 100644 index d91a50ac43561..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleBigQueryLinkedServiceTypeProperties.java +++ /dev/null @@ -1,394 +0,0 @@ -// 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.resourcemanager.datafactory.models.GoogleBigQueryAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google BigQuery service linked service properties. */ -@Fluent -public final class GoogleBigQueryLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleBigQueryLinkedServiceTypeProperties.class); - - /* - * The default BigQuery project to query against. - */ - @JsonProperty(value = "project", required = true) - private Object project; - - /* - * A comma-separated list of public BigQuery projects to access. - */ - @JsonProperty(value = "additionalProjects") - private Object additionalProjects; - - /* - * Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with - * data from Google Drive. The default value is false. - */ - @JsonProperty(value = "requestGoogleDriveScope") - private Object requestGoogleDriveScope; - - /* - * The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - */ - @JsonProperty(value = "authenticationType", required = true) - private GoogleBigQueryAuthenticationType authenticationType; - - /* - * The refresh token obtained from Google for authorizing access to - * BigQuery for UserAuthentication. - */ - @JsonProperty(value = "refreshToken") - private SecretBase refreshToken; - - /* - * The client id of the google application used to acquire the refresh - * token. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret of the google application used to acquire the refresh - * token. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The service account email ID that is used for ServiceAuthentication and - * can only be used on self-hosted IR. - */ - @JsonProperty(value = "email") - private Object email; - - /* - * The full path to the .p12 key file that is used to authenticate the - * service account email address and can only be used on self-hosted IR. - */ - @JsonProperty(value = "keyFilePath") - private Object keyFilePath; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the project property: The default BigQuery project to query against. - * - * @return the project value. - */ - public Object project() { - return this.project; - } - - /** - * Set the project property: The default BigQuery project to query against. - * - * @param project the project value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withProject(Object project) { - this.project = project; - return this; - } - - /** - * Get the additionalProjects property: A comma-separated list of public BigQuery projects to access. - * - * @return the additionalProjects value. - */ - public Object additionalProjects() { - return this.additionalProjects; - } - - /** - * Set the additionalProjects property: A comma-separated list of public BigQuery projects to access. - * - * @param additionalProjects the additionalProjects value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withAdditionalProjects(Object additionalProjects) { - this.additionalProjects = additionalProjects; - return this; - } - - /** - * Get the requestGoogleDriveScope property: Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is - * false. - * - * @return the requestGoogleDriveScope value. - */ - public Object requestGoogleDriveScope() { - return this.requestGoogleDriveScope; - } - - /** - * Set the requestGoogleDriveScope property: Whether to request access to Google Drive. Allowing Google Drive access - * enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is - * false. - * - * @param requestGoogleDriveScope the requestGoogleDriveScope value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withRequestGoogleDriveScope(Object requestGoogleDriveScope) { - this.requestGoogleDriveScope = requestGoogleDriveScope; - return this; - } - - /** - * Get the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @return the authenticationType value. - */ - public GoogleBigQueryAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The OAuth 2.0 authentication mechanism used for authentication. - * ServiceAuthentication can only be used on self-hosted IR. - * - * @param authenticationType the authenticationType value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withAuthenticationType( - GoogleBigQueryAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained from Google for authorizing access to BigQuery for - * UserAuthentication. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.refreshToken; - } - - /** - * Set the refreshToken property: The refresh token obtained from Google for authorizing access to BigQuery for - * UserAuthentication. - * - * @param refreshToken the refreshToken value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withRefreshToken(SecretBase refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * Get the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client id of the google application used to acquire the refresh token. Type: - * string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret of the google application used to acquire the refresh token. - * - * @param clientSecret the clientSecret value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @return the email value. - */ - public Object email() { - return this.email; - } - - /** - * Set the email property: The service account email ID that is used for ServiceAuthentication and can only be used - * on self-hosted IR. - * - * @param email the email value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withEmail(Object email) { - this.email = email; - return this; - } - - /** - * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @return the keyFilePath value. - */ - public Object keyFilePath() { - return this.keyFilePath; - } - - /** - * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account - * email address and can only be used on self-hosted IR. - * - * @param keyFilePath the keyFilePath value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withKeyFilePath(Object keyFilePath) { - this.keyFilePath = keyFilePath; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleBigQueryLinkedServiceTypeProperties object itself. - */ - public GoogleBigQueryLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (project() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property project in model GoogleBigQueryLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " GoogleBigQueryLinkedServiceTypeProperties")); - } - if (refreshToken() != null) { - refreshToken().validate(); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java deleted file mode 100644 index dc1668eb67d7c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GoogleCloudStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,151 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Google Cloud Storage linked service properties. */ -@Fluent -public final class GoogleCloudStorageLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(GoogleCloudStorageLinkedServiceTypeProperties.class); - - /* - * The access key identifier of the Google Cloud Storage Identity and - * Access Management (IAM) user. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the Google Cloud - * Storage Connector. This is an optional property; change it only if you - * want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Google Cloud Storage Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Google Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Google Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GoogleCloudStorageLinkedServiceTypeProperties object itself. - */ - public GoogleCloudStorageLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java deleted file mode 100644 index 06ec36cf98bef..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Greenplum Dataset Properties. */ -@Fluent -public final class GreenplumDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GreenplumDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of Greenplum. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of Greenplum. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the GreenplumDatasetTypeProperties object itself. - */ - public GreenplumDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of Greenplum. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of Greenplum. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the GreenplumDatasetTypeProperties object itself. - */ - public GreenplumDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the GreenplumDatasetTypeProperties object itself. - */ - public GreenplumDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java deleted file mode 100644 index 8f1c3a214b2a2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/GreenplumLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Greenplum Database linked service properties. */ -@Fluent -public final class GreenplumLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GreenplumLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the GreenplumLinkedServiceTypeProperties object itself. - */ - public GreenplumLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the GreenplumLinkedServiceTypeProperties object itself. - */ - public GreenplumLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the GreenplumLinkedServiceTypeProperties object itself. - */ - public GreenplumLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java deleted file mode 100644 index c856bded46cee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HBaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,354 +0,0 @@ -// 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.resourcemanager.datafactory.models.HBaseAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** HBase server linked service properties. */ -@Fluent -public final class HBaseLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HBaseLinkedServiceTypeProperties.class); - - /* - * The IP address or host name of the HBase server. (i.e. 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the HBase instance uses to listen for client - * connections. The default value is 9090. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version) - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * The authentication mechanism to use to connect to the HBase server. - */ - @JsonProperty(value = "authenticationType", required = true) - private HBaseAuthenticationType authenticationType; - - /* - * The user name used to connect to the HBase instance. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the HBase instance uses to listen for client connections. The default - * value is 9090. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the HBase instance uses to listen for client connections. The default - * value is 9090. - * - * @param port the port value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version). - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the HBase server. (i.e. - * /gateway/sandbox/hbase/version). - * - * @param httpPath the httpPath value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism to use to connect to the HBase server. - * - * @return the authenticationType value. - */ - public HBaseAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication mechanism to use to connect to the HBase server. - * - * @param authenticationType the authenticationType value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withAuthenticationType(HBaseAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the HBase instance. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the HBase instance. - * - * @param username the username value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HBaseLinkedServiceTypeProperties object itself. - */ - public HBaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model HBaseLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model HBaseLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java deleted file mode 100644 index 59044b308adfa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightHiveActivityTypeProperties.java +++ /dev/null @@ -1,248 +0,0 @@ -// 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.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight Hive activity properties. */ -@Fluent -public final class HDInsightHiveActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightHiveActivityTypeProperties.class); - - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Script path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "scriptPath") - private Object scriptPath; - - /* - * Script linked service reference. - */ - @JsonProperty(value = "scriptLinkedService") - private LinkedServiceReference scriptLinkedService; - - /* - * Allows user to specify defines for Hive job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /* - * User specified arguments under hivevar namespace. - */ - @JsonProperty(value = "variables") - private List variables; - - /* - * Query timeout value (in minutes). Effective when the HDInsight cluster - * is with ESP (Enterprise Security Package) - */ - @JsonProperty(value = "queryTimeout") - private Integer queryTimeout; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.scriptPath; - } - - /** - * Set the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withScriptPath(Object scriptPath) { - this.scriptPath = scriptPath; - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.scriptLinkedService; - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - this.scriptLinkedService = scriptLinkedService; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for Hive job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for Hive job request. - * - * @param defines the defines value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Get the variables property: User specified arguments under hivevar namespace. - * - * @return the variables value. - */ - public List variables() { - return this.variables; - } - - /** - * Set the variables property: User specified arguments under hivevar namespace. - * - * @param variables the variables value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withVariables(List variables) { - this.variables = variables; - return this; - } - - /** - * Get the queryTimeout property: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP - * (Enterprise Security Package). - * - * @return the queryTimeout value. - */ - public Integer queryTimeout() { - return this.queryTimeout; - } - - /** - * Set the queryTimeout property: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP - * (Enterprise Security Package). - * - * @param queryTimeout the queryTimeout value to set. - * @return the HDInsightHiveActivityTypeProperties object itself. - */ - public HDInsightHiveActivityTypeProperties withQueryTimeout(Integer queryTimeout) { - this.queryTimeout = queryTimeout; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (scriptLinkedService() != null) { - scriptLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java deleted file mode 100644 index 4dc3bb5e0eb1d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightLinkedServiceTypeProperties.java +++ /dev/null @@ -1,265 +0,0 @@ -// 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.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** HDInsight linked service properties. */ -@Fluent -public final class HDInsightLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightLinkedServiceTypeProperties.class); - - /* - * HDInsight cluster URI. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "clusterUri", required = true) - private Object clusterUri; - - /* - * HDInsight cluster user name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * HDInsight cluster password. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The Azure Storage linked service reference. - */ - @JsonProperty(value = "linkedServiceName") - private LinkedServiceReference linkedServiceName; - - /* - * A reference to the Azure SQL linked service that points to the HCatalog - * database. - */ - @JsonProperty(value = "hcatalogLinkedServiceName") - private LinkedServiceReference hcatalogLinkedServiceName; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Specify if the HDInsight is created with ESP (Enterprise Security - * Package). Type: Boolean. - */ - @JsonProperty(value = "isEspEnabled") - private Object isEspEnabled; - - /* - * Specify the FileSystem if the main storage for the HDInsight is ADLS - * Gen2. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "fileSystem") - private Object fileSystem; - - /** - * Get the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). - * - * @return the clusterUri value. - */ - public Object clusterUri() { - return this.clusterUri; - } - - /** - * Set the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). - * - * @param clusterUri the clusterUri value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withClusterUri(Object clusterUri) { - this.clusterUri = clusterUri; - return this; - } - - /** - * Get the username property: HDInsight cluster user name. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: HDInsight cluster user name. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: HDInsight cluster password. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: HDInsight cluster password. - * - * @param password the password value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the linkedServiceName property: The Azure Storage linked service reference. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: The Azure Storage linked service reference. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withLinkedServiceName(LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the hcatalogLinkedServiceName property: A reference to the Azure SQL linked service that points to the - * HCatalog database. - * - * @return the hcatalogLinkedServiceName value. - */ - public LinkedServiceReference hcatalogLinkedServiceName() { - return this.hcatalogLinkedServiceName; - } - - /** - * Set the hcatalogLinkedServiceName property: A reference to the Azure SQL linked service that points to the - * HCatalog database. - * - * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withHcatalogLinkedServiceName( - LinkedServiceReference hcatalogLinkedServiceName) { - this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the isEspEnabled property: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: - * Boolean. - * - * @return the isEspEnabled value. - */ - public Object isEspEnabled() { - return this.isEspEnabled; - } - - /** - * Set the isEspEnabled property: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: - * Boolean. - * - * @param isEspEnabled the isEspEnabled value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withIsEspEnabled(Object isEspEnabled) { - this.isEspEnabled = isEspEnabled; - return this; - } - - /** - * Get the fileSystem property: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: - * string (or Expression with resultType string). - * - * @return the fileSystem value. - */ - public Object fileSystem() { - return this.fileSystem; - } - - /** - * Set the fileSystem property: Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: - * string (or Expression with resultType string). - * - * @param fileSystem the fileSystem value to set. - * @return the HDInsightLinkedServiceTypeProperties object itself. - */ - public HDInsightLinkedServiceTypeProperties withFileSystem(Object fileSystem) { - this.fileSystem = fileSystem; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clusterUri() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clusterUri in model HDInsightLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (linkedServiceName() != null) { - linkedServiceName().validate(); - } - if (hcatalogLinkedServiceName() != null) { - hcatalogLinkedServiceName().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightMapReduceActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightMapReduceActivityTypeProperties.java deleted file mode 100644 index f8fa6217d7333..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightMapReduceActivityTypeProperties.java +++ /dev/null @@ -1,257 +0,0 @@ -// 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.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight MapReduce activity properties. */ -@Fluent -public final class HDInsightMapReduceActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightMapReduceActivityTypeProperties.class); - - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Class name. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "className", required = true) - private Object className; - - /* - * Jar path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "jarFilePath", required = true) - private Object jarFilePath; - - /* - * Jar linked service reference. - */ - @JsonProperty(value = "jarLinkedService") - private LinkedServiceReference jarLinkedService; - - /* - * Jar libs. - */ - @JsonProperty(value = "jarLibs") - private List jarLibs; - - /* - * Allows user to specify defines for the MapReduce job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the className property: Class name. Type: string (or Expression with resultType string). - * - * @return the className value. - */ - public Object className() { - return this.className; - } - - /** - * Set the className property: Class name. Type: string (or Expression with resultType string). - * - * @param className the className value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withClassName(Object className) { - this.className = className; - return this; - } - - /** - * Get the jarFilePath property: Jar path. Type: string (or Expression with resultType string). - * - * @return the jarFilePath value. - */ - public Object jarFilePath() { - return this.jarFilePath; - } - - /** - * Set the jarFilePath property: Jar path. Type: string (or Expression with resultType string). - * - * @param jarFilePath the jarFilePath value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withJarFilePath(Object jarFilePath) { - this.jarFilePath = jarFilePath; - return this; - } - - /** - * Get the jarLinkedService property: Jar linked service reference. - * - * @return the jarLinkedService value. - */ - public LinkedServiceReference jarLinkedService() { - return this.jarLinkedService; - } - - /** - * Set the jarLinkedService property: Jar linked service reference. - * - * @param jarLinkedService the jarLinkedService value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withJarLinkedService(LinkedServiceReference jarLinkedService) { - this.jarLinkedService = jarLinkedService; - return this; - } - - /** - * Get the jarLibs property: Jar libs. - * - * @return the jarLibs value. - */ - public List jarLibs() { - return this.jarLibs; - } - - /** - * Set the jarLibs property: Jar libs. - * - * @param jarLibs the jarLibs value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withJarLibs(List jarLibs) { - this.jarLibs = jarLibs; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for the MapReduce job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for the MapReduce job request. - * - * @param defines the defines value to set. - * @return the HDInsightMapReduceActivityTypeProperties object itself. - */ - public HDInsightMapReduceActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (className() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property className in model HDInsightMapReduceActivityTypeProperties")); - } - if (jarFilePath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property jarFilePath in model HDInsightMapReduceActivityTypeProperties")); - } - if (jarLinkedService() != null) { - jarLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java deleted file mode 100644 index 14eae8b7ba3bd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightOnDemandLinkedServiceTypeProperties.java +++ /dev/null @@ -1,1072 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ScriptAction; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** HDInsight ondemand linked service properties. */ -@Fluent -public final class HDInsightOnDemandLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(HDInsightOnDemandLinkedServiceTypeProperties.class); - - /* - * Number of worker/data nodes in the cluster. Suggestion value: 4. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterSize", required = true) - private Object clusterSize; - - /* - * The allowed idle time for the on-demand HDInsight cluster. Specifies how - * long the on-demand HDInsight cluster stays alive after completion of an - * activity run if there are no other active jobs in the cluster. The - * minimum value is 5 mins. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "timeToLive", required = true) - private Object timeToLive; - - /* - * Version of the HDInsight cluster.  Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "version", required = true) - private Object version; - - /* - * Azure Storage linked service to be used by the on-demand cluster for - * storing and processing data. - */ - @JsonProperty(value = "linkedServiceName", required = true) - private LinkedServiceReference linkedServiceName; - - /* - * The customer’s subscription to host the cluster. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostSubscriptionId", required = true) - private Object hostSubscriptionId; - - /* - * The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The key for the service principal id. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The Tenant id/name to which the service principal belongs. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "tenant", required = true) - private Object tenant; - - /* - * The resource group where the cluster belongs. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "clusterResourceGroup", required = true) - private Object clusterResourceGroup; - - /* - * The prefix of cluster name, postfix will be distinct with timestamp. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterNamePrefix") - private Object clusterNamePrefix; - - /* - * The username to access the cluster. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "clusterUserName") - private Object clusterUsername; - - /* - * The password to access the cluster. - */ - @JsonProperty(value = "clusterPassword") - private SecretBase clusterPassword; - - /* - * The username to SSH remotely connect to cluster’s node (for Linux). - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterSshUserName") - private Object clusterSshUsername; - - /* - * The password to SSH remotely connect cluster’s node (for Linux). - */ - @JsonProperty(value = "clusterSshPassword") - private SecretBase clusterSshPassword; - - /* - * Specifies additional storage accounts for the HDInsight linked service - * so that the Data Factory service can register them on your behalf. - */ - @JsonProperty(value = "additionalLinkedServiceNames") - private List additionalLinkedServiceNames; - - /* - * The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure - * SQL database as the metastore. - */ - @JsonProperty(value = "hcatalogLinkedServiceName") - private LinkedServiceReference hcatalogLinkedServiceName; - - /* - * The cluster type. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clusterType") - private Object clusterType; - - /* - * The version of spark if the cluster type is 'spark'. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "sparkVersion") - private Object sparkVersion; - - /* - * Specifies the core configuration parameters (as in core-site.xml) for - * the HDInsight cluster to be created. - */ - @JsonProperty(value = "coreConfiguration") - private Object coreConfiguration; - - /* - * Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "hBaseConfiguration") - private Object hBaseConfiguration; - - /* - * Specifies the HDFS configuration parameters (hdfs-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "hdfsConfiguration") - private Object hdfsConfiguration; - - /* - * Specifies the hive configuration parameters (hive-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "hiveConfiguration") - private Object hiveConfiguration; - - /* - * Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - */ - @JsonProperty(value = "mapReduceConfiguration") - private Object mapReduceConfiguration; - - /* - * Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "oozieConfiguration") - private Object oozieConfiguration; - - /* - * Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "stormConfiguration") - private Object stormConfiguration; - - /* - * Specifies the Yarn configuration parameters (yarn-site.xml) for the - * HDInsight cluster. - */ - @JsonProperty(value = "yarnConfiguration") - private Object yarnConfiguration; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Specifies the size of the head node for the HDInsight cluster. - */ - @JsonProperty(value = "headNodeSize") - private Object headNodeSize; - - /* - * Specifies the size of the data node for the HDInsight cluster. - */ - @JsonProperty(value = "dataNodeSize") - private Object dataNodeSize; - - /* - * Specifies the size of the Zoo Keeper node for the HDInsight cluster. - */ - @JsonProperty(value = "zookeeperNodeSize") - private Object zookeeperNodeSize; - - /* - * Custom script actions to run on HDI ondemand cluster once it's up. - * Please refer to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - */ - @JsonProperty(value = "scriptActions") - private List scriptActions; - - /* - * The ARM resource ID for the vNet to which the cluster should be joined - * after creation. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "virtualNetworkId") - private Object virtualNetworkId; - - /* - * The ARM resource ID for the subnet in the vNet. If virtualNetworkId was - * specified, then this property is required. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "subnetName") - private Object subnetName; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or - * Expression with resultType string). - * - * @return the clusterSize value. - */ - public Object clusterSize() { - return this.clusterSize; - } - - /** - * Set the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or - * Expression with resultType string). - * - * @param clusterSize the clusterSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterSize(Object clusterSize) { - this.clusterSize = clusterSize; - return this; - } - - /** - * Get the timeToLive property: The allowed idle time for the on-demand HDInsight cluster. Specifies how long the - * on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in - * the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - * - * @return the timeToLive value. - */ - public Object timeToLive() { - return this.timeToLive; - } - - /** - * Set the timeToLive property: The allowed idle time for the on-demand HDInsight cluster. Specifies how long the - * on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in - * the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - * - * @param timeToLive the timeToLive value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withTimeToLive(Object timeToLive) { - this.timeToLive = timeToLive; - return this; - } - - /** - * Get the version property: Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - * - * @return the version value. - */ - public Object version() { - return this.version; - } - - /** - * Set the version property: Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - * - * @param version the version value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withVersion(Object version) { - this.version = version; - return this; - } - - /** - * Get the linkedServiceName property: Azure Storage linked service to be used by the on-demand cluster for storing - * and processing data. - * - * @return the linkedServiceName value. - */ - public LinkedServiceReference linkedServiceName() { - return this.linkedServiceName; - } - - /** - * Set the linkedServiceName property: Azure Storage linked service to be used by the on-demand cluster for storing - * and processing data. - * - * @param linkedServiceName the linkedServiceName value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withLinkedServiceName( - LinkedServiceReference linkedServiceName) { - this.linkedServiceName = linkedServiceName; - return this; - } - - /** - * Get the hostSubscriptionId property: The customer’s subscription to host the cluster. Type: string (or Expression - * with resultType string). - * - * @return the hostSubscriptionId value. - */ - public Object hostSubscriptionId() { - return this.hostSubscriptionId; - } - - /** - * Set the hostSubscriptionId property: The customer’s subscription to host the cluster. Type: string (or Expression - * with resultType string). - * - * @param hostSubscriptionId the hostSubscriptionId value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHostSubscriptionId(Object hostSubscriptionId) { - this.hostSubscriptionId = hostSubscriptionId; - return this; - } - - /** - * Get the servicePrincipalId property: The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The service principal id for the hostSubscriptionId. Type: string (or - * Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The key for the service principal id. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The key for the service principal id. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The Tenant id/name to which the service principal belongs. Type: string (or Expression - * with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The Tenant id/name to which the service principal belongs. Type: string (or Expression - * with resultType string). - * - * @param tenant the tenant value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the clusterResourceGroup property: The resource group where the cluster belongs. Type: string (or Expression - * with resultType string). - * - * @return the clusterResourceGroup value. - */ - public Object clusterResourceGroup() { - return this.clusterResourceGroup; - } - - /** - * Set the clusterResourceGroup property: The resource group where the cluster belongs. Type: string (or Expression - * with resultType string). - * - * @param clusterResourceGroup the clusterResourceGroup value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterResourceGroup(Object clusterResourceGroup) { - this.clusterResourceGroup = clusterResourceGroup; - return this; - } - - /** - * Get the clusterNamePrefix property: The prefix of cluster name, postfix will be distinct with timestamp. Type: - * string (or Expression with resultType string). - * - * @return the clusterNamePrefix value. - */ - public Object clusterNamePrefix() { - return this.clusterNamePrefix; - } - - /** - * Set the clusterNamePrefix property: The prefix of cluster name, postfix will be distinct with timestamp. Type: - * string (or Expression with resultType string). - * - * @param clusterNamePrefix the clusterNamePrefix value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterNamePrefix(Object clusterNamePrefix) { - this.clusterNamePrefix = clusterNamePrefix; - return this; - } - - /** - * Get the clusterUsername property: The username to access the cluster. Type: string (or Expression with resultType - * string). - * - * @return the clusterUsername value. - */ - public Object clusterUsername() { - return this.clusterUsername; - } - - /** - * Set the clusterUsername property: The username to access the cluster. Type: string (or Expression with resultType - * string). - * - * @param clusterUsername the clusterUsername value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterUsername(Object clusterUsername) { - this.clusterUsername = clusterUsername; - return this; - } - - /** - * Get the clusterPassword property: The password to access the cluster. - * - * @return the clusterPassword value. - */ - public SecretBase clusterPassword() { - return this.clusterPassword; - } - - /** - * Set the clusterPassword property: The password to access the cluster. - * - * @param clusterPassword the clusterPassword value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterPassword(SecretBase clusterPassword) { - this.clusterPassword = clusterPassword; - return this; - } - - /** - * Get the clusterSshUsername property: The username to SSH remotely connect to cluster’s node (for Linux). Type: - * string (or Expression with resultType string). - * - * @return the clusterSshUsername value. - */ - public Object clusterSshUsername() { - return this.clusterSshUsername; - } - - /** - * Set the clusterSshUsername property: The username to SSH remotely connect to cluster’s node (for Linux). Type: - * string (or Expression with resultType string). - * - * @param clusterSshUsername the clusterSshUsername value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterSshUsername(Object clusterSshUsername) { - this.clusterSshUsername = clusterSshUsername; - return this; - } - - /** - * Get the clusterSshPassword property: The password to SSH remotely connect cluster’s node (for Linux). - * - * @return the clusterSshPassword value. - */ - public SecretBase clusterSshPassword() { - return this.clusterSshPassword; - } - - /** - * Set the clusterSshPassword property: The password to SSH remotely connect cluster’s node (for Linux). - * - * @param clusterSshPassword the clusterSshPassword value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterSshPassword(SecretBase clusterSshPassword) { - this.clusterSshPassword = clusterSshPassword; - return this; - } - - /** - * Get the additionalLinkedServiceNames property: Specifies additional storage accounts for the HDInsight linked - * service so that the Data Factory service can register them on your behalf. - * - * @return the additionalLinkedServiceNames value. - */ - public List additionalLinkedServiceNames() { - return this.additionalLinkedServiceNames; - } - - /** - * Set the additionalLinkedServiceNames property: Specifies additional storage accounts for the HDInsight linked - * service so that the Data Factory service can register them on your behalf. - * - * @param additionalLinkedServiceNames the additionalLinkedServiceNames value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withAdditionalLinkedServiceNames( - List additionalLinkedServiceNames) { - this.additionalLinkedServiceNames = additionalLinkedServiceNames; - return this; - } - - /** - * Get the hcatalogLinkedServiceName property: The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - * - * @return the hcatalogLinkedServiceName value. - */ - public LinkedServiceReference hcatalogLinkedServiceName() { - return this.hcatalogLinkedServiceName; - } - - /** - * Set the hcatalogLinkedServiceName property: The name of Azure SQL linked service that point to the HCatalog - * database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - * - * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHcatalogLinkedServiceName( - LinkedServiceReference hcatalogLinkedServiceName) { - this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; - return this; - } - - /** - * Get the clusterType property: The cluster type. Type: string (or Expression with resultType string). - * - * @return the clusterType value. - */ - public Object clusterType() { - return this.clusterType; - } - - /** - * Set the clusterType property: The cluster type. Type: string (or Expression with resultType string). - * - * @param clusterType the clusterType value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withClusterType(Object clusterType) { - this.clusterType = clusterType; - return this; - } - - /** - * Get the sparkVersion property: The version of spark if the cluster type is 'spark'. Type: string (or Expression - * with resultType string). - * - * @return the sparkVersion value. - */ - public Object sparkVersion() { - return this.sparkVersion; - } - - /** - * Set the sparkVersion property: The version of spark if the cluster type is 'spark'. Type: string (or Expression - * with resultType string). - * - * @param sparkVersion the sparkVersion value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withSparkVersion(Object sparkVersion) { - this.sparkVersion = sparkVersion; - return this; - } - - /** - * Get the coreConfiguration property: Specifies the core configuration parameters (as in core-site.xml) for the - * HDInsight cluster to be created. - * - * @return the coreConfiguration value. - */ - public Object coreConfiguration() { - return this.coreConfiguration; - } - - /** - * Set the coreConfiguration property: Specifies the core configuration parameters (as in core-site.xml) for the - * HDInsight cluster to be created. - * - * @param coreConfiguration the coreConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withCoreConfiguration(Object coreConfiguration) { - this.coreConfiguration = coreConfiguration; - return this; - } - - /** - * Get the hBaseConfiguration property: Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - * - * @return the hBaseConfiguration value. - */ - public Object hBaseConfiguration() { - return this.hBaseConfiguration; - } - - /** - * Set the hBaseConfiguration property: Specifies the HBase configuration parameters (hbase-site.xml) for the - * HDInsight cluster. - * - * @param hBaseConfiguration the hBaseConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHBaseConfiguration(Object hBaseConfiguration) { - this.hBaseConfiguration = hBaseConfiguration; - return this; - } - - /** - * Get the hdfsConfiguration property: Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight - * cluster. - * - * @return the hdfsConfiguration value. - */ - public Object hdfsConfiguration() { - return this.hdfsConfiguration; - } - - /** - * Set the hdfsConfiguration property: Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight - * cluster. - * - * @param hdfsConfiguration the hdfsConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHdfsConfiguration(Object hdfsConfiguration) { - this.hdfsConfiguration = hdfsConfiguration; - return this; - } - - /** - * Get the hiveConfiguration property: Specifies the hive configuration parameters (hive-site.xml) for the HDInsight - * cluster. - * - * @return the hiveConfiguration value. - */ - public Object hiveConfiguration() { - return this.hiveConfiguration; - } - - /** - * Set the hiveConfiguration property: Specifies the hive configuration parameters (hive-site.xml) for the HDInsight - * cluster. - * - * @param hiveConfiguration the hiveConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHiveConfiguration(Object hiveConfiguration) { - this.hiveConfiguration = hiveConfiguration; - return this; - } - - /** - * Get the mapReduceConfiguration property: Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - * - * @return the mapReduceConfiguration value. - */ - public Object mapReduceConfiguration() { - return this.mapReduceConfiguration; - } - - /** - * Set the mapReduceConfiguration property: Specifies the MapReduce configuration parameters (mapred-site.xml) for - * the HDInsight cluster. - * - * @param mapReduceConfiguration the mapReduceConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withMapReduceConfiguration(Object mapReduceConfiguration) { - this.mapReduceConfiguration = mapReduceConfiguration; - return this; - } - - /** - * Get the oozieConfiguration property: Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - * - * @return the oozieConfiguration value. - */ - public Object oozieConfiguration() { - return this.oozieConfiguration; - } - - /** - * Set the oozieConfiguration property: Specifies the Oozie configuration parameters (oozie-site.xml) for the - * HDInsight cluster. - * - * @param oozieConfiguration the oozieConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withOozieConfiguration(Object oozieConfiguration) { - this.oozieConfiguration = oozieConfiguration; - return this; - } - - /** - * Get the stormConfiguration property: Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - * - * @return the stormConfiguration value. - */ - public Object stormConfiguration() { - return this.stormConfiguration; - } - - /** - * Set the stormConfiguration property: Specifies the Storm configuration parameters (storm-site.xml) for the - * HDInsight cluster. - * - * @param stormConfiguration the stormConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withStormConfiguration(Object stormConfiguration) { - this.stormConfiguration = stormConfiguration; - return this; - } - - /** - * Get the yarnConfiguration property: Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight - * cluster. - * - * @return the yarnConfiguration value. - */ - public Object yarnConfiguration() { - return this.yarnConfiguration; - } - - /** - * Set the yarnConfiguration property: Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight - * cluster. - * - * @param yarnConfiguration the yarnConfiguration value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withYarnConfiguration(Object yarnConfiguration) { - this.yarnConfiguration = yarnConfiguration; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the headNodeSize property: Specifies the size of the head node for the HDInsight cluster. - * - * @return the headNodeSize value. - */ - public Object headNodeSize() { - return this.headNodeSize; - } - - /** - * Set the headNodeSize property: Specifies the size of the head node for the HDInsight cluster. - * - * @param headNodeSize the headNodeSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withHeadNodeSize(Object headNodeSize) { - this.headNodeSize = headNodeSize; - return this; - } - - /** - * Get the dataNodeSize property: Specifies the size of the data node for the HDInsight cluster. - * - * @return the dataNodeSize value. - */ - public Object dataNodeSize() { - return this.dataNodeSize; - } - - /** - * Set the dataNodeSize property: Specifies the size of the data node for the HDInsight cluster. - * - * @param dataNodeSize the dataNodeSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withDataNodeSize(Object dataNodeSize) { - this.dataNodeSize = dataNodeSize; - return this; - } - - /** - * Get the zookeeperNodeSize property: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - * - * @return the zookeeperNodeSize value. - */ - public Object zookeeperNodeSize() { - return this.zookeeperNodeSize; - } - - /** - * Set the zookeeperNodeSize property: Specifies the size of the Zoo Keeper node for the HDInsight cluster. - * - * @param zookeeperNodeSize the zookeeperNodeSize value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withZookeeperNodeSize(Object zookeeperNodeSize) { - this.zookeeperNodeSize = zookeeperNodeSize; - return this; - } - - /** - * Get the scriptActions property: Custom script actions to run on HDI ondemand cluster once it's up. Please refer - * to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - * - * @return the scriptActions value. - */ - public List scriptActions() { - return this.scriptActions; - } - - /** - * Set the scriptActions property: Custom script actions to run on HDI ondemand cluster once it's up. Please refer - * to - * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - * - * @param scriptActions the scriptActions value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withScriptActions(List scriptActions) { - this.scriptActions = scriptActions; - return this; - } - - /** - * Get the virtualNetworkId property: The ARM resource ID for the vNet to which the cluster should be joined after - * creation. Type: string (or Expression with resultType string). - * - * @return the virtualNetworkId value. - */ - public Object virtualNetworkId() { - return this.virtualNetworkId; - } - - /** - * Set the virtualNetworkId property: The ARM resource ID for the vNet to which the cluster should be joined after - * creation. Type: string (or Expression with resultType string). - * - * @param virtualNetworkId the virtualNetworkId value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withVirtualNetworkId(Object virtualNetworkId) { - this.virtualNetworkId = virtualNetworkId; - return this; - } - - /** - * Get the subnetName property: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, - * then this property is required. Type: string (or Expression with resultType string). - * - * @return the subnetName value. - */ - public Object subnetName() { - return this.subnetName; - } - - /** - * Set the subnetName property: The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, - * then this property is required. Type: string (or Expression with resultType string). - * - * @param subnetName the subnetName value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withSubnetName(Object subnetName) { - this.subnetName = subnetName; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the HDInsightOnDemandLinkedServiceTypeProperties object itself. - */ - public HDInsightOnDemandLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clusterSize() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clusterSize in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (timeToLive() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property timeToLive in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (version() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property version in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (linkedServiceName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property linkedServiceName in model" - + " HDInsightOnDemandLinkedServiceTypeProperties")); - } else { - linkedServiceName().validate(); - } - if (hostSubscriptionId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property hostSubscriptionId in model" - + " HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (tenant() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenant in model HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (clusterResourceGroup() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clusterResourceGroup in model" - + " HDInsightOnDemandLinkedServiceTypeProperties")); - } - if (clusterPassword() != null) { - clusterPassword().validate(); - } - if (clusterSshPassword() != null) { - clusterSshPassword().validate(); - } - if (additionalLinkedServiceNames() != null) { - additionalLinkedServiceNames().forEach(e -> e.validate()); - } - if (hcatalogLinkedServiceName() != null) { - hcatalogLinkedServiceName().validate(); - } - if (scriptActions() != null) { - scriptActions().forEach(e -> e.validate()); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java deleted file mode 100644 index b461f0ad776e6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightPigActivityTypeProperties.java +++ /dev/null @@ -1,196 +0,0 @@ -// 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.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight Pig activity properties. */ -@Fluent -public final class HDInsightPigActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightPigActivityTypeProperties.class); - - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. Type: array (or - * Expression with resultType array). - */ - @JsonProperty(value = "arguments") - private Object arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Script path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "scriptPath") - private Object scriptPath; - - /* - * Script linked service reference. - */ - @JsonProperty(value = "scriptLinkedService") - private LinkedServiceReference scriptLinkedService; - - /* - * Allows user to specify defines for Pig job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. Type: array (or Expression with - * resultType array). - * - * @return the arguments value. - */ - public Object arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. Type: array (or Expression with - * resultType array). - * - * @param arguments the arguments value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withArguments(Object arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @return the scriptPath value. - */ - public Object scriptPath() { - return this.scriptPath; - } - - /** - * Set the scriptPath property: Script path. Type: string (or Expression with resultType string). - * - * @param scriptPath the scriptPath value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withScriptPath(Object scriptPath) { - this.scriptPath = scriptPath; - return this; - } - - /** - * Get the scriptLinkedService property: Script linked service reference. - * - * @return the scriptLinkedService value. - */ - public LinkedServiceReference scriptLinkedService() { - return this.scriptLinkedService; - } - - /** - * Set the scriptLinkedService property: Script linked service reference. - * - * @param scriptLinkedService the scriptLinkedService value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - this.scriptLinkedService = scriptLinkedService; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for Pig job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for Pig job request. - * - * @param defines the defines value to set. - * @return the HDInsightPigActivityTypeProperties object itself. - */ - public HDInsightPigActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (scriptLinkedService() != null) { - scriptLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java deleted file mode 100644 index fe0132b6656c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightSparkActivityTypeProperties.java +++ /dev/null @@ -1,266 +0,0 @@ -// 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.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight spark activity properties. */ -@Fluent -public final class HDInsightSparkActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightSparkActivityTypeProperties.class); - - /* - * The root path in 'sparkJobLinkedService' for all the job’s files. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "rootPath", required = true) - private Object rootPath; - - /* - * The relative path to the root folder of the code/package to be executed. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "entryFilePath", required = true) - private Object entryFilePath; - - /* - * The user-specified arguments to HDInsightSparkActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * The storage linked service for uploading the entry file and - * dependencies, and for receiving logs. - */ - @JsonProperty(value = "sparkJobLinkedService") - private LinkedServiceReference sparkJobLinkedService; - - /* - * The application's Java/Spark main class. - */ - @JsonProperty(value = "className") - private String className; - - /* - * The user to impersonate that will execute the job. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "proxyUser") - private Object proxyUser; - - /* - * Spark configuration property. - */ - @JsonProperty(value = "sparkConfig") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map sparkConfig; - - /** - * Get the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or - * Expression with resultType string). - * - * @return the rootPath value. - */ - public Object rootPath() { - return this.rootPath; - } - - /** - * Set the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or - * Expression with resultType string). - * - * @param rootPath the rootPath value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withRootPath(Object rootPath) { - this.rootPath = rootPath; - return this; - } - - /** - * Get the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type: - * string (or Expression with resultType string). - * - * @return the entryFilePath value. - */ - public Object entryFilePath() { - return this.entryFilePath; - } - - /** - * Set the entryFilePath property: The relative path to the root folder of the code/package to be executed. Type: - * string (or Expression with resultType string). - * - * @param entryFilePath the entryFilePath value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withEntryFilePath(Object entryFilePath) { - this.entryFilePath = entryFilePath; - return this; - } - - /** - * Get the arguments property: The user-specified arguments to HDInsightSparkActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: The user-specified arguments to HDInsightSparkActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the sparkJobLinkedService property: The storage linked service for uploading the entry file and dependencies, - * and for receiving logs. - * - * @return the sparkJobLinkedService value. - */ - public LinkedServiceReference sparkJobLinkedService() { - return this.sparkJobLinkedService; - } - - /** - * Set the sparkJobLinkedService property: The storage linked service for uploading the entry file and dependencies, - * and for receiving logs. - * - * @param sparkJobLinkedService the sparkJobLinkedService value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withSparkJobLinkedService( - LinkedServiceReference sparkJobLinkedService) { - this.sparkJobLinkedService = sparkJobLinkedService; - return this; - } - - /** - * Get the className property: The application's Java/Spark main class. - * - * @return the className value. - */ - public String className() { - return this.className; - } - - /** - * Set the className property: The application's Java/Spark main class. - * - * @param className the className value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withClassName(String className) { - this.className = className; - return this; - } - - /** - * Get the proxyUser property: The user to impersonate that will execute the job. Type: string (or Expression with - * resultType string). - * - * @return the proxyUser value. - */ - public Object proxyUser() { - return this.proxyUser; - } - - /** - * Set the proxyUser property: The user to impersonate that will execute the job. Type: string (or Expression with - * resultType string). - * - * @param proxyUser the proxyUser value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withProxyUser(Object proxyUser) { - this.proxyUser = proxyUser; - return this; - } - - /** - * Get the sparkConfig property: Spark configuration property. - * - * @return the sparkConfig value. - */ - public Map sparkConfig() { - return this.sparkConfig; - } - - /** - * Set the sparkConfig property: Spark configuration property. - * - * @param sparkConfig the sparkConfig value to set. - * @return the HDInsightSparkActivityTypeProperties object itself. - */ - public HDInsightSparkActivityTypeProperties withSparkConfig(Map sparkConfig) { - this.sparkConfig = sparkConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (rootPath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property rootPath in model HDInsightSparkActivityTypeProperties")); - } - if (entryFilePath() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property entryFilePath in model HDInsightSparkActivityTypeProperties")); - } - if (sparkJobLinkedService() != null) { - sparkJobLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java deleted file mode 100644 index 17d5929335bf8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HDInsightStreamingActivityTypeProperties.java +++ /dev/null @@ -1,382 +0,0 @@ -// 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.resourcemanager.datafactory.models.HDInsightActivityDebugInfoOption; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** HDInsight streaming activity properties. */ -@Fluent -public final class HDInsightStreamingActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightStreamingActivityTypeProperties.class); - - /* - * Storage linked service references. - */ - @JsonProperty(value = "storageLinkedServices") - private List storageLinkedServices; - - /* - * User specified arguments to HDInsightActivity. - */ - @JsonProperty(value = "arguments") - private List arguments; - - /* - * Debug info option. - */ - @JsonProperty(value = "getDebugInfo") - private HDInsightActivityDebugInfoOption getDebugInfo; - - /* - * Mapper executable name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "mapper", required = true) - private Object mapper; - - /* - * Reducer executable name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "reducer", required = true) - private Object reducer; - - /* - * Input blob path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "input", required = true) - private Object input; - - /* - * Output blob path. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "output", required = true) - private Object output; - - /* - * Paths to streaming job files. Can be directories. - */ - @JsonProperty(value = "filePaths", required = true) - private List filePaths; - - /* - * Linked service reference where the files are located. - */ - @JsonProperty(value = "fileLinkedService") - private LinkedServiceReference fileLinkedService; - - /* - * Combiner executable name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "combiner") - private Object combiner; - - /* - * Command line environment values. - */ - @JsonProperty(value = "commandEnvironment") - private List commandEnvironment; - - /* - * Allows user to specify defines for streaming job request. - */ - @JsonProperty(value = "defines") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map defines; - - /** - * Get the storageLinkedServices property: Storage linked service references. - * - * @return the storageLinkedServices value. - */ - public List storageLinkedServices() { - return this.storageLinkedServices; - } - - /** - * Set the storageLinkedServices property: Storage linked service references. - * - * @param storageLinkedServices the storageLinkedServices value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withStorageLinkedServices( - List storageLinkedServices) { - this.storageLinkedServices = storageLinkedServices; - return this; - } - - /** - * Get the arguments property: User specified arguments to HDInsightActivity. - * - * @return the arguments value. - */ - public List arguments() { - return this.arguments; - } - - /** - * Set the arguments property: User specified arguments to HDInsightActivity. - * - * @param arguments the arguments value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withArguments(List arguments) { - this.arguments = arguments; - return this; - } - - /** - * Get the getDebugInfo property: Debug info option. - * - * @return the getDebugInfo value. - */ - public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.getDebugInfo; - } - - /** - * Set the getDebugInfo property: Debug info option. - * - * @param getDebugInfo the getDebugInfo value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - this.getDebugInfo = getDebugInfo; - return this; - } - - /** - * Get the mapper property: Mapper executable name. Type: string (or Expression with resultType string). - * - * @return the mapper value. - */ - public Object mapper() { - return this.mapper; - } - - /** - * Set the mapper property: Mapper executable name. Type: string (or Expression with resultType string). - * - * @param mapper the mapper value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withMapper(Object mapper) { - this.mapper = mapper; - return this; - } - - /** - * Get the reducer property: Reducer executable name. Type: string (or Expression with resultType string). - * - * @return the reducer value. - */ - public Object reducer() { - return this.reducer; - } - - /** - * Set the reducer property: Reducer executable name. Type: string (or Expression with resultType string). - * - * @param reducer the reducer value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withReducer(Object reducer) { - this.reducer = reducer; - return this; - } - - /** - * Get the input property: Input blob path. Type: string (or Expression with resultType string). - * - * @return the input value. - */ - public Object input() { - return this.input; - } - - /** - * Set the input property: Input blob path. Type: string (or Expression with resultType string). - * - * @param input the input value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withInput(Object input) { - this.input = input; - return this; - } - - /** - * Get the output property: Output blob path. Type: string (or Expression with resultType string). - * - * @return the output value. - */ - public Object output() { - return this.output; - } - - /** - * Set the output property: Output blob path. Type: string (or Expression with resultType string). - * - * @param output the output value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withOutput(Object output) { - this.output = output; - return this; - } - - /** - * Get the filePaths property: Paths to streaming job files. Can be directories. - * - * @return the filePaths value. - */ - public List filePaths() { - return this.filePaths; - } - - /** - * Set the filePaths property: Paths to streaming job files. Can be directories. - * - * @param filePaths the filePaths value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withFilePaths(List filePaths) { - this.filePaths = filePaths; - return this; - } - - /** - * Get the fileLinkedService property: Linked service reference where the files are located. - * - * @return the fileLinkedService value. - */ - public LinkedServiceReference fileLinkedService() { - return this.fileLinkedService; - } - - /** - * Set the fileLinkedService property: Linked service reference where the files are located. - * - * @param fileLinkedService the fileLinkedService value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withFileLinkedService(LinkedServiceReference fileLinkedService) { - this.fileLinkedService = fileLinkedService; - return this; - } - - /** - * Get the combiner property: Combiner executable name. Type: string (or Expression with resultType string). - * - * @return the combiner value. - */ - public Object combiner() { - return this.combiner; - } - - /** - * Set the combiner property: Combiner executable name. Type: string (or Expression with resultType string). - * - * @param combiner the combiner value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withCombiner(Object combiner) { - this.combiner = combiner; - return this; - } - - /** - * Get the commandEnvironment property: Command line environment values. - * - * @return the commandEnvironment value. - */ - public List commandEnvironment() { - return this.commandEnvironment; - } - - /** - * Set the commandEnvironment property: Command line environment values. - * - * @param commandEnvironment the commandEnvironment value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withCommandEnvironment(List commandEnvironment) { - this.commandEnvironment = commandEnvironment; - return this; - } - - /** - * Get the defines property: Allows user to specify defines for streaming job request. - * - * @return the defines value. - */ - public Map defines() { - return this.defines; - } - - /** - * Set the defines property: Allows user to specify defines for streaming job request. - * - * @param defines the defines value to set. - * @return the HDInsightStreamingActivityTypeProperties object itself. - */ - public HDInsightStreamingActivityTypeProperties withDefines(Map defines) { - this.defines = defines; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storageLinkedServices() != null) { - storageLinkedServices().forEach(e -> e.validate()); - } - if (mapper() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property mapper in model HDInsightStreamingActivityTypeProperties")); - } - if (reducer() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property reducer in model HDInsightStreamingActivityTypeProperties")); - } - if (input() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property input in model HDInsightStreamingActivityTypeProperties")); - } - if (output() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property output in model HDInsightStreamingActivityTypeProperties")); - } - if (filePaths() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property filePaths in model HDInsightStreamingActivityTypeProperties")); - } - if (fileLinkedService() != null) { - fileLinkedService().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java deleted file mode 100644 index afe836bf882b2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HdfsLinkedServiceTypeProperties.java +++ /dev/null @@ -1,179 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** HDFS linked service properties. */ -@Fluent -public final class HdfsLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HdfsLinkedServiceTypeProperties.class); - - /* - * The URL of the HDFS service endpoint, e.g. - * http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * User name for Windows authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Windows authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /** - * Get the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: - * string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: - * string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are: - * Anonymous and Windows. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the username property: User name for Windows authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Windows authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Windows authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Windows authentication. - * - * @param password the password value to set. - * @return the HdfsLinkedServiceTypeProperties object itself. - */ - public HdfsLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model HdfsLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java deleted file mode 100644 index e962de8374d2c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Hive Properties. */ -@Fluent -public final class HiveDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Hive. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Hive. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the HiveDatasetTypeProperties object itself. - */ - public HiveDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Hive. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Hive. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the HiveDatasetTypeProperties object itself. - */ - public HiveDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the HiveDatasetTypeProperties object itself. - */ - public HiveDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java deleted file mode 100644 index ddbb4f3ad51e3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HiveLinkedServiceTypeProperties.java +++ /dev/null @@ -1,517 +0,0 @@ -// 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.resourcemanager.datafactory.models.HiveAuthenticationType; -import com.azure.resourcemanager.datafactory.models.HiveServerType; -import com.azure.resourcemanager.datafactory.models.HiveThriftTransportProtocol; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Hive Server linked service properties. */ -@Fluent -public final class HiveLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveLinkedServiceTypeProperties.class); - - /* - * IP address or host name of the Hive server, separated by ';' for - * multiple hosts (only when serviceDiscoveryMode is enable). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Hive server uses to listen for client connections. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The type of Hive server. - */ - @JsonProperty(value = "serverType") - private HiveServerType serverType; - - /* - * The transport protocol to use in the Thrift layer. - */ - @JsonProperty(value = "thriftTransportProtocol") - private HiveThriftTransportProtocol thriftTransportProtocol; - - /* - * The authentication method used to access the Hive server. - */ - @JsonProperty(value = "authenticationType", required = true) - private HiveAuthenticationType authenticationType; - - /* - * true to indicate using the ZooKeeper service, false not. - */ - @JsonProperty(value = "serviceDiscoveryMode") - private Object serviceDiscoveryMode; - - /* - * The namespace on ZooKeeper under which Hive Server 2 nodes are added. - */ - @JsonProperty(value = "zooKeeperNameSpace") - private Object zooKeeperNameSpace; - - /* - * Specifies whether the driver uses native HiveQL queries,or converts them - * into an equivalent form in HiveQL. - */ - @JsonProperty(value = "useNativeQuery") - private Object useNativeQuery; - - /* - * The user name that you use to access Hive Server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * Username field - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The partial URL corresponding to the Hive server. - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when - * serviceDiscoveryMode is enable). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when - * serviceDiscoveryMode is enable). - * - * @param host the host value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Hive server uses to listen for client connections. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Hive server uses to listen for client connections. - * - * @param port the port value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serverType property: The type of Hive server. - * - * @return the serverType value. - */ - public HiveServerType serverType() { - return this.serverType; - } - - /** - * Set the serverType property: The type of Hive server. - * - * @param serverType the serverType value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withServerType(HiveServerType serverType) { - this.serverType = serverType; - return this; - } - - /** - * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @return the thriftTransportProtocol value. - */ - public HiveThriftTransportProtocol thriftTransportProtocol() { - return this.thriftTransportProtocol; - } - - /** - * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @param thriftTransportProtocol the thriftTransportProtocol value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withThriftTransportProtocol( - HiveThriftTransportProtocol thriftTransportProtocol) { - this.thriftTransportProtocol = thriftTransportProtocol; - return this; - } - - /** - * Get the authenticationType property: The authentication method used to access the Hive server. - * - * @return the authenticationType value. - */ - public HiveAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication method used to access the Hive server. - * - * @param authenticationType the authenticationType value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withAuthenticationType(HiveAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the serviceDiscoveryMode property: true to indicate using the ZooKeeper service, false not. - * - * @return the serviceDiscoveryMode value. - */ - public Object serviceDiscoveryMode() { - return this.serviceDiscoveryMode; - } - - /** - * Set the serviceDiscoveryMode property: true to indicate using the ZooKeeper service, false not. - * - * @param serviceDiscoveryMode the serviceDiscoveryMode value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withServiceDiscoveryMode(Object serviceDiscoveryMode) { - this.serviceDiscoveryMode = serviceDiscoveryMode; - return this; - } - - /** - * Get the zooKeeperNameSpace property: The namespace on ZooKeeper under which Hive Server 2 nodes are added. - * - * @return the zooKeeperNameSpace value. - */ - public Object zooKeeperNameSpace() { - return this.zooKeeperNameSpace; - } - - /** - * Set the zooKeeperNameSpace property: The namespace on ZooKeeper under which Hive Server 2 nodes are added. - * - * @param zooKeeperNameSpace the zooKeeperNameSpace value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withZooKeeperNameSpace(Object zooKeeperNameSpace) { - this.zooKeeperNameSpace = zooKeeperNameSpace; - return this; - } - - /** - * Get the useNativeQuery property: Specifies whether the driver uses native HiveQL queries,or converts them into an - * equivalent form in HiveQL. - * - * @return the useNativeQuery value. - */ - public Object useNativeQuery() { - return this.useNativeQuery; - } - - /** - * Set the useNativeQuery property: Specifies whether the driver uses native HiveQL queries,or converts them into an - * equivalent form in HiveQL. - * - * @param useNativeQuery the useNativeQuery value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withUseNativeQuery(Object useNativeQuery) { - this.useNativeQuery = useNativeQuery; - return this; - } - - /** - * Get the username property: The user name that you use to access Hive Server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Hive Server. - * - * @param username the username value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the Username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the Username field. - * - * @param password the password value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Hive server. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the Hive server. - * - * @param httpPath the httpPath value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HiveLinkedServiceTypeProperties object itself. - */ - public HiveLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model HiveLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model HiveLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java deleted file mode 100644 index 9d205c6cbd64c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpDatasetTypeProperties.java +++ /dev/null @@ -1,203 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class HttpDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HttpDatasetTypeProperties.class); - - /* - * The relative URL based on the URL in the HttpLinkedService refers to an - * HTTP file Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "relativeUrl") - private Object relativeUrl; - - /* - * The HTTP method for the HTTP request. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The body for the HTTP request. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "requestBody") - private Object requestBody; - - /* - * The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 - * ... - * request-header-name-n:request-header-value-n Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * The format of files. - */ - @JsonProperty(value = "format") - private DatasetStorageFormat format; - - /* - * The data compression method used on files. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file - * Type: string (or Expression with resultType string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.relativeUrl; - } - - /** - * Set the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file - * Type: string (or Expression with resultType string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withRelativeUrl(Object relativeUrl) { - this.relativeUrl = relativeUrl; - return this; - } - - /** - * Get the requestMethod property: The HTTP method for the HTTP request. Type: string (or Expression with resultType - * string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method for the HTTP request. Type: string (or Expression with resultType - * string). - * - * @param requestMethod the requestMethod value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the requestBody property: The body for the HTTP request. Type: string (or Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.requestBody; - } - - /** - * Set the requestBody property: The body for the HTTP request. Type: string (or Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withRequestBody(Object requestBody) { - this.requestBody = requestBody; - return this; - } - - /** - * Get the additionalHeaders property: The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n Type: string (or - * Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The headers for the HTTP Request. e.g. - * request-header-name-1:request-header-value-1 ... request-header-name-n:request-header-value-n Type: string (or - * Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the format property: The format of files. - * - * @return the format value. - */ - public DatasetStorageFormat format() { - return this.format; - } - - /** - * Set the format property: The format of files. - * - * @param format the format value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withFormat(DatasetStorageFormat format) { - this.format = format; - return this; - } - - /** - * Get the compression property: The data compression method used on files. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used on files. - * - * @param compression the compression value to set. - * @return the HttpDatasetTypeProperties object itself. - */ - public HttpDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (format() != null) { - format().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java deleted file mode 100644 index 851dd7f335b9c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HttpLinkedServiceTypeProperties.java +++ /dev/null @@ -1,304 +0,0 @@ -// 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.resourcemanager.datafactory.models.HttpAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class HttpLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HttpLinkedServiceTypeProperties.class); - - /* - * The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The authentication type to be used to connect to the HTTP server. - */ - @JsonProperty(value = "authenticationType") - private HttpAuthenticationType authenticationType; - - /* - * User name for Basic, Digest, or Windows authentication. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic, Digest, Windows, or ClientCertificate with - * EmbeddedCertData authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The additional HTTP headers in the request to RESTful API used for - * authorization. Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "authHeaders") - private Object authHeaders; - - /* - * Base64 encoded certificate data for ClientCertificate authentication. - * For on-premises copy with ClientCertificate authentication, either - * CertThumbprint or EmbeddedCertData/Password should be specified. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "embeddedCertData") - private Object embeddedCertData; - - /* - * Thumbprint of certificate for ClientCertificate authentication. Only - * valid for on-premises copy. For on-premises copy with ClientCertificate - * authentication, either CertThumbprint or EmbeddedCertData/Password - * should be specified. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "certThumbprint") - private Object certThumbprint; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * If true, validate the HTTPS server SSL certificate. Default value is - * true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "enableServerCertificateValidation") - private Object enableServerCertificateValidation; - - /** - * Get the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or - * Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or - * Expression with resultType string). - * - * @param url the url value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the HTTP server. - * - * @return the authenticationType value. - */ - public HttpAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the HTTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withAuthenticationType(HttpAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name for Basic, Digest, or Windows authentication. Type: string (or Expression - * with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic, Digest, or Windows authentication. Type: string (or Expression - * with resultType string). - * - * @param username the username value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - * authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData - * authentication. - * - * @param password the password value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.authHeaders; - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withAuthHeaders(Object authHeaders) { - this.authHeaders = authHeaders; - return this; - } - - /** - * Get the embeddedCertData property: Base64 encoded certificate data for ClientCertificate authentication. For - * on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should - * be specified. Type: string (or Expression with resultType string). - * - * @return the embeddedCertData value. - */ - public Object embeddedCertData() { - return this.embeddedCertData; - } - - /** - * Set the embeddedCertData property: Base64 encoded certificate data for ClientCertificate authentication. For - * on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should - * be specified. Type: string (or Expression with resultType string). - * - * @param embeddedCertData the embeddedCertData value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withEmbeddedCertData(Object embeddedCertData) { - this.embeddedCertData = embeddedCertData; - return this; - } - - /** - * Get the certThumbprint property: Thumbprint of certificate for ClientCertificate authentication. Only valid for - * on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or - * EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - * - * @return the certThumbprint value. - */ - public Object certThumbprint() { - return this.certThumbprint; - } - - /** - * Set the certThumbprint property: Thumbprint of certificate for ClientCertificate authentication. Only valid for - * on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or - * EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - * - * @param certThumbprint the certThumbprint value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withCertThumbprint(Object certThumbprint) { - this.certThumbprint = certThumbprint; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the enableServerCertificateValidation property: If true, validate the HTTPS server SSL certificate. Default - * value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.enableServerCertificateValidation; - } - - /** - * Set the enableServerCertificateValidation property: If true, validate the HTTPS server SSL certificate. Default - * value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the HttpLinkedServiceTypeProperties object itself. - */ - public HttpLinkedServiceTypeProperties withEnableServerCertificateValidation( - Object enableServerCertificateValidation) { - this.enableServerCertificateValidation = enableServerCertificateValidation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model HttpLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java deleted file mode 100644 index b700b068b8857..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/HubspotLinkedServiceTypeProperties.java +++ /dev/null @@ -1,264 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Hubspot Service linked service properties. */ -@Fluent -public final class HubspotLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HubspotLinkedServiceTypeProperties.class); - - /* - * The client ID associated with your Hubspot application. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret associated with your Hubspot application. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The access token obtained when initially authenticating your OAuth - * integration. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * The refresh token obtained when initially authenticating your OAuth - * integration. - */ - @JsonProperty(value = "refreshToken") - private SecretBase refreshToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the clientId property: The client ID associated with your Hubspot application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with your Hubspot application. - * - * @param clientId the clientId value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your Hubspot application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with your Hubspot application. - * - * @param clientSecret the clientSecret value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the accessToken property: The access token obtained when initially authenticating your OAuth integration. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token obtained when initially authenticating your OAuth integration. - * - * @param accessToken the accessToken value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the refreshToken property: The refresh token obtained when initially authenticating your OAuth integration. - * - * @return the refreshToken value. - */ - public SecretBase refreshToken() { - return this.refreshToken; - } - - /** - * Set the refreshToken property: The refresh token obtained when initially authenticating your OAuth integration. - * - * @param refreshToken the refreshToken value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withRefreshToken(SecretBase refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the HubspotLinkedServiceTypeProperties object itself. - */ - public HubspotLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model HubspotLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (refreshToken() != null) { - refreshToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IfConditionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IfConditionActivityTypeProperties.java deleted file mode 100644 index 5497380597318..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/IfConditionActivityTypeProperties.java +++ /dev/null @@ -1,131 +0,0 @@ -// 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.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** IfCondition activity properties. */ -@Fluent -public final class IfConditionActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IfConditionActivityTypeProperties.class); - - /* - * An expression that would evaluate to Boolean. This is used to determine - * the block of activities (ifTrueActivities or ifFalseActivities) that - * will be executed. - */ - @JsonProperty(value = "expression", required = true) - private Expression expression; - - /* - * List of activities to execute if expression is evaluated to true. This - * is an optional property and if not provided, the activity will exit - * without any action. - */ - @JsonProperty(value = "ifTrueActivities") - private List ifTrueActivities; - - /* - * List of activities to execute if expression is evaluated to false. This - * is an optional property and if not provided, the activity will exit - * without any action. - */ - @JsonProperty(value = "ifFalseActivities") - private List ifFalseActivities; - - /** - * Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of - * activities (ifTrueActivities or ifFalseActivities) that will be executed. - * - * @return the expression value. - */ - public Expression expression() { - return this.expression; - } - - /** - * Set the expression property: An expression that would evaluate to Boolean. This is used to determine the block of - * activities (ifTrueActivities or ifFalseActivities) that will be executed. - * - * @param expression the expression value to set. - * @return the IfConditionActivityTypeProperties object itself. - */ - public IfConditionActivityTypeProperties withExpression(Expression expression) { - this.expression = expression; - return this; - } - - /** - * Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the ifTrueActivities value. - */ - public List ifTrueActivities() { - return this.ifTrueActivities; - } - - /** - * Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param ifTrueActivities the ifTrueActivities value to set. - * @return the IfConditionActivityTypeProperties object itself. - */ - public IfConditionActivityTypeProperties withIfTrueActivities(List ifTrueActivities) { - this.ifTrueActivities = ifTrueActivities; - return this; - } - - /** - * Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the ifFalseActivities value. - */ - public List ifFalseActivities() { - return this.ifFalseActivities; - } - - /** - * Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param ifFalseActivities the ifFalseActivities value to set. - * @return the IfConditionActivityTypeProperties object itself. - */ - public IfConditionActivityTypeProperties withIfFalseActivities(List ifFalseActivities) { - this.ifFalseActivities = ifFalseActivities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (expression() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property expression in model IfConditionActivityTypeProperties")); - } else { - expression().validate(); - } - if (ifTrueActivities() != null) { - ifTrueActivities().forEach(e -> e.validate()); - } - if (ifFalseActivities() != null) { - ifFalseActivities().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java deleted file mode 100644 index 2a01db0cd6a5c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Impala Dataset Properties. */ -@Fluent -public final class ImpalaDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ImpalaDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Impala. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Impala. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the ImpalaDatasetTypeProperties object itself. - */ - public ImpalaDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Impala. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Impala. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the ImpalaDatasetTypeProperties object itself. - */ - public ImpalaDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the ImpalaDatasetTypeProperties object itself. - */ - public ImpalaDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java deleted file mode 100644 index 5b3019846b23a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ImpalaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,358 +0,0 @@ -// 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.resourcemanager.datafactory.models.ImpalaAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Impala server linked service properties. */ -@Fluent -public final class ImpalaLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ImpalaLinkedServiceTypeProperties.class); - - /* - * The IP address or host name of the Impala server. (i.e. 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Impala server uses to listen for client - * connections. The default value is 21050. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication type to use. - */ - @JsonProperty(value = "authenticationType", required = true) - private ImpalaAuthenticationType authenticationType; - - /* - * The user name used to access the Impala server. The default value is - * anonymous when using SASLUsername. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name when using - * UsernameAndPassword. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Impala server uses to listen for client connections. The default - * value is 21050. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Impala server uses to listen for client connections. The default - * value is 21050. - * - * @param port the port value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ImpalaAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withAuthenticationType(ImpalaAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to access the Impala server. The default value is anonymous when - * using SASLUsername. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to access the Impala server. The default value is anonymous when - * using SASLUsername. - * - * @param username the username value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name when using UsernameAndPassword. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name when using UsernameAndPassword. - * - * @param password the password value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ImpalaLinkedServiceTypeProperties object itself. - */ - public ImpalaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model ImpalaLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model ImpalaLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java deleted file mode 100644 index bd7fd363ff2ff..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixLinkedServiceTypeProperties.java +++ /dev/null @@ -1,211 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Informix linked service properties. */ -@Fluent -public final class InformixLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InformixLinkedServiceTypeProperties.class); - - /* - * The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * Type of authentication used to connect to the Informix as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access credential portion of the connection string specified in - * driver-specific property-value format. - */ - @JsonProperty(value = "credential") - private SecretBase credential; - - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the Informix as ODBC data store. - * Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the Informix as ODBC data store. - * Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.credential; - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withCredential(SecretBase credential) { - this.credential = credential; - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the InformixLinkedServiceTypeProperties object itself. - */ - public InformixLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model InformixLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java deleted file mode 100644 index 0b533611026e2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/InformixTableDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Informix table dataset properties. */ -@Fluent -public final class InformixTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InformixTableDatasetTypeProperties.class); - - /* - * The Informix table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the InformixTableDatasetTypeProperties object itself. - */ - public InformixTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java deleted file mode 100644 index af07a831b9556..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JiraLinkedServiceTypeProperties.java +++ /dev/null @@ -1,267 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Jira Service linked service properties. */ -@Fluent -public final class JiraLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(JiraLinkedServiceTypeProperties.class); - - /* - * The IP address or host name of the Jira service. (e.g. jira.example.com) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Jira server uses to listen for client connections. - * The default value is 443 if connecting through HTTPS, or 8080 if - * connecting through HTTP. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The user name that you use to access Jira Service. - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * username field. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). - * - * @param host the host value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Jira server uses to listen for client connections. The default value - * is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Jira server uses to listen for client connections. The default value - * is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - * - * @param port the port value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the username property: The user name that you use to access Jira Service. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Jira Service. - * - * @param username the username value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username field. - * - * @param password the password value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the JiraLinkedServiceTypeProperties object itself. - */ - public JiraLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model JiraLinkedServiceTypeProperties")); - } - if (username() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model JiraLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java deleted file mode 100644 index e7dbd758f6d6f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/JsonDatasetTypeProperties.java +++ /dev/null @@ -1,126 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Json dataset properties. */ -@Fluent -public final class JsonDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(JsonDatasetTypeProperties.class); - - /* - * The location of the json data storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The code page name of the preferred encoding. If not specified, the - * default value is UTF-8, unless BOM denotes another Unicode encoding. - * Refer to the name column of the table in the following link to set - * supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The data compression method used for the json dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the location property: The location of the json data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the json data storage. - * - * @param location the location value to set. - * @return the JsonDatasetTypeProperties object itself. - */ - public JsonDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the JsonDatasetTypeProperties object itself. - */ - public JsonDatasetTypeProperties withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the JsonDatasetTypeProperties object itself. - */ - public JsonDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model JsonDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LicensedComponentSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LicensedComponentSetupTypeProperties.java deleted file mode 100644 index e07e88828e175..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LicensedComponentSetupTypeProperties.java +++ /dev/null @@ -1,86 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Installation of licensed component setup type properties. */ -@Fluent -public final class LicensedComponentSetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LicensedComponentSetupTypeProperties.class); - - /* - * The name of the 3rd party component. - */ - @JsonProperty(value = "componentName", required = true) - private String componentName; - - /* - * The license key to activate the component. - */ - @JsonProperty(value = "licenseKey") - private SecretBase licenseKey; - - /** - * Get the componentName property: The name of the 3rd party component. - * - * @return the componentName value. - */ - public String componentName() { - return this.componentName; - } - - /** - * Set the componentName property: The name of the 3rd party component. - * - * @param componentName the componentName value to set. - * @return the LicensedComponentSetupTypeProperties object itself. - */ - public LicensedComponentSetupTypeProperties withComponentName(String componentName) { - this.componentName = componentName; - return this; - } - - /** - * Get the licenseKey property: The license key to activate the component. - * - * @return the licenseKey value. - */ - public SecretBase licenseKey() { - return this.licenseKey; - } - - /** - * Set the licenseKey property: The license key to activate the component. - * - * @param licenseKey the licenseKey value to set. - * @return the LicensedComponentSetupTypeProperties object itself. - */ - public LicensedComponentSetupTypeProperties withLicenseKey(SecretBase licenseKey) { - this.licenseKey = licenseKey; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (componentName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property componentName in model LicensedComponentSetupTypeProperties")); - } - if (licenseKey() != null) { - licenseKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java deleted file mode 100644 index 2c470e7e7f542..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/LookupActivityTypeProperties.java +++ /dev/null @@ -1,123 +0,0 @@ -// 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.resourcemanager.datafactory.models.CopySource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Lookup activity properties. */ -@Fluent -public final class LookupActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LookupActivityTypeProperties.class); - - /* - * Dataset-specific source properties, same as copy activity source. - */ - @JsonProperty(value = "source", required = true) - private CopySource source; - - /* - * Lookup activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /* - * Whether to return first row or all rows. Default value is true. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "firstRowOnly") - private Object firstRowOnly; - - /** - * Get the source property: Dataset-specific source properties, same as copy activity source. - * - * @return the source value. - */ - public CopySource source() { - return this.source; - } - - /** - * Set the source property: Dataset-specific source properties, same as copy activity source. - * - * @param source the source value to set. - * @return the LookupActivityTypeProperties object itself. - */ - public LookupActivityTypeProperties withSource(CopySource source) { - this.source = source; - return this; - } - - /** - * Get the dataset property: Lookup activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Lookup activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the LookupActivityTypeProperties object itself. - */ - public LookupActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Get the firstRowOnly property: Whether to return first row or all rows. Default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the firstRowOnly value. - */ - public Object firstRowOnly() { - return this.firstRowOnly; - } - - /** - * Set the firstRowOnly property: Whether to return first row or all rows. Default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param firstRowOnly the firstRowOnly value to set. - * @return the LookupActivityTypeProperties object itself. - */ - public LookupActivityTypeProperties withFirstRowOnly(Object firstRowOnly) { - this.firstRowOnly = firstRowOnly; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (source() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property source in model LookupActivityTypeProperties")); - } else { - source().validate(); - } - if (dataset() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model LookupActivityTypeProperties")); - } else { - dataset().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java deleted file mode 100644 index 2f6349a7959c9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MagentoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,204 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Magento server linked service properties. */ -@Fluent -public final class MagentoLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MagentoLinkedServiceTypeProperties.class); - - /* - * The URL of the Magento instance. (i.e. 192.168.222.110/magento3) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The access token from Magento. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). - * - * @param host the host value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the accessToken property: The access token from Magento. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token from Magento. - * - * @param accessToken the accessToken value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MagentoLinkedServiceTypeProperties object itself. - */ - public MagentoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model MagentoLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java deleted file mode 100644 index b93e6cf5457c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java +++ /dev/null @@ -1,100 +0,0 @@ -// 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.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeError; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeNode; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntimeOperationResult; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; - -/** Managed integration runtime status type properties. */ -@Immutable -public final class ManagedIntegrationRuntimeStatusTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeStatusTypeProperties.class); - - /* - * The time at which the integration runtime was created, in ISO8601 - * format. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /* - * The list of nodes for managed integration runtime. - */ - @JsonProperty(value = "nodes", access = JsonProperty.Access.WRITE_ONLY) - private List nodes; - - /* - * The errors that occurred on this integration runtime. - */ - @JsonProperty(value = "otherErrors", access = JsonProperty.Access.WRITE_ONLY) - private List otherErrors; - - /* - * The last operation result that occurred on this integration runtime. - */ - @JsonProperty(value = "lastOperation", access = JsonProperty.Access.WRITE_ONLY) - private ManagedIntegrationRuntimeOperationResult lastOperation; - - /** - * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Get the nodes property: The list of nodes for managed integration runtime. - * - * @return the nodes value. - */ - public List nodes() { - return this.nodes; - } - - /** - * Get the otherErrors property: The errors that occurred on this integration runtime. - * - * @return the otherErrors value. - */ - public List otherErrors() { - return this.otherErrors; - } - - /** - * Get the lastOperation property: The last operation result that occurred on this integration runtime. - * - * @return the lastOperation value. - */ - public ManagedIntegrationRuntimeOperationResult lastOperation() { - return this.lastOperation; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (nodes() != null) { - nodes().forEach(e -> e.validate()); - } - if (otherErrors() != null) { - otherErrors().forEach(e -> e.validate()); - } - if (lastOperation() != null) { - lastOperation().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeTypeProperties.java deleted file mode 100644 index 247b4cde4a63c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ManagedIntegrationRuntimeTypeProperties.java +++ /dev/null @@ -1,119 +0,0 @@ -// 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.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeCustomerVirtualNetwork; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeSsisProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Managed integration runtime type properties. */ -@Fluent -public final class ManagedIntegrationRuntimeTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeTypeProperties.class); - - /* - * The compute resource for managed integration runtime. - */ - @JsonProperty(value = "computeProperties") - private IntegrationRuntimeComputeProperties computeProperties; - - /* - * SSIS properties for managed integration runtime. - */ - @JsonProperty(value = "ssisProperties") - private IntegrationRuntimeSsisProperties ssisProperties; - - /* - * The name of virtual network to which Azure-SSIS integration runtime will - * join - */ - @JsonProperty(value = "customerVirtualNetwork") - private IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork; - - /** - * Get the computeProperties property: The compute resource for managed integration runtime. - * - * @return the computeProperties value. - */ - public IntegrationRuntimeComputeProperties computeProperties() { - return this.computeProperties; - } - - /** - * Set the computeProperties property: The compute resource for managed integration runtime. - * - * @param computeProperties the computeProperties value to set. - * @return the ManagedIntegrationRuntimeTypeProperties object itself. - */ - public ManagedIntegrationRuntimeTypeProperties withComputeProperties( - IntegrationRuntimeComputeProperties computeProperties) { - this.computeProperties = computeProperties; - return this; - } - - /** - * Get the ssisProperties property: SSIS properties for managed integration runtime. - * - * @return the ssisProperties value. - */ - public IntegrationRuntimeSsisProperties ssisProperties() { - return this.ssisProperties; - } - - /** - * Set the ssisProperties property: SSIS properties for managed integration runtime. - * - * @param ssisProperties the ssisProperties value to set. - * @return the ManagedIntegrationRuntimeTypeProperties object itself. - */ - public ManagedIntegrationRuntimeTypeProperties withSsisProperties(IntegrationRuntimeSsisProperties ssisProperties) { - this.ssisProperties = ssisProperties; - return this; - } - - /** - * Get the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will - * join. - * - * @return the customerVirtualNetwork value. - */ - public IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork() { - return this.customerVirtualNetwork; - } - - /** - * Set the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will - * join. - * - * @param customerVirtualNetwork the customerVirtualNetwork value to set. - * @return the ManagedIntegrationRuntimeTypeProperties object itself. - */ - public ManagedIntegrationRuntimeTypeProperties withCustomerVirtualNetwork( - IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork) { - this.customerVirtualNetwork = customerVirtualNetwork; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (computeProperties() != null) { - computeProperties().validate(); - } - if (ssisProperties() != null) { - ssisProperties().validate(); - } - if (customerVirtualNetwork() != null) { - customerVirtualNetwork().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MappingDataFlowTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MappingDataFlowTypeProperties.java deleted file mode 100644 index 555f061d91424..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MappingDataFlowTypeProperties.java +++ /dev/null @@ -1,141 +0,0 @@ -// 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.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.Transformation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Mapping data flow type properties. */ -@Fluent -public final class MappingDataFlowTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MappingDataFlowTypeProperties.class); - - /* - * List of sources in data flow. - */ - @JsonProperty(value = "sources") - private List sources; - - /* - * List of sinks in data flow. - */ - @JsonProperty(value = "sinks") - private List sinks; - - /* - * List of transformations in data flow. - */ - @JsonProperty(value = "transformations") - private List transformations; - - /* - * DataFlow script. - */ - @JsonProperty(value = "script") - private String script; - - /** - * Get the sources property: List of sources in data flow. - * - * @return the sources value. - */ - public List sources() { - return this.sources; - } - - /** - * Set the sources property: List of sources in data flow. - * - * @param sources the sources value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withSources(List sources) { - this.sources = sources; - return this; - } - - /** - * Get the sinks property: List of sinks in data flow. - * - * @return the sinks value. - */ - public List sinks() { - return this.sinks; - } - - /** - * Set the sinks property: List of sinks in data flow. - * - * @param sinks the sinks value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withSinks(List sinks) { - this.sinks = sinks; - return this; - } - - /** - * Get the transformations property: List of transformations in data flow. - * - * @return the transformations value. - */ - public List transformations() { - return this.transformations; - } - - /** - * Set the transformations property: List of transformations in data flow. - * - * @param transformations the transformations value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withTransformations(List transformations) { - this.transformations = transformations; - return this; - } - - /** - * Get the script property: DataFlow script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: DataFlow script. - * - * @param script the script value to set. - * @return the MappingDataFlowTypeProperties object itself. - */ - public MappingDataFlowTypeProperties withScript(String script) { - this.script = script; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sources() != null) { - sources().forEach(e -> e.validate()); - } - if (sinks() != null) { - sinks().forEach(e -> e.validate()); - } - if (transformations() != null) { - transformations().forEach(e -> e.validate()); - } - } -} 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 deleted file mode 100644 index c038500b229ff..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MariaDBLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MariaDB server linked service properties. */ -@Fluent -public final class MariaDBLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MariaDBLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MariaDBLinkedServiceTypeProperties object itself. - */ - public MariaDBLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the MariaDBLinkedServiceTypeProperties object itself. - */ - public MariaDBLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MariaDBLinkedServiceTypeProperties object itself. - */ - public MariaDBLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java deleted file mode 100644 index aa5f05bec47b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MarketoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,236 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Marketo server linked service properties. */ -@Fluent -public final class MarketoLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MarketoLinkedServiceTypeProperties.class); - - /* - * The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The client Id of your Marketo service. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret of your Marketo service. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). - * - * @param endpoint the endpoint value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the clientId property: The client Id of your Marketo service. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client Id of your Marketo service. - * - * @param clientId the clientId value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret of your Marketo service. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret of your Marketo service. - * - * @param clientSecret the clientSecret value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MarketoLinkedServiceTypeProperties object itself. - */ - public MarketoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model MarketoLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model MarketoLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java deleted file mode 100644 index e634f267df641..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessLinkedServiceTypeProperties.java +++ /dev/null @@ -1,212 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Microsoft Access linked service properties. */ -@Fluent -public final class MicrosoftAccessLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MicrosoftAccessLinkedServiceTypeProperties.class); - - /* - * The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * Type of authentication used to connect to the Microsoft Access as ODBC - * data store. Possible values are: Anonymous and Basic. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access credential portion of the connection string specified in - * driver-specific property-value format. - */ - @JsonProperty(value = "credential") - private SecretBase credential; - - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the Microsoft Access as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the Microsoft Access as ODBC data - * store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.credential; - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withCredential(SecretBase credential) { - this.credential = credential; - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MicrosoftAccessLinkedServiceTypeProperties object itself. - */ - public MicrosoftAccessLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model" - + " MicrosoftAccessLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java deleted file mode 100644 index caccb19b3a8ee..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MicrosoftAccessTableDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Microsoft Access table dataset properties. */ -@Fluent -public final class MicrosoftAccessTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MicrosoftAccessTableDatasetTypeProperties.class); - - /* - * The Microsoft Access table name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MicrosoftAccessTableDatasetTypeProperties object itself. - */ - public MicrosoftAccessTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasCollectionDatasetTypeProperties.java deleted file mode 100644 index 55375d7fa2da1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB Atlas database dataset properties. */ -@Fluent -public final class MongoDbAtlasCollectionDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbAtlasCollectionDatasetTypeProperties.class); - - /* - * The collection name of the MongoDB Atlas database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "collection", required = true) - private Object collection; - - /** - * Get the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.collection; - } - - /** - * Set the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbAtlasCollectionDatasetTypeProperties object itself. - */ - public MongoDbAtlasCollectionDatasetTypeProperties withCollection(Object collection) { - this.collection = collection; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collection() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collection in model MongoDbAtlasCollectionDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java deleted file mode 100644 index 0aa134cdfbf16..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbAtlasLinkedServiceTypeProperties.java +++ /dev/null @@ -1,95 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB Atlas linked service properties. */ -@Fluent -public final class MongoDbAtlasLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbAtlasLinkedServiceTypeProperties.class); - - /* - * The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The name of the MongoDB Atlas database that you want to access. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /** - * Get the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MongoDbAtlasLinkedServiceTypeProperties object itself. - */ - public MongoDbAtlasLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the database property: The name of the MongoDB Atlas database that you want to access. Type: string (or - * Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the MongoDB Atlas database that you want to access. Type: string (or - * Expression with resultType string). - * - * @param database the database value to set. - * @return the MongoDbAtlasLinkedServiceTypeProperties object itself. - */ - public MongoDbAtlasLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model MongoDbAtlasLinkedServiceTypeProperties")); - } - if (database() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model MongoDbAtlasLinkedServiceTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbCollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbCollectionDatasetTypeProperties.java deleted file mode 100644 index 58a137467bfe9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbCollectionDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB database dataset properties. */ -@Fluent -public final class MongoDbCollectionDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbCollectionDatasetTypeProperties.class); - - /* - * The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "collectionName", required = true) - private Object collectionName; - - /** - * Get the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.collectionName; - } - - /** - * Set the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collectionName the collectionName value to set. - * @return the MongoDbCollectionDatasetTypeProperties object itself. - */ - public MongoDbCollectionDatasetTypeProperties withCollectionName(Object collectionName) { - this.collectionName = collectionName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collectionName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collectionName in model MongoDbCollectionDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java deleted file mode 100644 index 98671d0673fcc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbLinkedServiceTypeProperties.java +++ /dev/null @@ -1,327 +0,0 @@ -// 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.resourcemanager.datafactory.models.MongoDbAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB linked service properties. */ -@Fluent -public final class MongoDbLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbLinkedServiceTypeProperties.class); - - /* - * The IP address or server name of the MongoDB server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * The authentication type to be used to connect to the MongoDB database. - */ - @JsonProperty(value = "authenticationType") - private MongoDbAuthenticationType authenticationType; - - /* - * The name of the MongoDB database that you want to access. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "databaseName", required = true) - private Object databaseName; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Database to verify the username and password. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "authSource") - private Object authSource; - - /* - * The TCP port number that the MongoDB server uses to listen for client - * connections. The default value is 27017. Type: integer (or Expression - * with resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with - * resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with - * resultType string). - * - * @param server the server value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the MongoDB database. - * - * @return the authenticationType value. - */ - public MongoDbAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the MongoDB database. - * - * @param authenticationType the authenticationType value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withAuthenticationType(MongoDbAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the databaseName property: The name of the MongoDB database that you want to access. Type: string (or - * Expression with resultType string). - * - * @return the databaseName value. - */ - public Object databaseName() { - return this.databaseName; - } - - /** - * Set the databaseName property: The name of the MongoDB database that you want to access. Type: string (or - * Expression with resultType string). - * - * @param databaseName the databaseName value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withDatabaseName(Object databaseName) { - this.databaseName = databaseName; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authSource property: Database to verify the username and password. Type: string (or Expression with - * resultType string). - * - * @return the authSource value. - */ - public Object authSource() { - return this.authSource; - } - - /** - * Set the authSource property: Database to verify the username and password. Type: string (or Expression with - * resultType string). - * - * @param authSource the authSource value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withAuthSource(Object authSource) { - this.authSource = authSource; - return this; - } - - /** - * Get the port property: The TCP port number that the MongoDB server uses to listen for client connections. The - * default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the MongoDB server uses to listen for client connections. The - * default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. Type: boolean (or Expression with resultType boolean). - * - * @param enableSsl the enableSsl value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. Type: boolean (or Expression with resultType boolean). - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MongoDbLinkedServiceTypeProperties object itself. - */ - public MongoDbLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model MongoDbLinkedServiceTypeProperties")); - } - if (databaseName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property databaseName in model MongoDbLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2CollectionDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2CollectionDatasetTypeProperties.java deleted file mode 100644 index 2f910d299b2cf..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2CollectionDatasetTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB database dataset properties. */ -@Fluent -public final class MongoDbV2CollectionDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbV2CollectionDatasetTypeProperties.class); - - /* - * The collection name of the MongoDB database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "collection", required = true) - private Object collection; - - /** - * Get the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.collection; - } - - /** - * Set the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbV2CollectionDatasetTypeProperties object itself. - */ - public MongoDbV2CollectionDatasetTypeProperties withCollection(Object collection) { - this.collection = collection; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (collection() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property collection in model MongoDbV2CollectionDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2LinkedServiceTypeProperties.java deleted file mode 100644 index 711680d156774..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MongoDbV2LinkedServiceTypeProperties.java +++ /dev/null @@ -1,95 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MongoDB linked service properties. */ -@Fluent -public final class MongoDbV2LinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbV2LinkedServiceTypeProperties.class); - - /* - * The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The name of the MongoDB database that you want to access. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /** - * Get the connectionString property: The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The MongoDB connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the MongoDbV2LinkedServiceTypeProperties object itself. - */ - public MongoDbV2LinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the database property: The name of the MongoDB database that you want to access. Type: string (or Expression - * with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The name of the MongoDB database that you want to access. Type: string (or Expression - * with resultType string). - * - * @param database the database value to set. - * @return the MongoDbV2LinkedServiceTypeProperties object itself. - */ - public MongoDbV2LinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model MongoDbV2LinkedServiceTypeProperties")); - } - if (database() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model MongoDbV2LinkedServiceTypeProperties")); - } - } -} 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 deleted file mode 100644 index a991b9ea4c5cb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MySQL linked service properties. */ -@Fluent -public final class MySqlLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MySqlLinkedServiceTypeProperties.class); - - /* - * The connection string. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. - * - * @param connectionString the connectionString value to set. - * @return the MySqlLinkedServiceTypeProperties object itself. - */ - public MySqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the MySqlLinkedServiceTypeProperties object itself. - */ - public MySqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the MySqlLinkedServiceTypeProperties object itself. - */ - public MySqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model MySqlLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java deleted file mode 100644 index e9a0872f41497..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/MySqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** MySql table dataset properties. */ -@Fluent -public final class MySqlTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MySqlTableDatasetTypeProperties.class); - - /* - * The MySQL table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MySqlTableDatasetTypeProperties object itself. - */ - public MySqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java deleted file mode 100644 index 4316ce63e7a08..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Netezza linked service properties. */ -@Fluent -public final class NetezzaLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetezzaLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the NetezzaLinkedServiceTypeProperties object itself. - */ - public NetezzaLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the NetezzaLinkedServiceTypeProperties object itself. - */ - public NetezzaLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the NetezzaLinkedServiceTypeProperties object itself. - */ - public NetezzaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java deleted file mode 100644 index 445eadc4a2649..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/NetezzaTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Netezza dataset properties. */ -@Fluent -public final class NetezzaTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetezzaTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Netezza. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Netezza. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the NetezzaTableDatasetTypeProperties object itself. - */ - public NetezzaTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Netezza. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Netezza. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the NetezzaTableDatasetTypeProperties object itself. - */ - public NetezzaTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the NetezzaTableDatasetTypeProperties object itself. - */ - public NetezzaTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java deleted file mode 100644 index a33b431f185d1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataLinkedServiceTypeProperties.java +++ /dev/null @@ -1,452 +0,0 @@ -// 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.resourcemanager.datafactory.models.ODataAadServicePrincipalCredentialType; -import com.azure.resourcemanager.datafactory.models.ODataAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** OData linked service properties. */ -@Fluent -public final class ODataLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ODataLinkedServiceTypeProperties.class); - - /* - * The URL of the OData service endpoint. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Type of authentication used to connect to the OData service. - */ - @JsonProperty(value = "authenticationType") - private ODataAuthenticationType authenticationType; - - /* - * User name of the OData service. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password of the OData service. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The additional HTTP headers in the request to RESTful API used for - * authorization. Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "authHeaders") - private Object authHeaders; - - /* - * Specify the tenant information (domain name or tenant ID) under which - * your application resides. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Specify the application id of your application registered in Azure - * Active Directory. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * Specify the resource you are requesting authorization to use Directory. - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "aadResourceId") - private Object aadResourceId; - - /* - * Specify the credential type (key or cert) is used for service principal. - */ - @JsonProperty(value = "aadServicePrincipalCredentialType") - private ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType; - - /* - * Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * Specify the base64 encoded certificate of your application registered in - * Azure Active Directory. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "servicePrincipalEmbeddedCert") - private SecretBase servicePrincipalEmbeddedCert; - - /* - * Specify the password of your certificate if your certificate has a - * password and you are using AadServicePrincipal authentication. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalEmbeddedCertPassword") - private SecretBase servicePrincipalEmbeddedCertPassword; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the OData service. - * - * @return the authenticationType value. - */ - public ODataAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the OData service. - * - * @param authenticationType the authenticationType value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAuthenticationType(ODataAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: User name of the OData service. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name of the OData service. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password of the OData service. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password of the OData service. - * - * @param password the password value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.authHeaders; - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAuthHeaders(Object authHeaders) { - this.authHeaders = authHeaders; - return this; - } - - /** - * Get the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Type: string (or Expression with resultType string). - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: Specify the tenant information (domain name or tenant ID) under which your application - * resides. Type: string (or Expression with resultType string). - * - * @param tenant the tenant value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application id of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: Specify the application id of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the aadResourceId property: Specify the resource you are requesting authorization to use Directory. Type: - * string (or Expression with resultType string). - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.aadResourceId; - } - - /** - * Set the aadResourceId property: Specify the resource you are requesting authorization to use Directory. Type: - * string (or Expression with resultType string). - * - * @param aadResourceId the aadResourceId value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAadResourceId(Object aadResourceId) { - this.aadResourceId = aadResourceId; - return this; - } - - /** - * Get the aadServicePrincipalCredentialType property: Specify the credential type (key or cert) is used for service - * principal. - * - * @return the aadServicePrincipalCredentialType value. - */ - public ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType() { - return this.aadServicePrincipalCredentialType; - } - - /** - * Set the aadServicePrincipalCredentialType property: Specify the credential type (key or cert) is used for service - * principal. - * - * @param aadServicePrincipalCredentialType the aadServicePrincipalCredentialType value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withAadServicePrincipalCredentialType( - ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType) { - this.aadServicePrincipalCredentialType = aadServicePrincipalCredentialType; - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: Specify the secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application - * registered in Azure Active Directory. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalEmbeddedCert value. - */ - public SecretBase servicePrincipalEmbeddedCert() { - return this.servicePrincipalEmbeddedCert; - } - - /** - * Set the servicePrincipalEmbeddedCert property: Specify the base64 encoded certificate of your application - * registered in Azure Active Directory. Type: string (or Expression with resultType string). - * - * @param servicePrincipalEmbeddedCert the servicePrincipalEmbeddedCert value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { - this.servicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert; - return this; - } - - /** - * Get the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your - * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalEmbeddedCertPassword value. - */ - public SecretBase servicePrincipalEmbeddedCertPassword() { - return this.servicePrincipalEmbeddedCertPassword; - } - - /** - * Set the servicePrincipalEmbeddedCertPassword property: Specify the password of your certificate if your - * certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalEmbeddedCertPassword the servicePrincipalEmbeddedCertPassword value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withServicePrincipalEmbeddedCertPassword( - SecretBase servicePrincipalEmbeddedCertPassword) { - this.servicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ODataLinkedServiceTypeProperties object itself. - */ - public ODataLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model ODataLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (servicePrincipalEmbeddedCert() != null) { - servicePrincipalEmbeddedCert().validate(); - } - if (servicePrincipalEmbeddedCertPassword() != null) { - servicePrincipalEmbeddedCertPassword().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java deleted file mode 100644 index 3c238f64df745..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ODataResourceDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** OData dataset properties. */ -@Fluent -public final class ODataResourceDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ODataResourceDatasetTypeProperties.class); - - /* - * The OData resource path. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "path") - private Object path; - - /** - * Get the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the ODataResourceDatasetTypeProperties object itself. - */ - public ODataResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java deleted file mode 100644 index 8284d6302d85c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcLinkedServiceTypeProperties.java +++ /dev/null @@ -1,211 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ODBC linked service properties. */ -@Fluent -public final class OdbcLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OdbcLinkedServiceTypeProperties.class); - - /* - * The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "authenticationType") - private Object authenticationType; - - /* - * The access credential portion of the connection string specified in - * driver-specific property-value format. - */ - @JsonProperty(value = "credential") - private SecretBase credential; - - /* - * User name for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The non-access credential portion of the connection string as well as an - * optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @return the authenticationType value. - */ - public Object authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the ODBC data store. Possible - * values are: Anonymous and Basic. Type: string (or Expression with resultType string). - * - * @param authenticationType the authenticationType value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withAuthenticationType(Object authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @return the credential value. - */ - public SecretBase credential() { - return this.credential; - } - - /** - * Set the credential property: The access credential portion of the connection string specified in driver-specific - * property-value format. - * - * @param credential the credential value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withCredential(SecretBase credential) { - this.credential = credential; - return this; - } - - /** - * Get the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: User name for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for Basic authentication. - * - * @param password the password value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OdbcLinkedServiceTypeProperties object itself. - */ - public OdbcLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model OdbcLinkedServiceTypeProperties")); - } - if (credential() != null) { - credential().validate(); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java deleted file mode 100644 index 20ef3f08ff2c9..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OdbcTableDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ODBC table dataset properties. */ -@Fluent -public final class OdbcTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OdbcTableDatasetTypeProperties.class); - - /* - * The ODBC table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the OdbcTableDatasetTypeProperties object itself. - */ - public OdbcTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java deleted file mode 100644 index 680e60ad2567c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365DatasetTypeProperties.java +++ /dev/null @@ -1,89 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Office365 dataset properties. */ -@Fluent -public final class Office365DatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Office365DatasetTypeProperties.class); - - /* - * Name of the dataset to extract from Office 365. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "tableName", required = true) - private Object tableName; - - /* - * A predicate expression that can be used to filter the specific rows to - * extract from Office 365. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "predicate") - private Object predicate; - - /** - * Get the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the Office365DatasetTypeProperties object itself. - */ - public Office365DatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @return the predicate value. - */ - public Object predicate() { - return this.predicate; - } - - /** - * Set the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @param predicate the predicate value to set. - * @return the Office365DatasetTypeProperties object itself. - */ - public Office365DatasetTypeProperties withPredicate(Object predicate) { - this.predicate = predicate; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (tableName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tableName in model Office365DatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java deleted file mode 100644 index a93b95e94ee92..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Office365LinkedServiceTypeProperties.java +++ /dev/null @@ -1,195 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Office365 linked service properties. */ -@Fluent -public final class Office365LinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Office365LinkedServiceTypeProperties.class); - - /* - * Azure tenant ID to which the Office 365 account belongs. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "office365TenantId", required = true) - private Object office365TenantId; - - /* - * Specify the tenant information under which your Azure AD web application - * resides. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalTenantId", required = true) - private Object servicePrincipalTenantId; - - /* - * Specify the application's client ID. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "servicePrincipalId", required = true) - private Object servicePrincipalId; - - /* - * Specify the application's key. - */ - @JsonProperty(value = "servicePrincipalKey", required = true) - private SecretBase servicePrincipalKey; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or - * Expression with resultType string). - * - * @return the office365TenantId value. - */ - public Object office365TenantId() { - return this.office365TenantId; - } - - /** - * Set the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or - * Expression with resultType string). - * - * @param office365TenantId the office365TenantId value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withOffice365TenantId(Object office365TenantId) { - this.office365TenantId = office365TenantId; - return this; - } - - /** - * Get the servicePrincipalTenantId property: Specify the tenant information under which your Azure AD web - * application resides. Type: string (or Expression with resultType string). - * - * @return the servicePrincipalTenantId value. - */ - public Object servicePrincipalTenantId() { - return this.servicePrincipalTenantId; - } - - /** - * Set the servicePrincipalTenantId property: Specify the tenant information under which your Azure AD web - * application resides. Type: string (or Expression with resultType string). - * - * @param servicePrincipalTenantId the servicePrincipalTenantId value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withServicePrincipalTenantId(Object servicePrincipalTenantId) { - this.servicePrincipalTenantId = servicePrincipalTenantId; - return this; - } - - /** - * Get the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: Specify the application's client ID. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: Specify the application's key. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: Specify the application's key. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the Office365LinkedServiceTypeProperties object itself. - */ - public Office365LinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (office365TenantId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property office365TenantId in model Office365LinkedServiceTypeProperties")); - } - if (servicePrincipalTenantId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalTenantId in model" - + " Office365LinkedServiceTypeProperties")); - } - if (servicePrincipalId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalId in model Office365LinkedServiceTypeProperties")); - } - if (servicePrincipalKey() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalKey in model Office365LinkedServiceTypeProperties")); - } else { - servicePrincipalKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java index 56256cb1f3118..e08bf4e964d7e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationInner.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.datafactory.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.OperationDisplay; import com.azure.resourcemanager.datafactory.models.OperationServiceSpecification; @@ -12,8 +13,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** Azure Data Factory API operation definition. */ +@JsonFlatten @Fluent -public final class OperationInner { +public class OperationInner { @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); /* @@ -35,10 +37,10 @@ public final class OperationInner { private OperationDisplay display; /* - * Additional details about the operation. + * Details about a service operation. */ - @JsonProperty(value = "properties") - private OperationProperties innerProperties; + @JsonProperty(value = "properties.serviceSpecification") + private OperationServiceSpecification serviceSpecification; /** * Get the name property: Operation name: {provider}/{resource}/{operation}. @@ -100,22 +102,13 @@ public OperationInner withDisplay(OperationDisplay display) { return this; } - /** - * Get the innerProperties property: Additional details about the operation. - * - * @return the innerProperties value. - */ - private OperationProperties innerProperties() { - return this.innerProperties; - } - /** * Get the serviceSpecification property: Details about a service operation. * * @return the serviceSpecification value. */ public OperationServiceSpecification serviceSpecification() { - return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification(); + return this.serviceSpecification; } /** @@ -125,10 +118,7 @@ public OperationServiceSpecification serviceSpecification() { * @return the OperationInner object itself. */ public OperationInner withServiceSpecification(OperationServiceSpecification serviceSpecification) { - if (this.innerProperties() == null) { - this.innerProperties = new OperationProperties(); - } - this.innerProperties().withServiceSpecification(serviceSpecification); + this.serviceSpecification = serviceSpecification; return this; } @@ -141,8 +131,8 @@ public void validate() { if (display() != null) { display().validate(); } - if (innerProperties() != null) { - innerProperties().validate(); + if (serviceSpecification() != null) { + serviceSpecification().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java deleted file mode 100644 index 298d90b54b239..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OperationProperties.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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.resourcemanager.datafactory.models.OperationServiceSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Additional details about an operation. */ -@Fluent -public final class OperationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class); - - /* - * Details about a service operation. - */ - @JsonProperty(value = "serviceSpecification") - private OperationServiceSpecification serviceSpecification; - - /** - * Get the serviceSpecification property: Details about a service operation. - * - * @return the serviceSpecification value. - */ - public OperationServiceSpecification serviceSpecification() { - return this.serviceSpecification; - } - - /** - * Set the serviceSpecification property: Details about a service operation. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationProperties object itself. - */ - public OperationProperties withServiceSpecification(OperationServiceSpecification serviceSpecification) { - this.serviceSpecification = serviceSpecification; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceSpecification() != null) { - serviceSpecification().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java deleted file mode 100644 index 9ca593946bc8b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleCloudStorageLinkedServiceTypeProperties.java +++ /dev/null @@ -1,151 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Oracle Cloud Storage linked service properties. */ -@Fluent -public final class OracleCloudStorageLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(OracleCloudStorageLinkedServiceTypeProperties.class); - - /* - * The access key identifier of the Oracle Cloud Storage Identity and - * Access Management (IAM) user. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "accessKeyId") - private Object accessKeyId; - - /* - * The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - */ - @JsonProperty(value = "secretAccessKey") - private SecretBase secretAccessKey; - - /* - * This value specifies the endpoint to access with the Oracle Cloud - * Storage Connector. This is an optional property; change it only if you - * want to try a different service endpoint or want to switch between https - * and http. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "serviceUrl") - private Object serviceUrl; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @return the accessKeyId value. - */ - public Object accessKeyId() { - return this.accessKeyId; - } - - /** - * Set the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. Type: string (or Expression with resultType string). - * - * @param accessKeyId the accessKeyId value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withAccessKeyId(Object accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * Get the secretAccessKey property: The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - * - * @return the secretAccessKey value. - */ - public SecretBase secretAccessKey() { - return this.secretAccessKey; - } - - /** - * Set the secretAccessKey property: The secret access key of the Oracle Cloud Storage Identity and Access - * Management (IAM) user. - * - * @param secretAccessKey the secretAccessKey value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withSecretAccessKey(SecretBase secretAccessKey) { - this.secretAccessKey = secretAccessKey; - return this; - } - - /** - * Get the serviceUrl property: This value specifies the endpoint to access with the Oracle Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @return the serviceUrl value. - */ - public Object serviceUrl() { - return this.serviceUrl; - } - - /** - * Set the serviceUrl property: This value specifies the endpoint to access with the Oracle Cloud Storage Connector. - * This is an optional property; change it only if you want to try a different service endpoint or want to switch - * between https and http. Type: string (or Expression with resultType string). - * - * @param serviceUrl the serviceUrl value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withServiceUrl(Object serviceUrl) { - this.serviceUrl = serviceUrl; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleCloudStorageLinkedServiceTypeProperties object itself. - */ - public OracleCloudStorageLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretAccessKey() != null) { - secretAccessKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java deleted file mode 100644 index e585712b5b9be..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleLinkedServiceTypeProperties.java +++ /dev/null @@ -1,119 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Oracle database linked service properties. */ -@Fluent -public final class OracleLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the OracleLinkedServiceTypeProperties object itself. - */ - public OracleLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the OracleLinkedServiceTypeProperties object itself. - */ - public OracleLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleLinkedServiceTypeProperties object itself. - */ - public OracleLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model OracleLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java deleted file mode 100644 index 60f22ceb7ac77..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleServiceCloudLinkedServiceTypeProperties.java +++ /dev/null @@ -1,248 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Oracle Service Cloud linked service properties. */ -@Fluent -public final class OracleServiceCloudLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(OracleServiceCloudLinkedServiceTypeProperties.class); - - /* - * The URL of the Oracle Service Cloud instance. - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The user name that you use to access Oracle Service Cloud server. - */ - @JsonProperty(value = "username", required = true) - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * username key. - */ - @JsonProperty(value = "password", required = true) - private SecretBase password; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The URL of the Oracle Service Cloud instance. - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the Oracle Service Cloud instance. - * - * @param host the host value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the username property: The user name that you use to access Oracle Service Cloud server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Oracle Service Cloud server. - * - * @param username the username value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the username key. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the username key. - * - * @param password the password value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the OracleServiceCloudLinkedServiceTypeProperties object itself. - */ - public OracleServiceCloudLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model OracleServiceCloudLinkedServiceTypeProperties")); - } - if (username() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model OracleServiceCloudLinkedServiceTypeProperties")); - } - if (password() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model OracleServiceCloudLinkedServiceTypeProperties")); - } else { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java deleted file mode 100644 index f17a8a11c846c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OracleTableDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** On-premises Oracle dataset properties. */ -@Fluent -public final class OracleTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the on-premises Oracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the on-premises Oracle database. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the OracleTableDatasetTypeProperties object itself. - */ - public OracleTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the OracleTableDatasetTypeProperties object itself. - */ - public OracleTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the OracleTableDatasetTypeProperties object itself. - */ - public OracleTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java deleted file mode 100644 index db7735aaf5d42..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/OrcDatasetTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ORC dataset properties. */ -@Fluent -public final class OrcDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OrcDatasetTypeProperties.class); - - /* - * The location of the ORC data storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data orcCompressionCodec. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "orcCompressionCodec") - private Object orcCompressionCodec; - - /** - * Get the location property: The location of the ORC data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the ORC data storage. - * - * @param location the location value to set. - * @return the OrcDatasetTypeProperties object itself. - */ - public OrcDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the orcCompressionCodec value. - */ - public Object orcCompressionCodec() { - return this.orcCompressionCodec; - } - - /** - * Set the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param orcCompressionCodec the orcCompressionCodec value to set. - * @return the OrcDatasetTypeProperties object itself. - */ - public OrcDatasetTypeProperties withOrcCompressionCodec(Object orcCompressionCodec) { - this.orcCompressionCodec = orcCompressionCodec; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model OrcDatasetTypeProperties")); - } else { - location().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java deleted file mode 100644 index 648f6f24b3eec..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ParquetDatasetTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Parquet dataset properties. */ -@Fluent -public final class ParquetDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ParquetDatasetTypeProperties.class); - - /* - * The location of the parquet storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The data compressionCodec. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "compressionCodec") - private Object compressionCodec; - - /** - * Get the location property: The location of the parquet storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the parquet storage. - * - * @param location the location value to set. - * @return the ParquetDatasetTypeProperties object itself. - */ - public ParquetDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.compressionCodec; - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the ParquetDatasetTypeProperties object itself. - */ - public ParquetDatasetTypeProperties withCompressionCodec(Object compressionCodec) { - this.compressionCodec = compressionCodec; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model ParquetDatasetTypeProperties")); - } else { - location().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java deleted file mode 100644 index 09c5e9f4b7cca..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PaypalLinkedServiceTypeProperties.java +++ /dev/null @@ -1,236 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Paypal Service linked service properties. */ -@Fluent -public final class PaypalLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PaypalLinkedServiceTypeProperties.class); - - /* - * The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The client ID associated with your PayPal application. - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret associated with your PayPal application. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). - * - * @param host the host value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the clientId property: The client ID associated with your PayPal application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with your PayPal application. - * - * @param clientId the clientId value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your PayPal application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with your PayPal application. - * - * @param clientSecret the clientSecret value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PaypalLinkedServiceTypeProperties object itself. - */ - public PaypalLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model PaypalLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model PaypalLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java deleted file mode 100644 index fb485c5a2017b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Phoenix Dataset Properties. */ -@Fluent -public final class PhoenixDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PhoenixDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Phoenix. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Phoenix. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PhoenixDatasetTypeProperties object itself. - */ - public PhoenixDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Phoenix. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Phoenix. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PhoenixDatasetTypeProperties object itself. - */ - public PhoenixDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PhoenixDatasetTypeProperties object itself. - */ - public PhoenixDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java deleted file mode 100644 index a9b562a7015a8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PhoenixLinkedServiceTypeProperties.java +++ /dev/null @@ -1,385 +0,0 @@ -// 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.resourcemanager.datafactory.models.PhoenixAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Phoenix server linked service properties. */ -@Fluent -public final class PhoenixLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PhoenixLinkedServiceTypeProperties.class); - - /* - * The IP address or host name of the Phoenix server. (i.e. - * 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Phoenix server uses to listen for client - * connections. The default value is 8765. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if - * using WindowsAzureHDInsightService. - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * The authentication mechanism used to connect to the Phoenix server. - */ - @JsonProperty(value = "authenticationType", required = true) - private PhoenixAuthenticationType authenticationType; - - /* - * The user name used to connect to the Phoenix server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Phoenix server uses to listen for client connections. The default - * value is 8765. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Phoenix server uses to listen for client connections. The default - * value is 8765. - * - * @param port the port value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the Phoenix server. (i.e. - * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - * - * @param httpPath the httpPath value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism used to connect to the Phoenix server. - * - * @return the authenticationType value. - */ - public PhoenixAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication mechanism used to connect to the Phoenix server. - * - * @param authenticationType the authenticationType value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withAuthenticationType(PhoenixAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the Phoenix server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the Phoenix server. - * - * @param username the username value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PhoenixLinkedServiceTypeProperties object itself. - */ - public PhoenixLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model PhoenixLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model PhoenixLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Pipeline.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Pipeline.java deleted file mode 100644 index 3ed9ab5f6a95c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/Pipeline.java +++ /dev/null @@ -1,301 +0,0 @@ -// 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.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.PipelineFolder; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** A data factory pipeline. */ -@Fluent -public final class Pipeline { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Pipeline.class); - - /* - * The description of the pipeline. - */ - @JsonProperty(value = "description") - private String description; - - /* - * List of activities in pipeline. - */ - @JsonProperty(value = "activities") - private List activities; - - /* - * List of parameters for pipeline. - */ - @JsonProperty(value = "parameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map parameters; - - /* - * List of variables for pipeline. - */ - @JsonProperty(value = "variables") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map variables; - - /* - * The max number of concurrent runs for the pipeline. - */ - @JsonProperty(value = "concurrency") - private Integer concurrency; - - /* - * List of tags that can be used for describing the Pipeline. - */ - @JsonProperty(value = "annotations") - private List annotations; - - /* - * Dimensions emitted by Pipeline. - */ - @JsonProperty(value = "runDimensions") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map runDimensions; - - /* - * The folder that this Pipeline is in. If not specified, Pipeline will - * appear at the root level. - */ - @JsonProperty(value = "folder") - private PipelineFolder folder; - - /* - * Pipeline Policy. - */ - @JsonProperty(value = "policy") - private PipelinePolicy policy; - - /** - * Get the description property: The description of the pipeline. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description of the pipeline. - * - * @param description the description value to set. - * @return the Pipeline object itself. - */ - public Pipeline withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the activities property: List of activities in pipeline. - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities in pipeline. - * - * @param activities the activities value to set. - * @return the Pipeline object itself. - */ - public Pipeline withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Get the parameters property: List of parameters for pipeline. - * - * @return the parameters value. - */ - public Map parameters() { - return this.parameters; - } - - /** - * Set the parameters property: List of parameters for pipeline. - * - * @param parameters the parameters value to set. - * @return the Pipeline object itself. - */ - public Pipeline withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the variables property: List of variables for pipeline. - * - * @return the variables value. - */ - public Map variables() { - return this.variables; - } - - /** - * Set the variables property: List of variables for pipeline. - * - * @param variables the variables value to set. - * @return the Pipeline object itself. - */ - public Pipeline withVariables(Map variables) { - this.variables = variables; - return this; - } - - /** - * Get the concurrency property: The max number of concurrent runs for the pipeline. - * - * @return the concurrency value. - */ - public Integer concurrency() { - return this.concurrency; - } - - /** - * Set the concurrency property: The max number of concurrent runs for the pipeline. - * - * @param concurrency the concurrency value to set. - * @return the Pipeline object itself. - */ - public Pipeline withConcurrency(Integer concurrency) { - this.concurrency = concurrency; - return this; - } - - /** - * Get the annotations property: List of tags that can be used for describing the Pipeline. - * - * @return the annotations value. - */ - public List annotations() { - return this.annotations; - } - - /** - * Set the annotations property: List of tags that can be used for describing the Pipeline. - * - * @param annotations the annotations value to set. - * @return the Pipeline object itself. - */ - public Pipeline withAnnotations(List annotations) { - this.annotations = annotations; - return this; - } - - /** - * Get the runDimensions property: Dimensions emitted by Pipeline. - * - * @return the runDimensions value. - */ - public Map runDimensions() { - return this.runDimensions; - } - - /** - * Set the runDimensions property: Dimensions emitted by Pipeline. - * - * @param runDimensions the runDimensions value to set. - * @return the Pipeline object itself. - */ - public Pipeline withRunDimensions(Map runDimensions) { - this.runDimensions = runDimensions; - return this; - } - - /** - * Get the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @return the folder value. - */ - public PipelineFolder folder() { - return this.folder; - } - - /** - * Set the folder property: The folder that this Pipeline is in. If not specified, Pipeline will appear at the root - * level. - * - * @param folder the folder value to set. - * @return the Pipeline object itself. - */ - public Pipeline withFolder(PipelineFolder folder) { - this.folder = folder; - return this; - } - - /** - * Get the policy property: Pipeline Policy. - * - * @return the policy value. - */ - public PipelinePolicy policy() { - return this.policy; - } - - /** - * Set the policy property: Pipeline Policy. - * - * @param policy the policy value to set. - * @return the Pipeline object itself. - */ - public Pipeline withPolicy(PipelinePolicy policy) { - this.policy = policy; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (activities() != null) { - activities().forEach(e -> e.validate()); - } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (variables() != null) { - variables() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (folder() != null) { - folder().validate(); - } - if (policy() != null) { - policy().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java index db229f0451c71..6b5adc8ce52f2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PipelineResourceInner.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.datafactory.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.models.Activity; @@ -15,116 +16,98 @@ import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.HashMap; import java.util.List; import java.util.Map; /** Pipeline resource type. */ +@JsonFlatten @Fluent -public final class PipelineResourceInner extends SubResource { +public class PipelineResourceInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineResourceInner.class); /* - * Properties of the pipeline. + * The description of the pipeline. */ - @JsonProperty(value = "properties", required = true) - private Pipeline innerProperties = new Pipeline(); + @JsonProperty(value = "properties.description") + private String description; /* - * The resource name. + * List of activities in pipeline. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; + @JsonProperty(value = "properties.activities") + private List activities; /* - * The resource type. + * List of parameters for pipeline. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; + @JsonProperty(value = "properties.parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; /* - * Etag identifies change in the resource. + * List of variables for pipeline. */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; + @JsonProperty(value = "properties.variables") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map variables; /* - * Pipeline resource type. + * The max number of concurrent runs for the pipeline. */ - @JsonIgnore private Map additionalProperties; + @JsonProperty(value = "properties.concurrency") + private Integer concurrency; - /** - * Get the innerProperties property: Properties of the pipeline. - * - * @return the innerProperties value. + /* + * List of tags that can be used for describing the Pipeline. */ - private Pipeline innerProperties() { - return this.innerProperties; - } + @JsonProperty(value = "properties.annotations") + private List annotations; - /** - * Get the name property: The resource name. - * - * @return the name value. + /* + * Dimensions emitted by Pipeline. */ - public String name() { - return this.name; - } + @JsonProperty(value = "properties.runDimensions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map runDimensions; - /** - * Get the type property: The resource type. - * - * @return the type value. + /* + * The folder that this Pipeline is in. If not specified, Pipeline will + * appear at the root level. */ - public String type() { - return this.type; - } + @JsonProperty(value = "properties.folder") + private PipelineFolder folder; - /** - * Get the etag property: Etag identifies change in the resource. - * - * @return the etag value. + /* + * Pipeline Policy. */ - public String etag() { - return this.etag; - } + @JsonProperty(value = "properties.policy") + private PipelinePolicy policy; - /** - * Get the additionalProperties property: Pipeline resource type. - * - * @return the additionalProperties value. + /* + * The resource name. */ - @JsonAnyGetter - public Map additionalProperties() { - return this.additionalProperties; - } + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; - /** - * Set the additionalProperties property: Pipeline resource type. - * - * @param additionalProperties the additionalProperties value to set. - * @return the PipelineResourceInner object itself. + /* + * The resource type. */ - public PipelineResourceInner withAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - return this; - } + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; - @JsonAnySetter - void withAdditionalProperties(String key, Object value) { - if (additionalProperties == null) { - additionalProperties = new HashMap<>(); - } - additionalProperties.put(key, value); - } + /* + * Etag identifies change in the resource. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; - /** {@inheritDoc} */ - @Override - public PipelineResourceInner withId(String id) { - super.withId(id); - return this; - } + /* + * Pipeline resource type. + */ + @JsonIgnore private Map additionalProperties; /** * Get the description property: The description of the pipeline. @@ -132,7 +115,7 @@ public PipelineResourceInner withId(String id) { * @return the description value. */ public String description() { - return this.innerProperties() == null ? null : this.innerProperties().description(); + return this.description; } /** @@ -142,10 +125,7 @@ public String description() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withDescription(description); + this.description = description; return this; } @@ -155,7 +135,7 @@ public PipelineResourceInner withDescription(String description) { * @return the activities value. */ public List activities() { - return this.innerProperties() == null ? null : this.innerProperties().activities(); + return this.activities; } /** @@ -165,10 +145,7 @@ public List activities() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withActivities(List activities) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withActivities(activities); + this.activities = activities; return this; } @@ -178,7 +155,7 @@ public PipelineResourceInner withActivities(List activities) { * @return the parameters value. */ public Map parameters() { - return this.innerProperties() == null ? null : this.innerProperties().parameters(); + return this.parameters; } /** @@ -188,10 +165,7 @@ public Map parameters() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withParameters(Map parameters) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withParameters(parameters); + this.parameters = parameters; return this; } @@ -201,7 +175,7 @@ public PipelineResourceInner withParameters(Map * @return the variables value. */ public Map variables() { - return this.innerProperties() == null ? null : this.innerProperties().variables(); + return this.variables; } /** @@ -211,10 +185,7 @@ public Map variables() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withVariables(Map variables) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withVariables(variables); + this.variables = variables; return this; } @@ -224,7 +195,7 @@ public PipelineResourceInner withVariables(Map va * @return the concurrency value. */ public Integer concurrency() { - return this.innerProperties() == null ? null : this.innerProperties().concurrency(); + return this.concurrency; } /** @@ -234,10 +205,7 @@ public Integer concurrency() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withConcurrency(Integer concurrency) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withConcurrency(concurrency); + this.concurrency = concurrency; return this; } @@ -247,7 +215,7 @@ public PipelineResourceInner withConcurrency(Integer concurrency) { * @return the annotations value. */ public List annotations() { - return this.innerProperties() == null ? null : this.innerProperties().annotations(); + return this.annotations; } /** @@ -257,10 +225,7 @@ public List annotations() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withAnnotations(List annotations) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withAnnotations(annotations); + this.annotations = annotations; return this; } @@ -270,7 +235,7 @@ public PipelineResourceInner withAnnotations(List annotations) { * @return the runDimensions value. */ public Map runDimensions() { - return this.innerProperties() == null ? null : this.innerProperties().runDimensions(); + return this.runDimensions; } /** @@ -280,10 +245,7 @@ public Map runDimensions() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withRunDimensions(Map runDimensions) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withRunDimensions(runDimensions); + this.runDimensions = runDimensions; return this; } @@ -294,7 +256,7 @@ public PipelineResourceInner withRunDimensions(Map runDimensions * @return the folder value. */ public PipelineFolder folder() { - return this.innerProperties() == null ? null : this.innerProperties().folder(); + return this.folder; } /** @@ -305,10 +267,7 @@ public PipelineFolder folder() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withFolder(PipelineFolder folder) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); - } - this.innerProperties().withFolder(folder); + this.folder = folder; return this; } @@ -318,7 +277,7 @@ public PipelineResourceInner withFolder(PipelineFolder folder) { * @return the policy value. */ public PipelinePolicy policy() { - return this.innerProperties() == null ? null : this.innerProperties().policy(); + return this.policy; } /** @@ -328,10 +287,70 @@ public PipelinePolicy policy() { * @return the PipelineResourceInner object itself. */ public PipelineResourceInner withPolicy(PipelinePolicy policy) { - if (this.innerProperties() == null) { - this.innerProperties = new Pipeline(); + this.policy = policy; + return this; + } + + /** + * Get the name property: The resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the type property: The resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Get the etag property: Etag identifies change in the resource. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the additionalProperties property: Pipeline resource type. + * + * @return the additionalProperties value. + */ + @JsonAnyGetter + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Pipeline resource type. + * + * @param additionalProperties the additionalProperties value to set. + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); } - this.innerProperties().withPolicy(policy); + additionalProperties.put(key.replace("\\.", "."), value); + } + + /** {@inheritDoc} */ + @Override + public PipelineResourceInner withId(String id) { + super.withId(id); return this; } @@ -341,13 +360,34 @@ public PipelineResourceInner withPolicy(PipelinePolicy policy) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model PipelineResourceInner")); - } else { - innerProperties().validate(); + if (activities() != null) { + activities().forEach(e -> e.validate()); + } + if (parameters() != null) { + parameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (variables() != null) { + variables() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (folder() != null) { + folder().validate(); + } + if (policy() != null) { + policy().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlLinkedServiceTypeProperties.java deleted file mode 100644 index 4908fbbba5b58..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlLinkedServiceTypeProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** PostgreSQL linked service properties. */ -@Fluent -public final class PostgreSqlLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PostgreSqlLinkedServiceTypeProperties.class); - - /* - * The connection string. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. - * - * @param connectionString the connectionString value to set. - * @return the PostgreSqlLinkedServiceTypeProperties object itself. - */ - public PostgreSqlLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the PostgreSqlLinkedServiceTypeProperties object itself. - */ - public PostgreSqlLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PostgreSqlLinkedServiceTypeProperties object itself. - */ - public PostgreSqlLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model PostgreSqlLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java deleted file mode 100644 index a778b40eabbdd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PostgreSqlTableDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** PostgreSQL table dataset properties. */ -@Fluent -public final class PostgreSqlTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PostgreSqlTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The PostgreSQL table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The PostgreSQL schema name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PostgreSqlTableDatasetTypeProperties object itself. - */ - public PostgreSqlTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The PostgreSQL table name. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The PostgreSQL table name. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PostgreSqlTableDatasetTypeProperties object itself. - */ - public PostgreSqlTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PostgreSqlTableDatasetTypeProperties object itself. - */ - public PostgreSqlTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PowerQueryTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PowerQueryTypeProperties.java deleted file mode 100644 index 4e6395a81700d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PowerQueryTypeProperties.java +++ /dev/null @@ -1,81 +0,0 @@ -// 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.resourcemanager.datafactory.models.PowerQuerySource; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Power Query data flow type properties. */ -@Fluent -public final class PowerQueryTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PowerQueryTypeProperties.class); - - /* - * List of sources in Power Query. - */ - @JsonProperty(value = "sources") - private List sources; - - /* - * Power query mashup script. - */ - @JsonProperty(value = "script") - private String script; - - /** - * Get the sources property: List of sources in Power Query. - * - * @return the sources value. - */ - public List sources() { - return this.sources; - } - - /** - * Set the sources property: List of sources in Power Query. - * - * @param sources the sources value to set. - * @return the PowerQueryTypeProperties object itself. - */ - public PowerQueryTypeProperties withSources(List sources) { - this.sources = sources; - return this; - } - - /** - * Get the script property: Power query mashup script. - * - * @return the script value. - */ - public String script() { - return this.script; - } - - /** - * Set the script property: Power query mashup script. - * - * @param script the script value to set. - * @return the PowerQueryTypeProperties object itself. - */ - public PowerQueryTypeProperties withScript(String script) { - this.script = script; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sources() != null) { - sources().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java deleted file mode 100644 index 64a6b876e2987..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Presto Dataset Properties. */ -@Fluent -public final class PrestoDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrestoDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Presto. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Presto. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the PrestoDatasetTypeProperties object itself. - */ - public PrestoDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Presto. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Presto. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the PrestoDatasetTypeProperties object itself. - */ - public PrestoDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the PrestoDatasetTypeProperties object itself. - */ - public PrestoDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java deleted file mode 100644 index bc238d81645e5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/PrestoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,448 +0,0 @@ -// 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.resourcemanager.datafactory.models.PrestoAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Presto server linked service properties. */ -@Fluent -public final class PrestoLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrestoLinkedServiceTypeProperties.class); - - /* - * The IP address or host name of the Presto server. (i.e. 192.168.222.160) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The version of the Presto server. (i.e. 0.148-t) - */ - @JsonProperty(value = "serverVersion", required = true) - private Object serverVersion; - - /* - * The catalog context for all request against the server. - */ - @JsonProperty(value = "catalog", required = true) - private Object catalog; - - /* - * The TCP port that the Presto server uses to listen for client - * connections. The default value is 8080. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication mechanism used to connect to the Presto server. - */ - @JsonProperty(value = "authenticationType", required = true) - private PrestoAuthenticationType authenticationType; - - /* - * The user name used to connect to the Presto server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The local time zone used by the connection. Valid values for this option - * are specified in the IANA Time Zone Database. The default value is the - * system time zone. - */ - @JsonProperty(value = "timeZoneID") - private Object timeZoneId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). - * - * @param host the host value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the serverVersion property: The version of the Presto server. (i.e. 0.148-t). - * - * @return the serverVersion value. - */ - public Object serverVersion() { - return this.serverVersion; - } - - /** - * Set the serverVersion property: The version of the Presto server. (i.e. 0.148-t). - * - * @param serverVersion the serverVersion value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withServerVersion(Object serverVersion) { - this.serverVersion = serverVersion; - return this; - } - - /** - * Get the catalog property: The catalog context for all request against the server. - * - * @return the catalog value. - */ - public Object catalog() { - return this.catalog; - } - - /** - * Set the catalog property: The catalog context for all request against the server. - * - * @param catalog the catalog value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withCatalog(Object catalog) { - this.catalog = catalog; - return this; - } - - /** - * Get the port property: The TCP port that the Presto server uses to listen for client connections. The default - * value is 8080. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Presto server uses to listen for client connections. The default - * value is 8080. - * - * @param port the port value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication mechanism used to connect to the Presto server. - * - * @return the authenticationType value. - */ - public PrestoAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication mechanism used to connect to the Presto server. - * - * @param authenticationType the authenticationType value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withAuthenticationType(PrestoAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the Presto server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the Presto server. - * - * @param username the username value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name. - * - * @param password the password value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the timeZoneId property: The local time zone used by the connection. Valid values for this option are - * specified in the IANA Time Zone Database. The default value is the system time zone. - * - * @return the timeZoneId value. - */ - public Object timeZoneId() { - return this.timeZoneId; - } - - /** - * Set the timeZoneId property: The local time zone used by the connection. Valid values for this option are - * specified in the IANA Time Zone Database. The default value is the system time zone. - * - * @param timeZoneId the timeZoneId value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withTimeZoneId(Object timeZoneId) { - this.timeZoneId = timeZoneId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the PrestoLinkedServiceTypeProperties object itself. - */ - public PrestoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model PrestoLinkedServiceTypeProperties")); - } - if (serverVersion() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property serverVersion in model PrestoLinkedServiceTypeProperties")); - } - if (catalog() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property catalog in model PrestoLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model PrestoLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java deleted file mode 100644 index c9b32130d6f17..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/QuickBooksLinkedServiceTypeProperties.java +++ /dev/null @@ -1,278 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** QuickBooks server linked service properties. */ -@Fluent -public final class QuickBooksLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(QuickBooksLinkedServiceTypeProperties.class); - - /* - * Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) - */ - @JsonProperty(value = "endpoint") - private Object endpoint; - - /* - * The company ID of the QuickBooks company to authorize. - */ - @JsonProperty(value = "companyId") - private Object companyId; - - /* - * The consumer key for OAuth 1.0 authentication. - */ - @JsonProperty(value = "consumerKey") - private Object consumerKey; - - /* - * The consumer secret for OAuth 1.0 authentication. - */ - @JsonProperty(value = "consumerSecret") - private SecretBase consumerSecret; - - /* - * The access token for OAuth 1.0 authentication. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * The access token secret for OAuth 1.0 authentication. - */ - @JsonProperty(value = "accessTokenSecret") - private SecretBase accessTokenSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with - * any other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). - * - * @param endpoint the endpoint value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the companyId property: The company ID of the QuickBooks company to authorize. - * - * @return the companyId value. - */ - public Object companyId() { - return this.companyId; - } - - /** - * Set the companyId property: The company ID of the QuickBooks company to authorize. - * - * @param companyId the companyId value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withCompanyId(Object companyId) { - this.companyId = companyId; - return this; - } - - /** - * Get the consumerKey property: The consumer key for OAuth 1.0 authentication. - * - * @return the consumerKey value. - */ - public Object consumerKey() { - return this.consumerKey; - } - - /** - * Set the consumerKey property: The consumer key for OAuth 1.0 authentication. - * - * @param consumerKey the consumerKey value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withConsumerKey(Object consumerKey) { - this.consumerKey = consumerKey; - return this; - } - - /** - * Get the consumerSecret property: The consumer secret for OAuth 1.0 authentication. - * - * @return the consumerSecret value. - */ - public SecretBase consumerSecret() { - return this.consumerSecret; - } - - /** - * Set the consumerSecret property: The consumer secret for OAuth 1.0 authentication. - * - * @param consumerSecret the consumerSecret value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withConsumerSecret(SecretBase consumerSecret) { - this.consumerSecret = consumerSecret; - return this; - } - - /** - * Get the accessToken property: The access token for OAuth 1.0 authentication. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token for OAuth 1.0 authentication. - * - * @param accessToken the accessToken value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the accessTokenSecret property: The access token secret for OAuth 1.0 authentication. - * - * @return the accessTokenSecret value. - */ - public SecretBase accessTokenSecret() { - return this.accessTokenSecret; - } - - /** - * Set the accessTokenSecret property: The access token secret for OAuth 1.0 authentication. - * - * @param accessTokenSecret the accessTokenSecret value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withAccessTokenSecret(SecretBase accessTokenSecret) { - this.accessTokenSecret = accessTokenSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the QuickBooksLinkedServiceTypeProperties object itself. - */ - public QuickBooksLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (consumerSecret() != null) { - consumerSecret().validate(); - } - if (accessToken() != null) { - accessToken().validate(); - } - if (accessTokenSecret() != null) { - accessTokenSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java deleted file mode 100644 index dd7238c364a5e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RelationalTableDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Relational table dataset properties. */ -@Fluent -public final class RelationalTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RelationalTableDatasetTypeProperties.class); - - /* - * The relational table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the RelationalTableDatasetTypeProperties object itself. - */ - public RelationalTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RerunTumblingWindowTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RerunTumblingWindowTriggerTypeProperties.java deleted file mode 100644 index c3268d638ec56..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RerunTumblingWindowTriggerTypeProperties.java +++ /dev/null @@ -1,158 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** Rerun Trigger properties. */ -@Fluent -public final class RerunTumblingWindowTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RerunTumblingWindowTriggerTypeProperties.class); - - /* - * The parent trigger reference. - */ - @JsonProperty(value = "parentTrigger", required = true) - private Object parentTrigger; - - /* - * The start time for the time period for which restatement is initiated. - * Only UTC time is currently supported. - */ - @JsonProperty(value = "requestedStartTime", required = true) - private OffsetDateTime requestedStartTime; - - /* - * The end time for the time period for which restatement is initiated. - * Only UTC time is currently supported. - */ - @JsonProperty(value = "requestedEndTime", required = true) - private OffsetDateTime requestedEndTime; - - /* - * The max number of parallel time windows (ready for execution) for which - * a rerun is triggered. - */ - @JsonProperty(value = "rerunConcurrency", required = true) - private int rerunConcurrency; - - /** - * Get the parentTrigger property: The parent trigger reference. - * - * @return the parentTrigger value. - */ - public Object parentTrigger() { - return this.parentTrigger; - } - - /** - * Set the parentTrigger property: The parent trigger reference. - * - * @param parentTrigger the parentTrigger value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withParentTrigger(Object parentTrigger) { - this.parentTrigger = parentTrigger; - return this; - } - - /** - * Get the requestedStartTime property: The start time for the time period for which restatement is initiated. Only - * UTC time is currently supported. - * - * @return the requestedStartTime value. - */ - public OffsetDateTime requestedStartTime() { - return this.requestedStartTime; - } - - /** - * Set the requestedStartTime property: The start time for the time period for which restatement is initiated. Only - * UTC time is currently supported. - * - * @param requestedStartTime the requestedStartTime value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withRequestedStartTime(OffsetDateTime requestedStartTime) { - this.requestedStartTime = requestedStartTime; - return this; - } - - /** - * Get the requestedEndTime property: The end time for the time period for which restatement is initiated. Only UTC - * time is currently supported. - * - * @return the requestedEndTime value. - */ - public OffsetDateTime requestedEndTime() { - return this.requestedEndTime; - } - - /** - * Set the requestedEndTime property: The end time for the time period for which restatement is initiated. Only UTC - * time is currently supported. - * - * @param requestedEndTime the requestedEndTime value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withRequestedEndTime(OffsetDateTime requestedEndTime) { - this.requestedEndTime = requestedEndTime; - return this; - } - - /** - * Get the rerunConcurrency property: The max number of parallel time windows (ready for execution) for which a - * rerun is triggered. - * - * @return the rerunConcurrency value. - */ - public int rerunConcurrency() { - return this.rerunConcurrency; - } - - /** - * Set the rerunConcurrency property: The max number of parallel time windows (ready for execution) for which a - * rerun is triggered. - * - * @param rerunConcurrency the rerunConcurrency value to set. - * @return the RerunTumblingWindowTriggerTypeProperties object itself. - */ - public RerunTumblingWindowTriggerTypeProperties withRerunConcurrency(int rerunConcurrency) { - this.rerunConcurrency = rerunConcurrency; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (parentTrigger() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property parentTrigger in model RerunTumblingWindowTriggerTypeProperties")); - } - if (requestedStartTime() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property requestedStartTime in model" - + " RerunTumblingWindowTriggerTypeProperties")); - } - if (requestedEndTime() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property requestedEndTime in model" - + " RerunTumblingWindowTriggerTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java deleted file mode 100644 index fcbbde01429fa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ResponsysLinkedServiceTypeProperties.java +++ /dev/null @@ -1,247 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Responsys linked service properties. */ -@Fluent -public final class ResponsysLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ResponsysLinkedServiceTypeProperties.class); - - /* - * The endpoint of the Responsys server. - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The client ID associated with the Responsys application. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * The client secret associated with the Responsys application. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the Responsys server. - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Responsys server. - * - * @param endpoint the endpoint value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the clientId property: The client ID associated with the Responsys application. Type: string (or Expression - * with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with the Responsys application. Type: string (or Expression - * with resultType string). - * - * @param clientId the clientId value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with the Responsys application. Type: string (or - * Expression with resultType string). - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with the Responsys application. Type: string (or - * Expression with resultType string). - * - * @param clientSecret the clientSecret value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ResponsysLinkedServiceTypeProperties object itself. - */ - public ResponsysLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model ResponsysLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model ResponsysLinkedServiceTypeProperties")); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java deleted file mode 100644 index da9034683fbd5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestResourceDatasetTypeProperties.java +++ /dev/null @@ -1,169 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this dataset type. */ -@Fluent -public final class RestResourceDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestResourceDatasetTypeProperties.class); - - /* - * The relative URL to the resource that the RESTful API provides. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "relativeUrl") - private Object relativeUrl; - - /* - * The HTTP method used to call the RESTful API. The default is GET. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestMethod") - private Object requestMethod; - - /* - * The HTTP request body to the RESTful API if requestMethod is POST. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "requestBody") - private Object requestBody; - - /* - * The additional HTTP headers in the request to the RESTful API. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "additionalHeaders") - private Object additionalHeaders; - - /* - * The pagination rules to compose next page requests. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "paginationRules") - private Object paginationRules; - - /** - * Get the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or - * Expression with resultType string). - * - * @return the relativeUrl value. - */ - public Object relativeUrl() { - return this.relativeUrl; - } - - /** - * Set the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or - * Expression with resultType string). - * - * @param relativeUrl the relativeUrl value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withRelativeUrl(Object relativeUrl) { - this.relativeUrl = relativeUrl; - return this; - } - - /** - * Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @return the requestMethod value. - */ - public Object requestMethod() { - return this.requestMethod; - } - - /** - * Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string - * (or Expression with resultType string). - * - * @param requestMethod the requestMethod value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withRequestMethod(Object requestMethod) { - this.requestMethod = requestMethod; - return this; - } - - /** - * Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @return the requestBody value. - */ - public Object requestBody() { - return this.requestBody; - } - - /** - * Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or - * Expression with resultType string). - * - * @param requestBody the requestBody value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withRequestBody(Object requestBody) { - this.requestBody = requestBody; - return this; - } - - /** - * Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @return the additionalHeaders value. - */ - public Object additionalHeaders() { - return this.additionalHeaders; - } - - /** - * Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string - * (or Expression with resultType string). - * - * @param additionalHeaders the additionalHeaders value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withAdditionalHeaders(Object additionalHeaders) { - this.additionalHeaders = additionalHeaders; - return this; - } - - /** - * Get the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @return the paginationRules value. - */ - public Object paginationRules() { - return this.paginationRules; - } - - /** - * Set the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression - * with resultType string). - * - * @param paginationRules the paginationRules value to set. - * @return the RestResourceDatasetTypeProperties object itself. - */ - public RestResourceDatasetTypeProperties withPaginationRules(Object paginationRules) { - this.paginationRules = paginationRules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java deleted file mode 100644 index db0146d7aa2d6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/RestServiceLinkedServiceTypeProperties.java +++ /dev/null @@ -1,412 +0,0 @@ -// 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.resourcemanager.datafactory.models.CredentialReference; -import com.azure.resourcemanager.datafactory.models.RestServiceAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Rest Service linked service properties. */ -@Fluent -public final class RestServiceLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestServiceLinkedServiceTypeProperties.class); - - /* - * The base URL of the REST service. - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Whether to validate server side SSL certificate when connecting to the - * endpoint.The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "enableServerCertificateValidation") - private Object enableServerCertificateValidation; - - /* - * Type of authentication used to connect to the REST service. - */ - @JsonProperty(value = "authenticationType", required = true) - private RestServiceAuthenticationType authenticationType; - - /* - * The user name used in Basic authentication type. - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The password used in Basic authentication type. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The additional HTTP headers in the request to RESTful API used for - * authorization. Type: object (or Expression with resultType object). - */ - @JsonProperty(value = "authHeaders") - private Object authHeaders; - - /* - * The application's client ID used in AadServicePrincipal authentication - * type. - */ - @JsonProperty(value = "servicePrincipalId") - private Object servicePrincipalId; - - /* - * The application's key used in AadServicePrincipal authentication type. - */ - @JsonProperty(value = "servicePrincipalKey") - private SecretBase servicePrincipalKey; - - /* - * The tenant information (domain name or tenant ID) used in - * AadServicePrincipal authentication type under which your application - * resides. - */ - @JsonProperty(value = "tenant") - private Object tenant; - - /* - * Indicates the azure cloud type of the service principle auth. Allowed - * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. - * Default value is the data factory regions’ cloud type. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "azureCloudType") - private Object azureCloudType; - - /* - * The resource you are requesting authorization to use. - */ - @JsonProperty(value = "aadResourceId") - private Object aadResourceId; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The credential reference containing authentication information. - */ - @JsonProperty(value = "credential") - private CredentialReference credential; - - /** - * Get the url property: The base URL of the REST service. - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The base URL of the REST service. - * - * @param url the url value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the enableServerCertificateValidation property: Whether to validate server side SSL certificate when - * connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the enableServerCertificateValidation value. - */ - public Object enableServerCertificateValidation() { - return this.enableServerCertificateValidation; - } - - /** - * Set the enableServerCertificateValidation property: Whether to validate server side SSL certificate when - * connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param enableServerCertificateValidation the enableServerCertificateValidation value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withEnableServerCertificateValidation( - Object enableServerCertificateValidation) { - this.enableServerCertificateValidation = enableServerCertificateValidation; - return this; - } - - /** - * Get the authenticationType property: Type of authentication used to connect to the REST service. - * - * @return the authenticationType value. - */ - public RestServiceAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: Type of authentication used to connect to the REST service. - * - * @param authenticationType the authenticationType value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAuthenticationType( - RestServiceAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used in Basic authentication type. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used in Basic authentication type. - * - * @param username the username value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password used in Basic authentication type. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password used in Basic authentication type. - * - * @param password the password value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @return the authHeaders value. - */ - public Object authHeaders() { - return this.authHeaders; - } - - /** - * Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. - * Type: object (or Expression with resultType object). - * - * @param authHeaders the authHeaders value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAuthHeaders(Object authHeaders) { - this.authHeaders = authHeaders; - return this; - } - - /** - * Get the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type. - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type. - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type. - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type. - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal - * authentication type under which your application resides. - * - * @return the tenant value. - */ - public Object tenant() { - return this.tenant; - } - - /** - * Set the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal - * authentication type under which your application resides. - * - * @param tenant the tenant value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withTenant(Object tenant) { - this.tenant = tenant; - return this; - } - - /** - * Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @return the azureCloudType value. - */ - public Object azureCloudType() { - return this.azureCloudType; - } - - /** - * Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are - * AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. - * Type: string (or Expression with resultType string). - * - * @param azureCloudType the azureCloudType value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAzureCloudType(Object azureCloudType) { - this.azureCloudType = azureCloudType; - return this; - } - - /** - * Get the aadResourceId property: The resource you are requesting authorization to use. - * - * @return the aadResourceId value. - */ - public Object aadResourceId() { - return this.aadResourceId; - } - - /** - * Set the aadResourceId property: The resource you are requesting authorization to use. - * - * @param aadResourceId the aadResourceId value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withAadResourceId(Object aadResourceId) { - this.aadResourceId = aadResourceId; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the credential property: The credential reference containing authentication information. - * - * @return the credential value. - */ - public CredentialReference credential() { - return this.credential; - } - - /** - * Set the credential property: The credential reference containing authentication information. - * - * @param credential the credential value to set. - * @return the RestServiceLinkedServiceTypeProperties object itself. - */ - public RestServiceLinkedServiceTypeProperties withCredential(CredentialReference credential) { - this.credential = credential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model RestServiceLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model" - + " RestServiceLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (servicePrincipalKey() != null) { - servicePrincipalKey().validate(); - } - if (credential() != null) { - credential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java deleted file mode 100644 index b71dd2d15ad28..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceLinkedServiceTypeProperties.java +++ /dev/null @@ -1,205 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce linked service properties. */ -@Fluent -public final class SalesforceLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceLinkedServiceTypeProperties.class); - - /* - * The URL of Salesforce instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify - * 'https://test.salesforce.com'. To copy data from custom domain, specify, - * for example, 'https://[domain].my.salesforce.com'. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "environmentUrl") - private Object environmentUrl; - - /* - * The username for Basic authentication of the Salesforce instance. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password for Basic authentication of the Salesforce instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The security token is optional to remotely access Salesforce instance. - */ - @JsonProperty(value = "securityToken") - private SecretBase securityToken; - - /* - * The Salesforce API version used in ADF. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "apiVersion") - private Object apiVersion; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To - * copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for - * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - * - * @return the environmentUrl value. - */ - public Object environmentUrl() { - return this.environmentUrl; - } - - /** - * Set the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To - * copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for - * example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - * - * @param environmentUrl the environmentUrl value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withEnvironmentUrl(Object environmentUrl) { - this.environmentUrl = environmentUrl; - return this; - } - - /** - * Get the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication of the Salesforce instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication of the Salesforce instance. - * - * @param password the password value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @return the securityToken value. - */ - public SecretBase securityToken() { - return this.securityToken; - } - - /** - * Set the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @param securityToken the securityToken value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withSecurityToken(SecretBase securityToken) { - this.securityToken = securityToken; - return this; - } - - /** - * Get the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @return the apiVersion value. - */ - public Object apiVersion() { - return this.apiVersion; - } - - /** - * Set the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @param apiVersion the apiVersion value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withApiVersion(Object apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceLinkedServiceTypeProperties object itself. - */ - public SalesforceLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - if (securityToken() != null) { - securityToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java deleted file mode 100644 index 9375dc230d4ae..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceMarketingCloudLinkedServiceTypeProperties.java +++ /dev/null @@ -1,239 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce Marketing Cloud linked service properties. */ -@Fluent -public final class SalesforceMarketingCloudLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SalesforceMarketingCloudLinkedServiceTypeProperties.class); - - /* - * Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The client ID associated with the Salesforce Marketing Cloud - * application. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret associated with the Salesforce Marketing Cloud - * application. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. Type: boolean (or Expression with resultType - * boolean). - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. Type: boolean (or Expression with - * resultType boolean). - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually - * exclusive with any other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the clientId property: The client ID associated with the Salesforce Marketing Cloud application. Type: string - * (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with the Salesforce Marketing Cloud application. Type: string - * (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with the Salesforce Marketing Cloud application. - * Type: string (or Expression with resultType string). - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with the Salesforce Marketing Cloud application. - * Type: string (or Expression with resultType string). - * - * @param clientSecret the clientSecret value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or - * Expression with resultType boolean). - * - * @param useHostVerification the useHostVerification value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceMarketingCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceMarketingCloudLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java deleted file mode 100644 index 553db291eaea1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceObjectDatasetTypeProperties.java +++ /dev/null @@ -1,53 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce object dataset properties. */ -@Fluent -public final class SalesforceObjectDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceObjectDatasetTypeProperties.class); - - /* - * The Salesforce object API name. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "objectApiName") - private Object objectApiName; - - /** - * Get the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.objectApiName; - } - - /** - * Set the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceObjectDatasetTypeProperties object itself. - */ - public SalesforceObjectDatasetTypeProperties withObjectApiName(Object objectApiName) { - this.objectApiName = objectApiName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java deleted file mode 100644 index 21dccdb38cf94..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudLinkedServiceTypeProperties.java +++ /dev/null @@ -1,237 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce Service Cloud linked service properties. */ -@Fluent -public final class SalesforceServiceCloudLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SalesforceServiceCloudLinkedServiceTypeProperties.class); - - /* - * The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify - * 'https://test.salesforce.com'. To copy data from custom domain, specify, - * for example, 'https://[domain].my.salesforce.com'. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "environmentUrl") - private Object environmentUrl; - - /* - * The username for Basic authentication of the Salesforce instance. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password for Basic authentication of the Salesforce instance. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The security token is optional to remotely access Salesforce instance. - */ - @JsonProperty(value = "securityToken") - private SecretBase securityToken; - - /* - * The Salesforce API version used in ADF. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "apiVersion") - private Object apiVersion; - - /* - * Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "extendedProperties") - private Object extendedProperties; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data - * from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with - * resultType string). - * - * @return the environmentUrl value. - */ - public Object environmentUrl() { - return this.environmentUrl; - } - - /** - * Set the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is - * 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data - * from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with - * resultType string). - * - * @param environmentUrl the environmentUrl value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withEnvironmentUrl(Object environmentUrl) { - this.environmentUrl = environmentUrl; - return this; - } - - /** - * Get the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication of the Salesforce instance. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication of the Salesforce instance. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication of the Salesforce instance. - * - * @param password the password value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @return the securityToken value. - */ - public SecretBase securityToken() { - return this.securityToken; - } - - /** - * Set the securityToken property: The security token is optional to remotely access Salesforce instance. - * - * @param securityToken the securityToken value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withSecurityToken(SecretBase securityToken) { - this.securityToken = securityToken; - return this; - } - - /** - * Get the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @return the apiVersion value. - */ - public Object apiVersion() { - return this.apiVersion; - } - - /** - * Set the apiVersion property: The Salesforce API version used in ADF. Type: string (or Expression with resultType - * string). - * - * @param apiVersion the apiVersion value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withApiVersion(Object apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * Get the extendedProperties property: Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - * - * @return the extendedProperties value. - */ - public Object extendedProperties() { - return this.extendedProperties; - } - - /** - * Set the extendedProperties property: Extended properties appended to the connection string. Type: string (or - * Expression with resultType string). - * - * @param extendedProperties the extendedProperties value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withExtendedProperties(Object extendedProperties) { - this.extendedProperties = extendedProperties; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SalesforceServiceCloudLinkedServiceTypeProperties object itself. - */ - public SalesforceServiceCloudLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - if (securityToken() != null) { - securityToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java deleted file mode 100644 index ccc81730ee969..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SalesforceServiceCloudObjectDatasetTypeProperties.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Salesforce Service Cloud object dataset properties. */ -@Fluent -public final class SalesforceServiceCloudObjectDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SalesforceServiceCloudObjectDatasetTypeProperties.class); - - /* - * The Salesforce Service Cloud object API name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "objectApiName") - private Object objectApiName; - - /** - * Get the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.objectApiName; - } - - /** - * Set the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceServiceCloudObjectDatasetTypeProperties object itself. - */ - public SalesforceServiceCloudObjectDatasetTypeProperties withObjectApiName(Object objectApiName) { - this.objectApiName = objectApiName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java deleted file mode 100644 index 3a26661e5ef49..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapBWLinkedServiceTypeProperties.java +++ /dev/null @@ -1,218 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SapBWLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapBWLinkedServiceTypeProperties.class); - - /* - * Host name of the SAP BW instance. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * System number of the BW system. (Usually a two-digit decimal number - * represented as a string.) Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "systemNumber", required = true) - private Object systemNumber; - - /* - * Client ID of the client on the BW system. (Usually a three-digit decimal - * number represented as a string) Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "clientId", required = true) - private Object clientId; - - /* - * Username to access the SAP BW server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP BW server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the systemNumber property: System number of the BW system. (Usually a two-digit decimal number represented as - * a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.systemNumber; - } - - /** - * Set the systemNumber property: System number of the BW system. (Usually a two-digit decimal number represented as - * a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withSystemNumber(Object systemNumber) { - this.systemNumber = systemNumber; - return this; - } - - /** - * Get the clientId property: Client ID of the client on the BW system. (Usually a three-digit decimal number - * represented as a string) Type: string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Client ID of the client on the BW system. (Usually a three-digit decimal number - * represented as a string) Type: string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the username property: Username to access the SAP BW server. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP BW server. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP BW server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP BW server. - * - * @param password the password value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapBWLinkedServiceTypeProperties object itself. - */ - public SapBWLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model SapBWLinkedServiceTypeProperties")); - } - if (systemNumber() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property systemNumber in model SapBWLinkedServiceTypeProperties")); - } - if (clientId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property clientId in model SapBWLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java deleted file mode 100644 index 05991ab59d84d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,153 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP Cloud for Customer linked service properties. */ -@Fluent -public final class SapCloudForCustomerLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SapCloudForCustomerLinkedServiceTypeProperties.class); - - /* - * The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The username for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Either - * encryptedCredential or username/password must be provided. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the url property: The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: The URL of SAP Cloud for Customer OData API. For example, - * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapCloudForCustomerLinkedServiceTypeProperties object itself. - */ - public SapCloudForCustomerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model SapCloudForCustomerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerResourceDatasetTypeProperties.java deleted file mode 100644 index 385a9dd6b7411..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapCloudForCustomerResourceDatasetTypeProperties.java +++ /dev/null @@ -1,60 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sap Cloud For Customer OData resource dataset properties. */ -@Fluent -public final class SapCloudForCustomerResourceDatasetTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SapCloudForCustomerResourceDatasetTypeProperties.class); - - /* - * The path of the SAP Cloud for Customer OData entity. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "path", required = true) - private Object path; - - /** - * Get the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @param path the path value to set. - * @return the SapCloudForCustomerResourceDatasetTypeProperties object itself. - */ - public SapCloudForCustomerResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (path() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property path in model SapCloudForCustomerResourceDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java deleted file mode 100644 index 38628a77e1c07..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccLinkedServiceTypeProperties.java +++ /dev/null @@ -1,152 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP ECC linked service properties. */ -@Fluent -public final class SapEccLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapEccLinkedServiceTypeProperties.class); - - /* - * The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "url", required = true) - private String url; - - /* - * The username for Basic authentication. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "username") - private String username; - - /* - * The password for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Either - * encryptedCredential or username/password must be provided. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private String encryptedCredential; - - /** - * Get the url property: The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public String url() { - return this.url; - } - - /** - * Set the url property: The URL of SAP ECC OData API. For example, - * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withUrl(String url) { - this.url = url; - return this; - } - - /** - * Get the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public String username() { - return this.username; - } - - /** - * Set the username property: The username for Basic authentication. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withUsername(String username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password for Basic authentication. - * - * @param password the password value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public String encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Either encryptedCredential or username/password must be - * provided. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapEccLinkedServiceTypeProperties object itself. - */ - public SapEccLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model SapEccLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccResourceDatasetTypeProperties.java deleted file mode 100644 index b2fbe478bfe0e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapEccResourceDatasetTypeProperties.java +++ /dev/null @@ -1,57 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sap ECC OData resource dataset properties. */ -@Fluent -public final class SapEccResourceDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapEccResourceDatasetTypeProperties.class); - - /* - * The path of the SAP ECC OData entity. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "path", required = true) - private Object path; - - /** - * Get the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the SapEccResourceDatasetTypeProperties object itself. - */ - public SapEccResourceDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (path() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property path in model SapEccResourceDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java deleted file mode 100644 index d367353cdd7db..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaLinkedServiceProperties.java +++ /dev/null @@ -1,196 +0,0 @@ -// 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.resourcemanager.datafactory.models.SapHanaAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SapHanaLinkedServiceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapHanaLinkedServiceProperties.class); - - /* - * SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * Host name of the SAP HANA server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * The authentication type to be used to connect to the SAP HANA server. - */ - @JsonProperty(value = "authenticationType") - private SapHanaAuthenticationType authenticationType; - - /* - * Username to access the SAP HANA server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP HANA server. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the SAP HANA server. - * - * @return the authenticationType value. - */ - public SapHanaAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the SAP HANA server. - * - * @param authenticationType the authenticationType value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withAuthenticationType(SapHanaAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username to access the SAP HANA server. Type: string (or Expression with resultType - * string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP HANA server. Type: string (or Expression with resultType - * string). - * - * @param username the username value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP HANA server. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP HANA server. - * - * @param password the password value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapHanaLinkedServiceProperties object itself. - */ - public SapHanaLinkedServiceProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java deleted file mode 100644 index 4588a57c40b30..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapHanaTableDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP HANA Table properties. */ -@Fluent -public final class SapHanaTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapHanaTableDatasetTypeProperties.class); - - /* - * The schema name of SAP HANA. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of SAP HANA. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SapHanaTableDatasetTypeProperties object itself. - */ - public SapHanaTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SapHanaTableDatasetTypeProperties object itself. - */ - public SapHanaTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java deleted file mode 100644 index 6851acf9dc350..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubLinkedServiceTypeProperties.java +++ /dev/null @@ -1,351 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to SAP Business Warehouse Open Hub Destination linked service type. */ -@Fluent -public final class SapOpenHubLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapOpenHubLinkedServiceTypeProperties.class); - - /* - * Host name of the SAP BW instance where the open hub destination is - * located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * System number of the BW system where the open hub destination is - * located. (Usually a two-digit decimal number represented as a string.) - * Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "systemNumber") - private Object systemNumber; - - /* - * Client ID of the client on the BW system where the open hub destination - * is located. (Usually a three-digit decimal number represented as a - * string) Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * Language of the BW system where the open hub destination is located. The - * default value is EN. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "language") - private Object language; - - /* - * SystemID of the SAP system where the table is located. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "systemId") - private Object systemId; - - /* - * Username to access the SAP BW server where the open hub destination is - * located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP BW server where the open hub destination is - * located. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "messageServer") - private Object messageServer; - - /* - * The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "messageServerService") - private Object messageServerService; - - /* - * The Logon Group for the SAP System. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "logonGroup") - private Object logonGroup; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string - * (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string - * (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the systemNumber property: System number of the BW system where the open hub destination is located. (Usually - * a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.systemNumber; - } - - /** - * Set the systemNumber property: System number of the BW system where the open hub destination is located. (Usually - * a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withSystemNumber(Object systemNumber) { - this.systemNumber = systemNumber; - return this; - } - - /** - * Get the clientId property: Client ID of the client on the BW system where the open hub destination is located. - * (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType - * string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Client ID of the client on the BW system where the open hub destination is located. - * (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType - * string). - * - * @param clientId the clientId value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the language property: Language of the BW system where the open hub destination is located. The default value - * is EN. Type: string (or Expression with resultType string). - * - * @return the language value. - */ - public Object language() { - return this.language; - } - - /** - * Set the language property: Language of the BW system where the open hub destination is located. The default value - * is EN. Type: string (or Expression with resultType string). - * - * @param language the language value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withLanguage(Object language) { - this.language = language; - return this; - } - - /** - * Get the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the systemId value. - */ - public Object systemId() { - return this.systemId; - } - - /** - * Set the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @param systemId the systemId value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withSystemId(Object systemId) { - this.systemId = systemId; - return this; - } - - /** - * Get the username property: Username to access the SAP BW server where the open hub destination is located. Type: - * string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP BW server where the open hub destination is located. Type: - * string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP BW server where the open hub destination is located. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP BW server where the open hub destination is located. - * - * @param password the password value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @return the messageServer value. - */ - public Object messageServer() { - return this.messageServer; - } - - /** - * Set the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @param messageServer the messageServer value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withMessageServer(Object messageServer) { - this.messageServer = messageServer; - return this; - } - - /** - * Get the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @return the messageServerService value. - */ - public Object messageServerService() { - return this.messageServerService; - } - - /** - * Set the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @param messageServerService the messageServerService value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withMessageServerService(Object messageServerService) { - this.messageServerService = messageServerService; - return this; - } - - /** - * Get the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @return the logonGroup value. - */ - public Object logonGroup() { - return this.logonGroup; - } - - /** - * Set the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @param logonGroup the logonGroup value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withLogonGroup(Object logonGroup) { - this.logonGroup = logonGroup; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapOpenHubLinkedServiceTypeProperties object itself. - */ - public SapOpenHubLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java deleted file mode 100644 index 0ec8f9da41dcc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapOpenHubTableDatasetTypeProperties.java +++ /dev/null @@ -1,122 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sap Business Warehouse Open Hub Destination Table properties. */ -@Fluent -public final class SapOpenHubTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapOpenHubTableDatasetTypeProperties.class); - - /* - * The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "openHubDestinationName", required = true) - private Object openHubDestinationName; - - /* - * Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "excludeLastRequest") - private Object excludeLastRequest; - - /* - * The ID of request for delta loading. Once it is set, only data with - * requestId larger than the value of this property will be retrieved. The - * default value is 0. Type: integer (or Expression with resultType integer - * ). - */ - @JsonProperty(value = "baseRequestId") - private Object baseRequestId; - - /** - * Get the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - * - * @return the openHubDestinationName value. - */ - public Object openHubDestinationName() { - return this.openHubDestinationName; - } - - /** - * Set the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database - * Table. Type: string (or Expression with resultType string). - * - * @param openHubDestinationName the openHubDestinationName value to set. - * @return the SapOpenHubTableDatasetTypeProperties object itself. - */ - public SapOpenHubTableDatasetTypeProperties withOpenHubDestinationName(Object openHubDestinationName) { - this.openHubDestinationName = openHubDestinationName; - return this; - } - - /** - * Get the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @return the excludeLastRequest value. - */ - public Object excludeLastRequest() { - return this.excludeLastRequest; - } - - /** - * Set the excludeLastRequest property: Whether to exclude the records of the last request. The default value is - * true. Type: boolean (or Expression with resultType boolean). - * - * @param excludeLastRequest the excludeLastRequest value to set. - * @return the SapOpenHubTableDatasetTypeProperties object itself. - */ - public SapOpenHubTableDatasetTypeProperties withExcludeLastRequest(Object excludeLastRequest) { - this.excludeLastRequest = excludeLastRequest; - return this; - } - - /** - * Get the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @return the baseRequestId value. - */ - public Object baseRequestId() { - return this.baseRequestId; - } - - /** - * Set the baseRequestId property: The ID of request for delta loading. Once it is set, only data with requestId - * larger than the value of this property will be retrieved. The default value is 0. Type: integer (or Expression - * with resultType integer ). - * - * @param baseRequestId the baseRequestId value to set. - * @return the SapOpenHubTableDatasetTypeProperties object itself. - */ - public SapOpenHubTableDatasetTypeProperties withBaseRequestId(Object baseRequestId) { - this.baseRequestId = baseRequestId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (openHubDestinationName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property openHubDestinationName in model" - + " SapOpenHubTableDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java deleted file mode 100644 index 7bea0a4ecaf21..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableLinkedServiceTypeProperties.java +++ /dev/null @@ -1,493 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SapTableLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapTableLinkedServiceTypeProperties.class); - - /* - * Host name of the SAP instance where the table is located. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * System number of the SAP system where the table is located. (Usually a - * two-digit decimal number represented as a string.) Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "systemNumber") - private Object systemNumber; - - /* - * Client ID of the client on the SAP system where the table is located. - * (Usually a three-digit decimal number represented as a string) Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * Language of the SAP system where the table is located. The default value - * is EN. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "language") - private Object language; - - /* - * SystemID of the SAP system where the table is located. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "systemId") - private Object systemId; - - /* - * Username to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to access the SAP server where the table is located. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "messageServer") - private Object messageServer; - - /* - * The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "messageServerService") - private Object messageServerService; - - /* - * SNC activation indicator to access the SAP server where the table is - * located. Must be either 0 (off) or 1 (on). Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "sncMode") - private Object sncMode; - - /* - * Initiator's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sncMyName") - private Object sncMyName; - - /* - * Communication partner's SNC name to access the SAP server where the - * table is located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sncPartnerName") - private Object sncPartnerName; - - /* - * External security product's library to access the SAP server where the - * table is located. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "sncLibraryPath") - private Object sncLibraryPath; - - /* - * SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "sncQop") - private Object sncQop; - - /* - * The Logon Group for the SAP System. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "logonGroup") - private Object logonGroup; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Host name of the SAP instance where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Host name of the SAP instance where the table is located. Type: string (or Expression - * with resultType string). - * - * @param server the server value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the systemNumber property: System number of the SAP system where the table is located. (Usually a two-digit - * decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @return the systemNumber value. - */ - public Object systemNumber() { - return this.systemNumber; - } - - /** - * Set the systemNumber property: System number of the SAP system where the table is located. (Usually a two-digit - * decimal number represented as a string.) Type: string (or Expression with resultType string). - * - * @param systemNumber the systemNumber value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSystemNumber(Object systemNumber) { - this.systemNumber = systemNumber; - return this; - } - - /** - * Get the clientId property: Client ID of the client on the SAP system where the table is located. (Usually a - * three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: Client ID of the client on the SAP system where the table is located. (Usually a - * three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - * - * @param clientId the clientId value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the language property: Language of the SAP system where the table is located. The default value is EN. Type: - * string (or Expression with resultType string). - * - * @return the language value. - */ - public Object language() { - return this.language; - } - - /** - * Set the language property: Language of the SAP system where the table is located. The default value is EN. Type: - * string (or Expression with resultType string). - * - * @param language the language value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withLanguage(Object language) { - this.language = language; - return this; - } - - /** - * Get the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @return the systemId value. - */ - public Object systemId() { - return this.systemId; - } - - /** - * Set the systemId property: SystemID of the SAP system where the table is located. Type: string (or Expression - * with resultType string). - * - * @param systemId the systemId value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSystemId(Object systemId) { - this.systemId = systemId; - return this; - } - - /** - * Get the username property: Username to access the SAP server where the table is located. Type: string (or - * Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username to access the SAP server where the table is located. Type: string (or - * Expression with resultType string). - * - * @param username the username value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to access the SAP server where the table is located. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to access the SAP server where the table is located. - * - * @param password the password value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @return the messageServer value. - */ - public Object messageServer() { - return this.messageServer; - } - - /** - * Set the messageServer property: The hostname of the SAP Message Server. Type: string (or Expression with - * resultType string). - * - * @param messageServer the messageServer value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withMessageServer(Object messageServer) { - this.messageServer = messageServer; - return this; - } - - /** - * Get the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @return the messageServerService value. - */ - public Object messageServerService() { - return this.messageServerService; - } - - /** - * Set the messageServerService property: The service name or port number of the Message Server. Type: string (or - * Expression with resultType string). - * - * @param messageServerService the messageServerService value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withMessageServerService(Object messageServerService) { - this.messageServerService = messageServerService; - return this; - } - - /** - * Get the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). - * - * @return the sncMode value. - */ - public Object sncMode() { - return this.sncMode; - } - - /** - * Set the sncMode property: SNC activation indicator to access the SAP server where the table is located. Must be - * either 0 (off) or 1 (on). Type: string (or Expression with resultType string). - * - * @param sncMode the sncMode value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncMode(Object sncMode) { - this.sncMode = sncMode; - return this; - } - - /** - * Get the sncMyName property: Initiator's SNC name to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - * - * @return the sncMyName value. - */ - public Object sncMyName() { - return this.sncMyName; - } - - /** - * Set the sncMyName property: Initiator's SNC name to access the SAP server where the table is located. Type: - * string (or Expression with resultType string). - * - * @param sncMyName the sncMyName value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncMyName(Object sncMyName) { - this.sncMyName = sncMyName; - return this; - } - - /** - * Get the sncPartnerName property: Communication partner's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @return the sncPartnerName value. - */ - public Object sncPartnerName() { - return this.sncPartnerName; - } - - /** - * Set the sncPartnerName property: Communication partner's SNC name to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @param sncPartnerName the sncPartnerName value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncPartnerName(Object sncPartnerName) { - this.sncPartnerName = sncPartnerName; - return this; - } - - /** - * Get the sncLibraryPath property: External security product's library to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @return the sncLibraryPath value. - */ - public Object sncLibraryPath() { - return this.sncLibraryPath; - } - - /** - * Set the sncLibraryPath property: External security product's library to access the SAP server where the table is - * located. Type: string (or Expression with resultType string). - * - * @param sncLibraryPath the sncLibraryPath value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncLibraryPath(Object sncLibraryPath) { - this.sncLibraryPath = sncLibraryPath; - return this; - } - - /** - * Get the sncQop property: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or - * Expression with resultType string). - * - * @return the sncQop value. - */ - public Object sncQop() { - return this.sncQop; - } - - /** - * Set the sncQop property: SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or - * Expression with resultType string). - * - * @param sncQop the sncQop value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withSncQop(Object sncQop) { - this.sncQop = sncQop; - return this; - } - - /** - * Get the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @return the logonGroup value. - */ - public Object logonGroup() { - return this.logonGroup; - } - - /** - * Set the logonGroup property: The Logon Group for the SAP System. Type: string (or Expression with resultType - * string). - * - * @param logonGroup the logonGroup value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withLogonGroup(Object logonGroup) { - this.logonGroup = logonGroup; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SapTableLinkedServiceTypeProperties object itself. - */ - public SapTableLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableResourceDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableResourceDatasetTypeProperties.java deleted file mode 100644 index f954eea5380f6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SapTableResourceDatasetTypeProperties.java +++ /dev/null @@ -1,57 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SAP Table Resource properties. */ -@Fluent -public final class SapTableResourceDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SapTableResourceDatasetTypeProperties.class); - - /* - * The name of the SAP Table. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName", required = true) - private Object tableName; - - /** - * Get the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SapTableResourceDatasetTypeProperties object itself. - */ - public SapTableResourceDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (tableName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tableName in model SapTableResourceDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScheduleTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScheduleTriggerTypeProperties.java deleted file mode 100644 index d54e5d6d85ae5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ScheduleTriggerTypeProperties.java +++ /dev/null @@ -1,59 +0,0 @@ -// 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.resourcemanager.datafactory.models.ScheduleTriggerRecurrence; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Schedule Trigger properties. */ -@Fluent -public final class ScheduleTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ScheduleTriggerTypeProperties.class); - - /* - * Recurrence schedule configuration. - */ - @JsonProperty(value = "recurrence", required = true) - private ScheduleTriggerRecurrence recurrence; - - /** - * Get the recurrence property: Recurrence schedule configuration. - * - * @return the recurrence value. - */ - public ScheduleTriggerRecurrence recurrence() { - return this.recurrence; - } - - /** - * Set the recurrence property: Recurrence schedule configuration. - * - * @param recurrence the recurrence value to set. - * @return the ScheduleTriggerTypeProperties object itself. - */ - public ScheduleTriggerTypeProperties withRecurrence(ScheduleTriggerRecurrence recurrence) { - this.recurrence = recurrence; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (recurrence() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property recurrence in model ScheduleTriggerTypeProperties")); - } else { - recurrence().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java deleted file mode 100644 index 4092305ee0346..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java +++ /dev/null @@ -1,314 +0,0 @@ -// 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.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeInternalChannelEncryptionMode; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntime; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -/** Self-hosted integration runtime status type properties. */ -@Fluent -public final class SelfHostedIntegrationRuntimeStatusTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - - /* - * The time at which the integration runtime was created, in ISO8601 - * format. - */ - @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createTime; - - /* - * The task queue id of the integration runtime. - */ - @JsonProperty(value = "taskQueueId", access = JsonProperty.Access.WRITE_ONLY) - private String taskQueueId; - - /* - * It is used to set the encryption mode for node-node communication - * channel (when more than 2 self-hosted integration runtime nodes exist). - */ - @JsonProperty(value = "internalChannelEncryption", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption; - - /* - * Version of the integration runtime. - */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * The list of nodes for this integration runtime. - */ - @JsonProperty(value = "nodes") - private List nodes; - - /* - * The date at which the integration runtime will be scheduled to update, - * in ISO8601 format. - */ - @JsonProperty(value = "scheduledUpdateDate", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime scheduledUpdateDate; - - /* - * The time in the date scheduled by service to update the integration - * runtime, e.g., PT03H is 3 hours - */ - @JsonProperty(value = "updateDelayOffset", access = JsonProperty.Access.WRITE_ONLY) - private String updateDelayOffset; - - /* - * The local time zone offset in hours. - */ - @JsonProperty(value = "localTimeZoneOffset", access = JsonProperty.Access.WRITE_ONLY) - private String localTimeZoneOffset; - - /* - * Object with additional information about integration runtime - * capabilities. - */ - @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map capabilities; - - /* - * The URLs for the services used in integration runtime backend service. - */ - @JsonProperty(value = "serviceUrls", access = JsonProperty.Access.WRITE_ONLY) - private List serviceUrls; - - /* - * Whether Self-hosted integration runtime auto update has been turned on. - */ - @JsonProperty(value = "autoUpdate", access = JsonProperty.Access.WRITE_ONLY) - private IntegrationRuntimeAutoUpdate autoUpdate; - - /* - * Status of the integration runtime version. - */ - @JsonProperty(value = "versionStatus", access = JsonProperty.Access.WRITE_ONLY) - private String versionStatus; - - /* - * The list of linked integration runtimes that are created to share with - * this integration runtime. - */ - @JsonProperty(value = "links") - private List links; - - /* - * The version that the integration runtime is going to update to. - */ - @JsonProperty(value = "pushedVersion", access = JsonProperty.Access.WRITE_ONLY) - private String pushedVersion; - - /* - * The latest version on download center. - */ - @JsonProperty(value = "latestVersion", access = JsonProperty.Access.WRITE_ONLY) - private String latestVersion; - - /* - * The estimated time when the self-hosted integration runtime will be - * updated. - */ - @JsonProperty(value = "autoUpdateETA", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime autoUpdateEta; - - /** - * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * - * @return the createTime value. - */ - public OffsetDateTime createTime() { - return this.createTime; - } - - /** - * Get the taskQueueId property: The task queue id of the integration runtime. - * - * @return the taskQueueId value. - */ - public String taskQueueId() { - return this.taskQueueId; - } - - /** - * Get the internalChannelEncryption property: It is used to set the encryption mode for node-node communication - * channel (when more than 2 self-hosted integration runtime nodes exist). - * - * @return the internalChannelEncryption value. - */ - public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { - return this.internalChannelEncryption; - } - - /** - * Get the version property: Version of the integration runtime. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the nodes property: The list of nodes for this integration runtime. - * - * @return the nodes value. - */ - public List nodes() { - return this.nodes; - } - - /** - * Set the nodes property: The list of nodes for this integration runtime. - * - * @param nodes the nodes value to set. - * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withNodes( - List nodes) { - this.nodes = nodes; - return this; - } - - /** - * Get the scheduledUpdateDate property: The date at which the integration runtime will be scheduled to update, in - * ISO8601 format. - * - * @return the scheduledUpdateDate value. - */ - public OffsetDateTime scheduledUpdateDate() { - return this.scheduledUpdateDate; - } - - /** - * Get the updateDelayOffset property: The time in the date scheduled by service to update the integration runtime, - * e.g., PT03H is 3 hours. - * - * @return the updateDelayOffset value. - */ - public String updateDelayOffset() { - return this.updateDelayOffset; - } - - /** - * Get the localTimeZoneOffset property: The local time zone offset in hours. - * - * @return the localTimeZoneOffset value. - */ - public String localTimeZoneOffset() { - return this.localTimeZoneOffset; - } - - /** - * Get the capabilities property: Object with additional information about integration runtime capabilities. - * - * @return the capabilities value. - */ - public Map capabilities() { - return this.capabilities; - } - - /** - * Get the serviceUrls property: The URLs for the services used in integration runtime backend service. - * - * @return the serviceUrls value. - */ - public List serviceUrls() { - return this.serviceUrls; - } - - /** - * Get the autoUpdate property: Whether Self-hosted integration runtime auto update has been turned on. - * - * @return the autoUpdate value. - */ - public IntegrationRuntimeAutoUpdate autoUpdate() { - return this.autoUpdate; - } - - /** - * Get the versionStatus property: Status of the integration runtime version. - * - * @return the versionStatus value. - */ - public String versionStatus() { - return this.versionStatus; - } - - /** - * Get the links property: The list of linked integration runtimes that are created to share with this integration - * runtime. - * - * @return the links value. - */ - public List links() { - return this.links; - } - - /** - * Set the links property: The list of linked integration runtimes that are created to share with this integration - * runtime. - * - * @param links the links value to set. - * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withLinks(List links) { - this.links = links; - return this; - } - - /** - * Get the pushedVersion property: The version that the integration runtime is going to update to. - * - * @return the pushedVersion value. - */ - public String pushedVersion() { - return this.pushedVersion; - } - - /** - * Get the latestVersion property: The latest version on download center. - * - * @return the latestVersion value. - */ - public String latestVersion() { - return this.latestVersion; - } - - /** - * Get the autoUpdateEta property: The estimated time when the self-hosted integration runtime will be updated. - * - * @return the autoUpdateEta value. - */ - public OffsetDateTime autoUpdateEta() { - return this.autoUpdateEta; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (nodes() != null) { - nodes().forEach(e -> e.validate()); - } - if (links() != null) { - links().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java deleted file mode 100644 index b1e788f9339eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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.resourcemanager.datafactory.models.LinkedIntegrationRuntimeType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The self-hosted integration runtime properties. */ -@Fluent -public final class SelfHostedIntegrationRuntimeTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeTypeProperties.class); - - /* - * The base definition of a linked integration runtime. - */ - @JsonProperty(value = "linkedInfo") - private LinkedIntegrationRuntimeType linkedInfo; - - /** - * Get the linkedInfo property: The base definition of a linked integration runtime. - * - * @return the linkedInfo value. - */ - public LinkedIntegrationRuntimeType linkedInfo() { - return this.linkedInfo; - } - - /** - * Set the linkedInfo property: The base definition of a linked integration runtime. - * - * @param linkedInfo the linkedInfo value to set. - * @return the SelfHostedIntegrationRuntimeTypeProperties object itself. - */ - public SelfHostedIntegrationRuntimeTypeProperties withLinkedInfo(LinkedIntegrationRuntimeType linkedInfo) { - this.linkedInfo = linkedInfo; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (linkedInfo() != null) { - linkedInfo().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java deleted file mode 100644 index c4bea868ff63f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ServiceNowLinkedServiceTypeProperties.java +++ /dev/null @@ -1,323 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.ServiceNowAuthenticationType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ServiceNow server linked service properties. */ -@Fluent -public final class ServiceNowLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceNowLinkedServiceTypeProperties.class); - - /* - * The endpoint of the ServiceNow server. (i.e. .service-now.com) - */ - @JsonProperty(value = "endpoint", required = true) - private Object endpoint; - - /* - * The authentication type to use. - */ - @JsonProperty(value = "authenticationType", required = true) - private ServiceNowAuthenticationType authenticationType; - - /* - * The user name used to connect to the ServiceNow server for Basic and - * OAuth2 authentication. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name for Basic and OAuth2 - * authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The client id for OAuth2 authentication. - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret for OAuth2 authentication. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). - * - * @param endpoint the endpoint value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the authenticationType property: The authentication type to use. - * - * @return the authenticationType value. - */ - public ServiceNowAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to use. - * - * @param authenticationType the authenticationType value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withAuthenticationType( - ServiceNowAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2 - * authentication. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2 - * authentication. - * - * @param username the username value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name for Basic and OAuth2 authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name for Basic and OAuth2 authentication. - * - * @param password the password value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the clientId property: The client id for OAuth2 authentication. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client id for OAuth2 authentication. - * - * @param clientId the clientId value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret for OAuth2 authentication. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret for OAuth2 authentication. - * - * @param clientSecret the clientSecret value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ServiceNowLinkedServiceTypeProperties object itself. - */ - public ServiceNowLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (endpoint() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property endpoint in model ServiceNowLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model ServiceNowLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java deleted file mode 100644 index 4f57f7def054b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SetVariableActivityTypeProperties.java +++ /dev/null @@ -1,76 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SetVariable activity properties. */ -@Fluent -public final class SetVariableActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SetVariableActivityTypeProperties.class); - - /* - * Name of the variable whose value needs to be set. - */ - @JsonProperty(value = "variableName") - private String variableName; - - /* - * Value to be set. Could be a static value or Expression - */ - @JsonProperty(value = "value") - private Object value; - - /** - * Get the variableName property: Name of the variable whose value needs to be set. - * - * @return the variableName value. - */ - public String variableName() { - return this.variableName; - } - - /** - * Set the variableName property: Name of the variable whose value needs to be set. - * - * @param variableName the variableName value to set. - * @return the SetVariableActivityTypeProperties object itself. - */ - public SetVariableActivityTypeProperties withVariableName(String variableName) { - this.variableName = variableName; - return this; - } - - /** - * Get the value property: Value to be set. Could be a static value or Expression. - * - * @return the value value. - */ - public Object value() { - return this.value; - } - - /** - * Set the value property: Value to be set. Could be a static value or Expression. - * - * @param value the value value to set. - * @return the SetVariableActivityTypeProperties object itself. - */ - public SetVariableActivityTypeProperties withValue(Object value) { - this.value = value; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java deleted file mode 100644 index 145a3ca8ed59c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SftpServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,364 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SftpAuthenticationType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties specific to this linked service type. */ -@Fluent -public final class SftpServerLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SftpServerLinkedServiceTypeProperties.class); - - /* - * The SFTP server host name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port number that the SFTP server uses to listen for client - * connections. Default value is 22. Type: integer (or Expression with - * resultType integer), minimum: 0. - */ - @JsonProperty(value = "port") - private Object port; - - /* - * The authentication type to be used to connect to the FTP server. - */ - @JsonProperty(value = "authenticationType") - private SftpAuthenticationType authenticationType; - - /* - * The username used to log on to the SFTP server. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * Password to logon the SFTP server for Basic authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * The SSH private key file path for SshPublicKey authentication. Only - * valid for on-premises copy. For on-premises copy with SshPublicKey - * authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "privateKeyPath") - private Object privateKeyPath; - - /* - * Base64 encoded SSH private key content for SshPublicKey authentication. - * For on-premises copy with SshPublicKey authentication, either - * PrivateKeyPath or PrivateKeyContent should be specified. SSH private key - * should be OpenSSH format. - */ - @JsonProperty(value = "privateKeyContent") - private SecretBase privateKeyContent; - - /* - * The password to decrypt the SSH private key if the SSH private key is - * encrypted. - */ - @JsonProperty(value = "passPhrase") - private SecretBase passPhrase; - - /* - * If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "skipHostKeyValidation") - private Object skipHostKeyValidation; - - /* - * The host key finger-print of the SFTP server. When SkipHostKeyValidation - * is false, HostKeyFingerprint should be specified. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "hostKeyFingerprint") - private Object hostKeyFingerprint; - - /** - * Get the host property: The SFTP server host name. Type: string (or Expression with resultType string). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The SFTP server host name. Type: string (or Expression with resultType string). - * - * @param host the host value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port number that the SFTP server uses to listen for client connections. Default - * value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port number that the SFTP server uses to listen for client connections. Default - * value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - * - * @param port the port value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @return the authenticationType value. - */ - public SftpAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication type to be used to connect to the FTP server. - * - * @param authenticationType the authenticationType value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withAuthenticationType(SftpAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The username used to log on to the SFTP server. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The username used to log on to the SFTP server. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password to logon the SFTP server for Basic authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password to logon the SFTP server for Basic authentication. - * - * @param password the password value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the privateKeyPath property: The SSH private key file path for SshPublicKey authentication. Only valid for - * on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - * PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with - * resultType string). - * - * @return the privateKeyPath value. - */ - public Object privateKeyPath() { - return this.privateKeyPath; - } - - /** - * Set the privateKeyPath property: The SSH private key file path for SshPublicKey authentication. Only valid for - * on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or - * PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with - * resultType string). - * - * @param privateKeyPath the privateKeyPath value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPrivateKeyPath(Object privateKeyPath) { - this.privateKeyPath = privateKeyPath; - return this; - } - - /** - * Get the privateKeyContent property: Base64 encoded SSH private key content for SshPublicKey authentication. For - * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. - * - * @return the privateKeyContent value. - */ - public SecretBase privateKeyContent() { - return this.privateKeyContent; - } - - /** - * Set the privateKeyContent property: Base64 encoded SSH private key content for SshPublicKey authentication. For - * on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be - * specified. SSH private key should be OpenSSH format. - * - * @param privateKeyContent the privateKeyContent value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPrivateKeyContent(SecretBase privateKeyContent) { - this.privateKeyContent = privateKeyContent; - return this; - } - - /** - * Get the passPhrase property: The password to decrypt the SSH private key if the SSH private key is encrypted. - * - * @return the passPhrase value. - */ - public SecretBase passPhrase() { - return this.passPhrase; - } - - /** - * Set the passPhrase property: The password to decrypt the SSH private key if the SSH private key is encrypted. - * - * @param passPhrase the passPhrase value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withPassPhrase(SecretBase passPhrase) { - this.passPhrase = passPhrase; - return this; - } - - /** - * Get the skipHostKeyValidation property: If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @return the skipHostKeyValidation value. - */ - public Object skipHostKeyValidation() { - return this.skipHostKeyValidation; - } - - /** - * Set the skipHostKeyValidation property: If true, skip the SSH host key validation. Default value is false. Type: - * boolean (or Expression with resultType boolean). - * - * @param skipHostKeyValidation the skipHostKeyValidation value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withSkipHostKeyValidation(Object skipHostKeyValidation) { - this.skipHostKeyValidation = skipHostKeyValidation; - return this; - } - - /** - * Get the hostKeyFingerprint property: The host key finger-print of the SFTP server. When SkipHostKeyValidation is - * false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - * - * @return the hostKeyFingerprint value. - */ - public Object hostKeyFingerprint() { - return this.hostKeyFingerprint; - } - - /** - * Set the hostKeyFingerprint property: The host key finger-print of the SFTP server. When SkipHostKeyValidation is - * false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - * - * @param hostKeyFingerprint the hostKeyFingerprint value to set. - * @return the SftpServerLinkedServiceTypeProperties object itself. - */ - public SftpServerLinkedServiceTypeProperties withHostKeyFingerprint(Object hostKeyFingerprint) { - this.hostKeyFingerprint = hostKeyFingerprint; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model SftpServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (privateKeyContent() != null) { - privateKeyContent().validate(); - } - if (passPhrase() != null) { - passPhrase().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java deleted file mode 100644 index a5bd3af378394..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListDatasetTypeProperties.java +++ /dev/null @@ -1,53 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sharepoint online list dataset properties. */ -@Fluent -public final class SharePointOnlineListDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SharePointOnlineListDatasetTypeProperties.class); - - /* - * The name of the SharePoint Online list. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "listName") - private Object listName; - - /** - * Get the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @return the listName value. - */ - public Object listName() { - return this.listName; - } - - /** - * Set the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @param listName the listName value to set. - * @return the SharePointOnlineListDatasetTypeProperties object itself. - */ - public SharePointOnlineListDatasetTypeProperties withListName(Object listName) { - this.listName = listName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java deleted file mode 100644 index ff3419f50975f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SharePointOnlineListLinkedServiceTypeProperties.java +++ /dev/null @@ -1,205 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SharePoint Online List linked service properties. */ -@Fluent -public final class SharePointOnlineListLinkedServiceTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SharePointOnlineListLinkedServiceTypeProperties.class); - - /* - * The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "siteUrl", required = true) - private Object siteUrl; - - /* - * The tenant ID under which your application resides. You can find it from - * Azure portal Active Directory overview page. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "tenantId", required = true) - private Object tenantId; - - /* - * The application (client) ID of your application registered in Azure - * Active Directory. Make sure to grant SharePoint site permission to this - * application. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalId", required = true) - private Object servicePrincipalId; - - /* - * The client secret of your application registered in Azure Active - * Directory. Type: string (or Expression with resultType string). - */ - @JsonProperty(value = "servicePrincipalKey", required = true) - private SecretBase servicePrincipalKey; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the siteUrl property: The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - * - * @return the siteUrl value. - */ - public Object siteUrl() { - return this.siteUrl; - } - - /** - * Set the siteUrl property: The URL of the SharePoint Online site. For example, - * https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). - * - * @param siteUrl the siteUrl value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withSiteUrl(Object siteUrl) { - this.siteUrl = siteUrl; - return this; - } - - /** - * Get the tenantId property: The tenant ID under which your application resides. You can find it from Azure portal - * Active Directory overview page. Type: string (or Expression with resultType string). - * - * @return the tenantId value. - */ - public Object tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: The tenant ID under which your application resides. You can find it from Azure portal - * Active Directory overview page. Type: string (or Expression with resultType string). - * - * @param tenantId the tenantId value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withTenantId(Object tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the servicePrincipalId property: The application (client) ID of your application registered in Azure Active - * Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with - * resultType string). - * - * @return the servicePrincipalId value. - */ - public Object servicePrincipalId() { - return this.servicePrincipalId; - } - - /** - * Set the servicePrincipalId property: The application (client) ID of your application registered in Azure Active - * Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with - * resultType string). - * - * @param servicePrincipalId the servicePrincipalId value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withServicePrincipalId(Object servicePrincipalId) { - this.servicePrincipalId = servicePrincipalId; - return this; - } - - /** - * Get the servicePrincipalKey property: The client secret of your application registered in Azure Active Directory. - * Type: string (or Expression with resultType string). - * - * @return the servicePrincipalKey value. - */ - public SecretBase servicePrincipalKey() { - return this.servicePrincipalKey; - } - - /** - * Set the servicePrincipalKey property: The client secret of your application registered in Azure Active Directory. - * Type: string (or Expression with resultType string). - * - * @param servicePrincipalKey the servicePrincipalKey value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withServicePrincipalKey(SecretBase servicePrincipalKey) { - this.servicePrincipalKey = servicePrincipalKey; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SharePointOnlineListLinkedServiceTypeProperties object itself. - */ - public SharePointOnlineListLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (siteUrl() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property siteUrl in model SharePointOnlineListLinkedServiceTypeProperties")); - } - if (tenantId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property tenantId in model SharePointOnlineListLinkedServiceTypeProperties")); - } - if (servicePrincipalId() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalId in model" - + " SharePointOnlineListLinkedServiceTypeProperties")); - } - if (servicePrincipalKey() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property servicePrincipalKey in model" - + " SharePointOnlineListLinkedServiceTypeProperties")); - } else { - servicePrincipalKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java deleted file mode 100644 index f1ab7e5d68746..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ShopifyLinkedServiceTypeProperties.java +++ /dev/null @@ -1,207 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Shopify Service linked service properties. */ -@Fluent -public final class ShopifyLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ShopifyLinkedServiceTypeProperties.class); - - /* - * The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The API access token that can be used to access Shopify’s data. The - * token won't expire if it is offline mode. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). - * - * @param host the host value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the accessToken property: The API access token that can be used to access Shopify’s data. The token won't - * expire if it is offline mode. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The API access token that can be used to access Shopify’s data. The token won't - * expire if it is offline mode. - * - * @param accessToken the accessToken value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ShopifyLinkedServiceTypeProperties object itself. - */ - public ShopifyLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model ShopifyLinkedServiceTypeProperties")); - } - if (accessToken() != null) { - accessToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java deleted file mode 100644 index b46a50fdc4b52..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeDatasetTypeProperties.java +++ /dev/null @@ -1,82 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Snowflake dataset properties. */ -@Fluent -public final class SnowflakeDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnowflakeDatasetTypeProperties.class); - - /* - * The schema name of the Snowflake database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the Snowflake database. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SnowflakeDatasetTypeProperties object itself. - */ - public SnowflakeDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SnowflakeDatasetTypeProperties object itself. - */ - public SnowflakeDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedServiceTypeProperties.java deleted file mode 100644 index ed4ffeb3d5421..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SnowflakeLinkedServiceTypeProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Snowflake linked service properties. */ -@Fluent -public final class SnowflakeLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnowflakeLinkedServiceTypeProperties.class); - - /* - * The connection string of snowflake. Type: string, SecureString. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "password") - private AzureKeyVaultSecretReference password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: The connection string of snowflake. Type: string, SecureString. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string of snowflake. Type: string, SecureString. - * - * @param connectionString the connectionString value to set. - * @return the SnowflakeLinkedServiceTypeProperties object itself. - */ - public SnowflakeLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the password property: The Azure key vault secret reference of password in connection string. - * - * @return the password value. - */ - public AzureKeyVaultSecretReference password() { - return this.password; - } - - /** - * Set the password property: The Azure key vault secret reference of password in connection string. - * - * @param password the password value to set. - * @return the SnowflakeLinkedServiceTypeProperties object itself. - */ - public SnowflakeLinkedServiceTypeProperties withPassword(AzureKeyVaultSecretReference password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SnowflakeLinkedServiceTypeProperties object itself. - */ - public SnowflakeLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model SnowflakeLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java deleted file mode 100644 index 65e1eafd08d9a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Spark Properties. */ -@Fluent -public final class SparkDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Spark. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Spark. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the SparkDatasetTypeProperties object itself. - */ - public SparkDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Spark. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Spark. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SparkDatasetTypeProperties object itself. - */ - public SparkDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SparkDatasetTypeProperties object itself. - */ - public SparkDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java deleted file mode 100644 index 3ca2f71dad96d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SparkLinkedServiceTypeProperties.java +++ /dev/null @@ -1,440 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SparkAuthenticationType; -import com.azure.resourcemanager.datafactory.models.SparkServerType; -import com.azure.resourcemanager.datafactory.models.SparkThriftTransportProtocol; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Spark Server linked service properties. */ -@Fluent -public final class SparkLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkLinkedServiceTypeProperties.class); - - /* - * IP address or host name of the Spark server - */ - @JsonProperty(value = "host", required = true) - private Object host; - - /* - * The TCP port that the Spark server uses to listen for client - * connections. - */ - @JsonProperty(value = "port", required = true) - private Object port; - - /* - * The type of Spark server. - */ - @JsonProperty(value = "serverType") - private SparkServerType serverType; - - /* - * The transport protocol to use in the Thrift layer. - */ - @JsonProperty(value = "thriftTransportProtocol") - private SparkThriftTransportProtocol thriftTransportProtocol; - - /* - * The authentication method used to access the Spark server. - */ - @JsonProperty(value = "authenticationType", required = true) - private SparkAuthenticationType authenticationType; - - /* - * The user name that you use to access Spark Server. - */ - @JsonProperty(value = "username") - private Object username; - - /* - * The password corresponding to the user name that you provided in the - * Username field - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The partial URL corresponding to the Spark server. - */ - @JsonProperty(value = "httpPath") - private Object httpPath; - - /* - * Specifies whether the connections to the server are encrypted using SSL. - * The default value is false. - */ - @JsonProperty(value = "enableSsl") - private Object enableSsl; - - /* - * The full path of the .pem file containing trusted CA certificates for - * verifying the server when connecting over SSL. This property can only be - * set when using SSL on self-hosted IR. The default value is the - * cacerts.pem file installed with the IR. - */ - @JsonProperty(value = "trustedCertPath") - private Object trustedCertPath; - - /* - * Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - */ - @JsonProperty(value = "useSystemTrustStore") - private Object useSystemTrustStore; - - /* - * Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value - * is false. - */ - @JsonProperty(value = "allowHostNameCNMismatch") - private Object allowHostnameCNMismatch; - - /* - * Specifies whether to allow self-signed certificates from the server. The - * default value is false. - */ - @JsonProperty(value = "allowSelfSignedServerCert") - private Object allowSelfSignedServerCert; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the host property: IP address or host name of the Spark server. - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: IP address or host name of the Spark server. - * - * @param host the host value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the port property: The TCP port that the Spark server uses to listen for client connections. - * - * @return the port value. - */ - public Object port() { - return this.port; - } - - /** - * Set the port property: The TCP port that the Spark server uses to listen for client connections. - * - * @param port the port value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withPort(Object port) { - this.port = port; - return this; - } - - /** - * Get the serverType property: The type of Spark server. - * - * @return the serverType value. - */ - public SparkServerType serverType() { - return this.serverType; - } - - /** - * Set the serverType property: The type of Spark server. - * - * @param serverType the serverType value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withServerType(SparkServerType serverType) { - this.serverType = serverType; - return this; - } - - /** - * Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @return the thriftTransportProtocol value. - */ - public SparkThriftTransportProtocol thriftTransportProtocol() { - return this.thriftTransportProtocol; - } - - /** - * Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer. - * - * @param thriftTransportProtocol the thriftTransportProtocol value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withThriftTransportProtocol( - SparkThriftTransportProtocol thriftTransportProtocol) { - this.thriftTransportProtocol = thriftTransportProtocol; - return this; - } - - /** - * Get the authenticationType property: The authentication method used to access the Spark server. - * - * @return the authenticationType value. - */ - public SparkAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: The authentication method used to access the Spark server. - * - * @param authenticationType the authenticationType value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withAuthenticationType(SparkAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: The user name that you use to access Spark Server. - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The user name that you use to access Spark Server. - * - * @param username the username value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The password corresponding to the user name that you provided in the Username field. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The password corresponding to the user name that you provided in the Username field. - * - * @param password the password value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the httpPath property: The partial URL corresponding to the Spark server. - * - * @return the httpPath value. - */ - public Object httpPath() { - return this.httpPath; - } - - /** - * Set the httpPath property: The partial URL corresponding to the Spark server. - * - * @param httpPath the httpPath value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withHttpPath(Object httpPath) { - this.httpPath = httpPath; - return this; - } - - /** - * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @return the enableSsl value. - */ - public Object enableSsl() { - return this.enableSsl; - } - - /** - * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default - * value is false. - * - * @param enableSsl the enableSsl value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withEnableSsl(Object enableSsl) { - this.enableSsl = enableSsl; - return this; - } - - /** - * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @return the trustedCertPath value. - */ - public Object trustedCertPath() { - return this.trustedCertPath; - } - - /** - * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying - * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default - * value is the cacerts.pem file installed with the IR. - * - * @param trustedCertPath the trustedCertPath value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withTrustedCertPath(Object trustedCertPath) { - this.trustedCertPath = trustedCertPath; - return this; - } - - /** - * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @return the useSystemTrustStore value. - */ - public Object useSystemTrustStore() { - return this.useSystemTrustStore; - } - - /** - * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or - * from a specified PEM file. The default value is false. - * - * @param useSystemTrustStore the useSystemTrustStore value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withUseSystemTrustStore(Object useSystemTrustStore) { - this.useSystemTrustStore = useSystemTrustStore; - return this; - } - - /** - * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @return the allowHostnameCNMismatch value. - */ - public Object allowHostnameCNMismatch() { - return this.allowHostnameCNMismatch; - } - - /** - * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match - * the host name of the server when connecting over SSL. The default value is false. - * - * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - this.allowHostnameCNMismatch = allowHostnameCNMismatch; - return this; - } - - /** - * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @return the allowSelfSignedServerCert value. - */ - public Object allowSelfSignedServerCert() { - return this.allowSelfSignedServerCert; - } - - /** - * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. - * The default value is false. - * - * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - this.allowSelfSignedServerCert = allowSelfSignedServerCert; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SparkLinkedServiceTypeProperties object itself. - */ - public SparkLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (host() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property host in model SparkLinkedServiceTypeProperties")); - } - if (port() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property port in model SparkLinkedServiceTypeProperties")); - } - if (authenticationType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property authenticationType in model SparkLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} 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 deleted file mode 100644 index d0913971bdcb7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerLinkedServiceTypeProperties.java +++ /dev/null @@ -1,179 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SQL Server linked service properties. */ -@Fluent -public final class SqlServerLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerLinkedServiceTypeProperties.class); - - /* - * The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString", required = true) - private Object connectionString; - - /* - * The on-premises Windows authentication user name. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "userName") - private Object username; - - /* - * The on-premises Windows authentication password. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /* - * Sql always encrypted properties. - */ - @JsonProperty(value = "alwaysEncryptedSettings") - private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; - - /** - * Get the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: The connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: The on-premises Windows authentication user name. Type: string (or Expression with - * resultType string). - * - * @param username the username value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: The on-premises Windows authentication password. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: The on-premises Windows authentication password. - * - * @param password the password value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Get the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @return the alwaysEncryptedSettings value. - */ - public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.alwaysEncryptedSettings; - } - - /** - * Set the alwaysEncryptedSettings property: Sql always encrypted properties. - * - * @param alwaysEncryptedSettings the alwaysEncryptedSettings value to set. - * @return the SqlServerLinkedServiceTypeProperties object itself. - */ - public SqlServerLinkedServiceTypeProperties withAlwaysEncryptedSettings( - SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - this.alwaysEncryptedSettings = alwaysEncryptedSettings; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (connectionString() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property connectionString in model SqlServerLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - if (alwaysEncryptedSettings() != null) { - alwaysEncryptedSettings().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java deleted file mode 100644 index 386dbac9f29da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java +++ /dev/null @@ -1,103 +0,0 @@ -// 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.resourcemanager.datafactory.models.StoredProcedureParameter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** SQL stored procedure activity properties. */ -@Fluent -public final class SqlServerStoredProcedureActivityTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlServerStoredProcedureActivityTypeProperties.class); - - /* - * Stored procedure name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "storedProcedureName", required = true) - private Object storedProcedureName; - - /* - * Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - */ - @JsonProperty(value = "storedProcedureParameters") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map storedProcedureParameters; - - /** - * Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @return the storedProcedureName value. - */ - public Object storedProcedureName() { - return this.storedProcedureName; - } - - /** - * Set the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @param storedProcedureName the storedProcedureName value to set. - * @return the SqlServerStoredProcedureActivityTypeProperties object itself. - */ - public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureName(Object storedProcedureName) { - this.storedProcedureName = storedProcedureName; - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.storedProcedureParameters; - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlServerStoredProcedureActivityTypeProperties object itself. - */ - public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureParameters( - Map storedProcedureParameters) { - this.storedProcedureParameters = storedProcedureParameters; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (storedProcedureName() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property storedProcedureName in model" - + " SqlServerStoredProcedureActivityTypeProperties")); - } - if (storedProcedureParameters() != null) { - storedProcedureParameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java deleted file mode 100644 index 75d120e5bf7a8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerTableDatasetTypeProperties.java +++ /dev/null @@ -1,111 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** On-premises SQL Server dataset properties. */ -@Fluent -public final class SqlServerTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerTableDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The schema name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * The table name of the SQL Server dataset. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the SqlServerTableDatasetTypeProperties object itself. - */ - public SqlServerTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SqlServerTableDatasetTypeProperties object itself. - */ - public SqlServerTableDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SqlServerTableDatasetTypeProperties object itself. - */ - public SqlServerTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java deleted file mode 100644 index f63547b615634..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SquareLinkedServiceTypeProperties.java +++ /dev/null @@ -1,282 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Square Service linked service properties. */ -@Fluent -public final class SquareLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SquareLinkedServiceTypeProperties.class); - - /* - * Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The URL of the Square instance. (i.e. mystore.mysquare.com) - */ - @JsonProperty(value = "host") - private Object host; - - /* - * The client ID associated with your Square application. - */ - @JsonProperty(value = "clientId") - private Object clientId; - - /* - * The client secret associated with your Square application. - */ - @JsonProperty(value = "clientSecret") - private SecretBase clientSecret; - - /* - * The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500) - */ - @JsonProperty(value = "redirectUri") - private Object redirectUri; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the host property: The URL of the Square instance. (i.e. mystore.mysquare.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The URL of the Square instance. (i.e. mystore.mysquare.com). - * - * @param host the host value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the clientId property: The client ID associated with your Square application. - * - * @return the clientId value. - */ - public Object clientId() { - return this.clientId; - } - - /** - * Set the clientId property: The client ID associated with your Square application. - * - * @param clientId the clientId value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withClientId(Object clientId) { - this.clientId = clientId; - return this; - } - - /** - * Get the clientSecret property: The client secret associated with your Square application. - * - * @return the clientSecret value. - */ - public SecretBase clientSecret() { - return this.clientSecret; - } - - /** - * Set the clientSecret property: The client secret associated with your Square application. - * - * @param clientSecret the clientSecret value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withClientSecret(SecretBase clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Get the redirectUri property: The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500). - * - * @return the redirectUri value. - */ - public Object redirectUri() { - return this.redirectUri; - } - - /** - * Set the redirectUri property: The redirect URL assigned in the Square application dashboard. (i.e. - * http://localhost:2500). - * - * @param redirectUri the redirectUri value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withRedirectUri(Object redirectUri) { - this.redirectUri = redirectUri; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SquareLinkedServiceTypeProperties object itself. - */ - public SquareLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (clientSecret() != null) { - clientSecret().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java deleted file mode 100644 index 14771fdeb4965..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisLogLocationTypeProperties.java +++ /dev/null @@ -1,86 +0,0 @@ -// 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.resourcemanager.datafactory.models.SsisAccessCredential; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SSIS package execution log location properties. */ -@Fluent -public final class SsisLogLocationTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisLogLocationTypeProperties.class); - - /* - * The package execution log access credential. - */ - @JsonProperty(value = "accessCredential") - private SsisAccessCredential accessCredential; - - /* - * Specifies the interval to refresh log. The default interval is 5 - * minutes. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "logRefreshInterval") - private Object logRefreshInterval; - - /** - * Get the accessCredential property: The package execution log access credential. - * - * @return the accessCredential value. - */ - public SsisAccessCredential accessCredential() { - return this.accessCredential; - } - - /** - * Set the accessCredential property: The package execution log access credential. - * - * @param accessCredential the accessCredential value to set. - * @return the SsisLogLocationTypeProperties object itself. - */ - public SsisLogLocationTypeProperties withAccessCredential(SsisAccessCredential accessCredential) { - this.accessCredential = accessCredential; - return this; - } - - /** - * Get the logRefreshInterval property: Specifies the interval to refresh log. The default interval is 5 minutes. - * Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the logRefreshInterval value. - */ - public Object logRefreshInterval() { - return this.logRefreshInterval; - } - - /** - * Set the logRefreshInterval property: Specifies the interval to refresh log. The default interval is 5 minutes. - * Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param logRefreshInterval the logRefreshInterval value to set. - * @return the SsisLogLocationTypeProperties object itself. - */ - public SsisLogLocationTypeProperties withLogRefreshInterval(Object logRefreshInterval) { - this.logRefreshInterval = logRefreshInterval; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accessCredential() != null) { - accessCredential().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java deleted file mode 100644 index a849c8f8beb0e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SsisPackageLocationTypeProperties.java +++ /dev/null @@ -1,255 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SsisAccessCredential; -import com.azure.resourcemanager.datafactory.models.SsisChildPackage; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** SSIS package location properties. */ -@Fluent -public final class SsisPackageLocationTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisPackageLocationTypeProperties.class); - - /* - * Password of the package. - */ - @JsonProperty(value = "packagePassword") - private SecretBase packagePassword; - - /* - * The package access credential. - */ - @JsonProperty(value = "accessCredential") - private SsisAccessCredential accessCredential; - - /* - * The configuration file of the package execution. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "configurationPath") - private Object configurationPath; - - /* - * The configuration file access credential. - */ - @JsonProperty(value = "configurationAccessCredential") - private SsisAccessCredential configurationAccessCredential; - - /* - * The package name. - */ - @JsonProperty(value = "packageName") - private String packageName; - - /* - * The embedded package content. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "packageContent") - private Object packageContent; - - /* - * The embedded package last modified date. - */ - @JsonProperty(value = "packageLastModifiedDate") - private String packageLastModifiedDate; - - /* - * The embedded child package list. - */ - @JsonProperty(value = "childPackages") - private List childPackages; - - /** - * Get the packagePassword property: Password of the package. - * - * @return the packagePassword value. - */ - public SecretBase packagePassword() { - return this.packagePassword; - } - - /** - * Set the packagePassword property: Password of the package. - * - * @param packagePassword the packagePassword value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackagePassword(SecretBase packagePassword) { - this.packagePassword = packagePassword; - return this; - } - - /** - * Get the accessCredential property: The package access credential. - * - * @return the accessCredential value. - */ - public SsisAccessCredential accessCredential() { - return this.accessCredential; - } - - /** - * Set the accessCredential property: The package access credential. - * - * @param accessCredential the accessCredential value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withAccessCredential(SsisAccessCredential accessCredential) { - this.accessCredential = accessCredential; - return this; - } - - /** - * Get the configurationPath property: The configuration file of the package execution. Type: string (or Expression - * with resultType string). - * - * @return the configurationPath value. - */ - public Object configurationPath() { - return this.configurationPath; - } - - /** - * Set the configurationPath property: The configuration file of the package execution. Type: string (or Expression - * with resultType string). - * - * @param configurationPath the configurationPath value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withConfigurationPath(Object configurationPath) { - this.configurationPath = configurationPath; - return this; - } - - /** - * Get the configurationAccessCredential property: The configuration file access credential. - * - * @return the configurationAccessCredential value. - */ - public SsisAccessCredential configurationAccessCredential() { - return this.configurationAccessCredential; - } - - /** - * Set the configurationAccessCredential property: The configuration file access credential. - * - * @param configurationAccessCredential the configurationAccessCredential value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withConfigurationAccessCredential( - SsisAccessCredential configurationAccessCredential) { - this.configurationAccessCredential = configurationAccessCredential; - return this; - } - - /** - * Get the packageName property: The package name. - * - * @return the packageName value. - */ - public String packageName() { - return this.packageName; - } - - /** - * Set the packageName property: The package name. - * - * @param packageName the packageName value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackageName(String packageName) { - this.packageName = packageName; - return this; - } - - /** - * Get the packageContent property: The embedded package content. Type: string (or Expression with resultType - * string). - * - * @return the packageContent value. - */ - public Object packageContent() { - return this.packageContent; - } - - /** - * Set the packageContent property: The embedded package content. Type: string (or Expression with resultType - * string). - * - * @param packageContent the packageContent value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackageContent(Object packageContent) { - this.packageContent = packageContent; - return this; - } - - /** - * Get the packageLastModifiedDate property: The embedded package last modified date. - * - * @return the packageLastModifiedDate value. - */ - public String packageLastModifiedDate() { - return this.packageLastModifiedDate; - } - - /** - * Set the packageLastModifiedDate property: The embedded package last modified date. - * - * @param packageLastModifiedDate the packageLastModifiedDate value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withPackageLastModifiedDate(String packageLastModifiedDate) { - this.packageLastModifiedDate = packageLastModifiedDate; - return this; - } - - /** - * Get the childPackages property: The embedded child package list. - * - * @return the childPackages value. - */ - public List childPackages() { - return this.childPackages; - } - - /** - * Set the childPackages property: The embedded child package list. - * - * @param childPackages the childPackages value to set. - * @return the SsisPackageLocationTypeProperties object itself. - */ - public SsisPackageLocationTypeProperties withChildPackages(List childPackages) { - this.childPackages = childPackages; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (packagePassword() != null) { - packagePassword().validate(); - } - if (accessCredential() != null) { - accessCredential().validate(); - } - if (configurationAccessCredential() != null) { - configurationAccessCredential().validate(); - } - if (childPackages() != null) { - childPackages().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SwitchActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SwitchActivityTypeProperties.java deleted file mode 100644 index cd1c94c473b64..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SwitchActivityTypeProperties.java +++ /dev/null @@ -1,130 +0,0 @@ -// 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.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.azure.resourcemanager.datafactory.models.SwitchCase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Switch activity properties. */ -@Fluent -public final class SwitchActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwitchActivityTypeProperties.class); - - /* - * An expression that would evaluate to a string or integer. This is used - * to determine the block of activities in cases that will be executed. - */ - @JsonProperty(value = "on", required = true) - private Expression on; - - /* - * List of cases that correspond to expected values of the 'on' property. - * This is an optional property and if not provided, the activity will - * execute activities provided in defaultActivities. - */ - @JsonProperty(value = "cases") - private List cases; - - /* - * List of activities to execute if no case condition is satisfied. This is - * an optional property and if not provided, the activity will exit without - * any action. - */ - @JsonProperty(value = "defaultActivities") - private List defaultActivities; - - /** - * Get the on property: An expression that would evaluate to a string or integer. This is used to determine the - * block of activities in cases that will be executed. - * - * @return the on value. - */ - public Expression on() { - return this.on; - } - - /** - * Set the on property: An expression that would evaluate to a string or integer. This is used to determine the - * block of activities in cases that will be executed. - * - * @param on the on value to set. - * @return the SwitchActivityTypeProperties object itself. - */ - public SwitchActivityTypeProperties withOn(Expression on) { - this.on = on; - return this; - } - - /** - * Get the cases property: List of cases that correspond to expected values of the 'on' property. This is an - * optional property and if not provided, the activity will execute activities provided in defaultActivities. - * - * @return the cases value. - */ - public List cases() { - return this.cases; - } - - /** - * Set the cases property: List of cases that correspond to expected values of the 'on' property. This is an - * optional property and if not provided, the activity will execute activities provided in defaultActivities. - * - * @param cases the cases value to set. - * @return the SwitchActivityTypeProperties object itself. - */ - public SwitchActivityTypeProperties withCases(List cases) { - this.cases = cases; - return this; - } - - /** - * Get the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @return the defaultActivities value. - */ - public List defaultActivities() { - return this.defaultActivities; - } - - /** - * Set the defaultActivities property: List of activities to execute if no case condition is satisfied. This is an - * optional property and if not provided, the activity will exit without any action. - * - * @param defaultActivities the defaultActivities value to set. - * @return the SwitchActivityTypeProperties object itself. - */ - public SwitchActivityTypeProperties withDefaultActivities(List defaultActivities) { - this.defaultActivities = defaultActivities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (on() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property on in model SwitchActivityTypeProperties")); - } else { - on().validate(); - } - if (cases() != null) { - cases().forEach(e -> e.validate()); - } - if (defaultActivities() != null) { - defaultActivities().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java deleted file mode 100644 index 2151f0eb3bbb6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseLinkedServiceTypeProperties.java +++ /dev/null @@ -1,231 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.SybaseAuthenticationType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sybase linked service properties. */ -@Fluent -public final class SybaseLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SybaseLinkedServiceTypeProperties.class); - - /* - * Server name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "server", required = true) - private Object server; - - /* - * Database name for connection. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database", required = true) - private Object database; - - /* - * Schema name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /* - * AuthenticationType to be used for connection. - */ - @JsonProperty(value = "authenticationType") - private SybaseAuthenticationType authenticationType; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: Database name for connection. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the schema property: Schema name for connection. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: Schema name for connection. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. - * - * @return the authenticationType value. - */ - public SybaseAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. - * - * @param authenticationType the authenticationType value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withAuthenticationType(SybaseAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the SybaseLinkedServiceTypeProperties object itself. - */ - public SybaseLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (server() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property server in model SybaseLinkedServiceTypeProperties")); - } - if (database() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property database in model SybaseLinkedServiceTypeProperties")); - } - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java deleted file mode 100644 index 9ac39bc414762..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SybaseTableDatasetTypeProperties.java +++ /dev/null @@ -1,51 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Sybase table dataset properties. */ -@Fluent -public final class SybaseTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SybaseTableDatasetTypeProperties.class); - - /* - * The Sybase table name. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /** - * Get the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SybaseTableDatasetTypeProperties object itself. - */ - public SybaseTableDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java deleted file mode 100644 index 185f783596c7c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataLinkedServiceTypeProperties.java +++ /dev/null @@ -1,194 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.azure.resourcemanager.datafactory.models.TeradataAuthenticationType; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Teradata linked service properties. */ -@Fluent -public final class TeradataLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TeradataLinkedServiceTypeProperties.class); - - /* - * Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * Server name for connection. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "server") - private Object server; - - /* - * AuthenticationType to be used for connection. - */ - @JsonProperty(value = "authenticationType") - private TeradataAuthenticationType authenticationType; - - /* - * Username for authentication. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "username") - private Object username; - - /* - * Password for authentication. - */ - @JsonProperty(value = "password") - private SecretBase password; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: Teradata ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @return the server value. - */ - public Object server() { - return this.server; - } - - /** - * Set the server property: Server name for connection. Type: string (or Expression with resultType string). - * - * @param server the server value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withServer(Object server) { - this.server = server; - return this; - } - - /** - * Get the authenticationType property: AuthenticationType to be used for connection. - * - * @return the authenticationType value. - */ - public TeradataAuthenticationType authenticationType() { - return this.authenticationType; - } - - /** - * Set the authenticationType property: AuthenticationType to be used for connection. - * - * @param authenticationType the authenticationType value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withAuthenticationType(TeradataAuthenticationType authenticationType) { - this.authenticationType = authenticationType; - return this; - } - - /** - * Get the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @return the username value. - */ - public Object username() { - return this.username; - } - - /** - * Set the username property: Username for authentication. Type: string (or Expression with resultType string). - * - * @param username the username value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withUsername(Object username) { - this.username = username; - return this; - } - - /** - * Get the password property: Password for authentication. - * - * @return the password value. - */ - public SecretBase password() { - return this.password; - } - - /** - * Set the password property: Password for authentication. - * - * @param password the password value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withPassword(SecretBase password) { - this.password = password; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the TeradataLinkedServiceTypeProperties object itself. - */ - public TeradataLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (password() != null) { - password().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java deleted file mode 100644 index f1653b4d37070..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TeradataTableDatasetTypeProperties.java +++ /dev/null @@ -1,78 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Teradata dataset properties. */ -@Fluent -public final class TeradataTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TeradataTableDatasetTypeProperties.class); - - /* - * The database name of Teradata. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "database") - private Object database; - - /* - * The table name of Teradata. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "table") - private Object table; - - /** - * Get the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.database; - } - - /** - * Set the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the TeradataTableDatasetTypeProperties object itself. - */ - public TeradataTableDatasetTypeProperties withDatabase(Object database) { - this.database = database; - return this; - } - - /** - * Get the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the TeradataTableDatasetTypeProperties object itself. - */ - public TeradataTableDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java deleted file mode 100644 index f5414308b2857..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TumblingWindowTriggerTypeProperties.java +++ /dev/null @@ -1,274 +0,0 @@ -// 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.resourcemanager.datafactory.models.DependencyReference; -import com.azure.resourcemanager.datafactory.models.RetryPolicy; -import com.azure.resourcemanager.datafactory.models.TumblingWindowFrequency; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.List; - -/** Tumbling Window Trigger properties. */ -@Fluent -public final class TumblingWindowTriggerTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TumblingWindowTriggerTypeProperties.class); - - /* - * The frequency of the time windows. - */ - @JsonProperty(value = "frequency", required = true) - private TumblingWindowFrequency frequency; - - /* - * The interval of the time windows. The minimum interval allowed is 15 - * Minutes. - */ - @JsonProperty(value = "interval", required = true) - private int interval; - - /* - * The start time for the time period for the trigger during which events - * are fired for windows that are ready. Only UTC time is currently - * supported. - */ - @JsonProperty(value = "startTime", required = true) - private OffsetDateTime startTime; - - /* - * The end time for the time period for the trigger during which events are - * fired for windows that are ready. Only UTC time is currently supported. - */ - @JsonProperty(value = "endTime") - private OffsetDateTime endTime; - - /* - * Specifies how long the trigger waits past due time before triggering new - * run. It doesn't alter window start and end time. The default is 0. Type: - * string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "delay") - private Object delay; - - /* - * The max number of parallel time windows (ready for execution) for which - * a new run is triggered. - */ - @JsonProperty(value = "maxConcurrency", required = true) - private int maxConcurrency; - - /* - * Retry policy that will be applied for failed pipeline runs. - */ - @JsonProperty(value = "retryPolicy") - private RetryPolicy retryPolicy; - - /* - * Triggers that this trigger depends on. Only tumbling window triggers are - * supported. - */ - @JsonProperty(value = "dependsOn") - private List dependsOn; - - /** - * Get the frequency property: The frequency of the time windows. - * - * @return the frequency value. - */ - public TumblingWindowFrequency frequency() { - return this.frequency; - } - - /** - * Set the frequency property: The frequency of the time windows. - * - * @param frequency the frequency value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withFrequency(TumblingWindowFrequency frequency) { - this.frequency = frequency; - return this; - } - - /** - * Get the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes. - * - * @return the interval value. - */ - public int interval() { - return this.interval; - } - - /** - * Set the interval property: The interval of the time windows. The minimum interval allowed is 15 Minutes. - * - * @param interval the interval value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withInterval(int interval) { - this.interval = interval; - return this; - } - - /** - * Get the startTime property: The start time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.startTime; - } - - /** - * Set the startTime property: The start time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @param startTime the startTime value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return this; - } - - /** - * Get the endTime property: The end time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @return the endTime value. - */ - public OffsetDateTime endTime() { - return this.endTime; - } - - /** - * Set the endTime property: The end time for the time period for the trigger during which events are fired for - * windows that are ready. Only UTC time is currently supported. - * - * @param endTime the endTime value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; - return this; - } - - /** - * Get the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't - * alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the delay value. - */ - public Object delay() { - return this.delay; - } - - /** - * Set the delay property: Specifies how long the trigger waits past due time before triggering new run. It doesn't - * alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param delay the delay value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withDelay(Object delay) { - this.delay = delay; - return this; - } - - /** - * Get the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new - * run is triggered. - * - * @return the maxConcurrency value. - */ - public int maxConcurrency() { - return this.maxConcurrency; - } - - /** - * Set the maxConcurrency property: The max number of parallel time windows (ready for execution) for which a new - * run is triggered. - * - * @param maxConcurrency the maxConcurrency value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withMaxConcurrency(int maxConcurrency) { - this.maxConcurrency = maxConcurrency; - return this; - } - - /** - * Get the retryPolicy property: Retry policy that will be applied for failed pipeline runs. - * - * @return the retryPolicy value. - */ - public RetryPolicy retryPolicy() { - return this.retryPolicy; - } - - /** - * Set the retryPolicy property: Retry policy that will be applied for failed pipeline runs. - * - * @param retryPolicy the retryPolicy value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withRetryPolicy(RetryPolicy retryPolicy) { - this.retryPolicy = retryPolicy; - return this; - } - - /** - * Get the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported. - * - * @return the dependsOn value. - */ - public List dependsOn() { - return this.dependsOn; - } - - /** - * Set the dependsOn property: Triggers that this trigger depends on. Only tumbling window triggers are supported. - * - * @param dependsOn the dependsOn value to set. - * @return the TumblingWindowTriggerTypeProperties object itself. - */ - public TumblingWindowTriggerTypeProperties withDependsOn(List dependsOn) { - this.dependsOn = dependsOn; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (frequency() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property frequency in model TumblingWindowTriggerTypeProperties")); - } - if (startTime() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property startTime in model TumblingWindowTriggerTypeProperties")); - } - if (retryPolicy() != null) { - retryPolicy().validate(); - } - if (dependsOn() != null) { - dependsOn().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java deleted file mode 100644 index 5f5fe03ed20a7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/UntilActivityTypeProperties.java +++ /dev/null @@ -1,135 +0,0 @@ -// 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.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.Expression; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Until activity properties. */ -@Fluent -public final class UntilActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UntilActivityTypeProperties.class); - - /* - * An expression that would evaluate to Boolean. The loop will continue - * until this expression evaluates to true - */ - @JsonProperty(value = "expression", required = true) - private Expression expression; - - /* - * Specifies the timeout for the activity to run. If there is no value - * specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as - * default. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or - * Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "timeout") - private Object timeout; - - /* - * List of activities to execute. - */ - @JsonProperty(value = "activities", required = true) - private List activities; - - /** - * Get the expression property: An expression that would evaluate to Boolean. The loop will continue until this - * expression evaluates to true. - * - * @return the expression value. - */ - public Expression expression() { - return this.expression; - } - - /** - * Set the expression property: An expression that would evaluate to Boolean. The loop will continue until this - * expression evaluates to true. - * - * @param expression the expression value to set. - * @return the UntilActivityTypeProperties object itself. - */ - public UntilActivityTypeProperties withExpression(Expression expression) { - this.expression = expression; - return this; - } - - /** - * Get the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes - * the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType - * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the timeout value. - */ - public Object timeout() { - return this.timeout; - } - - /** - * Set the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes - * the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType - * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with - * resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param timeout the timeout value to set. - * @return the UntilActivityTypeProperties object itself. - */ - public UntilActivityTypeProperties withTimeout(Object timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the activities property: List of activities to execute. - * - * @return the activities value. - */ - public List activities() { - return this.activities; - } - - /** - * Set the activities property: List of activities to execute. - * - * @param activities the activities value to set. - * @return the UntilActivityTypeProperties object itself. - */ - public UntilActivityTypeProperties withActivities(List activities) { - this.activities = activities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (expression() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property expression in model UntilActivityTypeProperties")); - } else { - expression().validate(); - } - if (activities() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property activities in model UntilActivityTypeProperties")); - } else { - activities().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java deleted file mode 100644 index 184b8ed3c9209..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ValidationActivityTypeProperties.java +++ /dev/null @@ -1,182 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Validation activity properties. */ -@Fluent -public final class ValidationActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ValidationActivityTypeProperties.class); - - /* - * Specifies the timeout for the activity to run. If there is no value - * specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as - * default. Type: string (or Expression with resultType string), pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "timeout") - private Object timeout; - - /* - * A delay in seconds between validation attempts. If no value is - * specified, 10 seconds will be used as the default. Type: integer (or - * Expression with resultType integer). - */ - @JsonProperty(value = "sleep") - private Object sleep; - - /* - * Can be used if dataset points to a file. The file must be greater than - * or equal in size to the value specified. Type: integer (or Expression - * with resultType integer). - */ - @JsonProperty(value = "minimumSize") - private Object minimumSize; - - /* - * Can be used if dataset points to a folder. If set to true, the folder - * must have at least one file. If set to false, the folder must be empty. - * Type: boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "childItems") - private Object childItems; - - /* - * Validation activity dataset reference. - */ - @JsonProperty(value = "dataset", required = true) - private DatasetReference dataset; - - /** - * Get the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes - * the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType - * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the timeout value. - */ - public Object timeout() { - return this.timeout; - } - - /** - * Set the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes - * the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType - * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param timeout the timeout value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withTimeout(Object timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will - * be used as the default. Type: integer (or Expression with resultType integer). - * - * @return the sleep value. - */ - public Object sleep() { - return this.sleep; - } - - /** - * Set the sleep property: A delay in seconds between validation attempts. If no value is specified, 10 seconds will - * be used as the default. Type: integer (or Expression with resultType integer). - * - * @param sleep the sleep value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withSleep(Object sleep) { - this.sleep = sleep; - return this; - } - - /** - * Get the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in - * size to the value specified. Type: integer (or Expression with resultType integer). - * - * @return the minimumSize value. - */ - public Object minimumSize() { - return this.minimumSize; - } - - /** - * Set the minimumSize property: Can be used if dataset points to a file. The file must be greater than or equal in - * size to the value specified. Type: integer (or Expression with resultType integer). - * - * @param minimumSize the minimumSize value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withMinimumSize(Object minimumSize) { - this.minimumSize = minimumSize; - return this; - } - - /** - * Get the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at - * least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). - * - * @return the childItems value. - */ - public Object childItems() { - return this.childItems; - } - - /** - * Set the childItems property: Can be used if dataset points to a folder. If set to true, the folder must have at - * least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). - * - * @param childItems the childItems value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withChildItems(Object childItems) { - this.childItems = childItems; - return this; - } - - /** - * Get the dataset property: Validation activity dataset reference. - * - * @return the dataset value. - */ - public DatasetReference dataset() { - return this.dataset; - } - - /** - * Set the dataset property: Validation activity dataset reference. - * - * @param dataset the dataset value to set. - * @return the ValidationActivityTypeProperties object itself. - */ - public ValidationActivityTypeProperties withDataset(DatasetReference dataset) { - this.dataset = dataset; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (dataset() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property dataset in model ValidationActivityTypeProperties")); - } else { - dataset().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java deleted file mode 100644 index 75be57857c823..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaDatasetTypeProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Vertica Properties. */ -@Fluent -public final class VerticaDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VerticaDatasetTypeProperties.class); - - /* - * This property will be retired. Please consider using schema + table - * properties instead. - */ - @JsonProperty(value = "tableName") - private Object tableName; - - /* - * The table name of the Vertica. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "table") - private Object table; - - /* - * The schema name of the Vertica. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "schema") - private Object schema; - - /** - * Get the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @return the tableName value. - */ - public Object tableName() { - return this.tableName; - } - - /** - * Set the tableName property: This property will be retired. Please consider using schema + table properties - * instead. - * - * @param tableName the tableName value to set. - * @return the VerticaDatasetTypeProperties object itself. - */ - public VerticaDatasetTypeProperties withTableName(Object tableName) { - this.tableName = tableName; - return this; - } - - /** - * Get the table property: The table name of the Vertica. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.table; - } - - /** - * Set the table property: The table name of the Vertica. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the VerticaDatasetTypeProperties object itself. - */ - public VerticaDatasetTypeProperties withTable(Object table) { - this.table = table; - return this; - } - - /** - * Get the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schema() { - return this.schema; - } - - /** - * Set the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the VerticaDatasetTypeProperties object itself. - */ - public VerticaDatasetTypeProperties withSchema(Object schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java deleted file mode 100644 index 9a976a89a1f45..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/VerticaLinkedServiceTypeProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// 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.resourcemanager.datafactory.models.AzureKeyVaultSecretReference; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Vertica linked service properties. */ -@Fluent -public final class VerticaLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VerticaLinkedServiceTypeProperties.class); - - /* - * An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - */ - @JsonProperty(value = "connectionString") - private Object connectionString; - - /* - * The Azure key vault secret reference of password in connection string. - */ - @JsonProperty(value = "pwd") - private AzureKeyVaultSecretReference pwd; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @return the connectionString value. - */ - public Object connectionString() { - return this.connectionString; - } - - /** - * Set the connectionString property: An ODBC connection string. Type: string, SecureString or - * AzureKeyVaultSecretReference. - * - * @param connectionString the connectionString value to set. - * @return the VerticaLinkedServiceTypeProperties object itself. - */ - public VerticaLinkedServiceTypeProperties withConnectionString(Object connectionString) { - this.connectionString = connectionString; - return this; - } - - /** - * Get the pwd property: The Azure key vault secret reference of password in connection string. - * - * @return the pwd value. - */ - public AzureKeyVaultSecretReference pwd() { - return this.pwd; - } - - /** - * Set the pwd property: The Azure key vault secret reference of password in connection string. - * - * @param pwd the pwd value to set. - * @return the VerticaLinkedServiceTypeProperties object itself. - */ - public VerticaLinkedServiceTypeProperties withPwd(AzureKeyVaultSecretReference pwd) { - this.pwd = pwd; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the VerticaLinkedServiceTypeProperties object itself. - */ - public VerticaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (pwd() != null) { - pwd().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WaitActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WaitActivityTypeProperties.java deleted file mode 100644 index 0a749a8ffb656..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WaitActivityTypeProperties.java +++ /dev/null @@ -1,56 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Wait activity properties. */ -@Fluent -public final class WaitActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WaitActivityTypeProperties.class); - - /* - * Duration in seconds. - */ - @JsonProperty(value = "waitTimeInSeconds", required = true) - private Object waitTimeInSeconds; - - /** - * Get the waitTimeInSeconds property: Duration in seconds. - * - * @return the waitTimeInSeconds value. - */ - public Object waitTimeInSeconds() { - return this.waitTimeInSeconds; - } - - /** - * Set the waitTimeInSeconds property: Duration in seconds. - * - * @param waitTimeInSeconds the waitTimeInSeconds value to set. - * @return the WaitActivityTypeProperties object itself. - */ - public WaitActivityTypeProperties withWaitTimeInSeconds(Object waitTimeInSeconds) { - this.waitTimeInSeconds = waitTimeInSeconds; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (waitTimeInSeconds() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property waitTimeInSeconds in model WaitActivityTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java deleted file mode 100644 index adb14f828e836..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebActivityTypeProperties.java +++ /dev/null @@ -1,273 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.WebActivityAuthentication; -import com.azure.resourcemanager.datafactory.models.WebActivityMethod; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Web activity type properties. */ -@Fluent -public final class WebActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WebActivityTypeProperties.class); - - /* - * Rest API method for target endpoint. - */ - @JsonProperty(value = "method", required = true) - private WebActivityMethod method; - - /* - * Web activity target endpoint and path. Type: string (or Expression with - * resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * Represents the headers that will be sent to the request. For example, to - * set the language and type on a request: "headers" : { "Accept-Language": - * "en-us", "Content-Type": "application/json" }. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "headers") - private Object headers; - - /* - * Represents the payload that will be sent to the endpoint. Required for - * POST/PUT method, not allowed for GET method Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "body") - private Object body; - - /* - * Authentication method used for calling the endpoint. - */ - @JsonProperty(value = "authentication") - private WebActivityAuthentication authentication; - - /* - * List of datasets passed to web endpoint. - */ - @JsonProperty(value = "datasets") - private List datasets; - - /* - * List of linked services passed to web endpoint. - */ - @JsonProperty(value = "linkedServices") - private List linkedServices; - - /* - * The integration runtime reference. - */ - @JsonProperty(value = "connectVia") - private IntegrationRuntimeReference connectVia; - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public WebActivityMethod method() { - return this.method; - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withMethod(WebActivityMethod method) { - this.method = method; - return this; - } - - /** - * Get the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: Web activity target endpoint and path. Type: string (or Expression with resultType string). - * - * @param url the url value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the headers property: Represents the headers that will be sent to the request. For example, to set the - * language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. - * Type: string (or Expression with resultType string). - * - * @return the headers value. - */ - public Object headers() { - return this.headers; - } - - /** - * Set the headers property: Represents the headers that will be sent to the request. For example, to set the - * language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. - * Type: string (or Expression with resultType string). - * - * @param headers the headers value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withHeaders(Object headers) { - this.headers = headers; - return this; - } - - /** - * Get the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, - * not allowed for GET method Type: string (or Expression with resultType string). - * - * @return the body value. - */ - public Object body() { - return this.body; - } - - /** - * Set the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, - * not allowed for GET method Type: string (or Expression with resultType string). - * - * @param body the body value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Get the authentication property: Authentication method used for calling the endpoint. - * - * @return the authentication value. - */ - public WebActivityAuthentication authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Authentication method used for calling the endpoint. - * - * @param authentication the authentication value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withAuthentication(WebActivityAuthentication authentication) { - this.authentication = authentication; - return this; - } - - /** - * Get the datasets property: List of datasets passed to web endpoint. - * - * @return the datasets value. - */ - public List datasets() { - return this.datasets; - } - - /** - * Set the datasets property: List of datasets passed to web endpoint. - * - * @param datasets the datasets value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withDatasets(List datasets) { - this.datasets = datasets; - return this; - } - - /** - * Get the linkedServices property: List of linked services passed to web endpoint. - * - * @return the linkedServices value. - */ - public List linkedServices() { - return this.linkedServices; - } - - /** - * Set the linkedServices property: List of linked services passed to web endpoint. - * - * @param linkedServices the linkedServices value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withLinkedServices(List linkedServices) { - this.linkedServices = linkedServices; - return this; - } - - /** - * Get the connectVia property: The integration runtime reference. - * - * @return the connectVia value. - */ - public IntegrationRuntimeReference connectVia() { - return this.connectVia; - } - - /** - * Set the connectVia property: The integration runtime reference. - * - * @param connectVia the connectVia value to set. - * @return the WebActivityTypeProperties object itself. - */ - public WebActivityTypeProperties withConnectVia(IntegrationRuntimeReference connectVia) { - this.connectVia = connectVia; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (method() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property method in model WebActivityTypeProperties")); - } - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property url in model WebActivityTypeProperties")); - } - if (authentication() != null) { - authentication().validate(); - } - if (datasets() != null) { - datasets().forEach(e -> e.validate()); - } - if (linkedServices() != null) { - linkedServices().forEach(e -> e.validate()); - } - if (connectVia() != null) { - connectVia().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java deleted file mode 100644 index a0167d493e7fa..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebTableDatasetTypeProperties.java +++ /dev/null @@ -1,88 +0,0 @@ -// 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.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Web table dataset properties. */ -@Fluent -public final class WebTableDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTableDatasetTypeProperties.class); - - /* - * The zero-based index of the table in the web page. Type: integer (or - * Expression with resultType integer), minimum: 0. - */ - @JsonProperty(value = "index", required = true) - private Object index; - - /* - * The relative URL to the web page from the linked service URL. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "path") - private Object path; - - /** - * Get the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @return the index value. - */ - public Object index() { - return this.index; - } - - /** - * Set the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @param index the index value to set. - * @return the WebTableDatasetTypeProperties object itself. - */ - public WebTableDatasetTypeProperties withIndex(Object index) { - this.index = index; - return this; - } - - /** - * Get the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.path; - } - - /** - * Set the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @param path the path value to set. - * @return the WebTableDatasetTypeProperties object itself. - */ - public WebTableDatasetTypeProperties withPath(Object path) { - this.path = path; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (index() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property index in model WebTableDatasetTypeProperties")); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java deleted file mode 100644 index a300fc4e1fd49..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/WebhookActivityTypeProperties.java +++ /dev/null @@ -1,250 +0,0 @@ -// 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.resourcemanager.datafactory.models.WebActivityAuthentication; -import com.azure.resourcemanager.datafactory.models.WebhookActivityMethod; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** WebHook activity type properties. */ -@Fluent -public final class WebhookActivityTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WebhookActivityTypeProperties.class); - - /* - * Rest API method for target endpoint. - */ - @JsonProperty(value = "method", required = true) - private WebhookActivityMethod method; - - /* - * WebHook activity target endpoint and path. Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "url", required = true) - private Object url; - - /* - * The timeout within which the webhook should be called back. If there is - * no value specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - */ - @JsonProperty(value = "timeout") - private String timeout; - - /* - * Represents the headers that will be sent to the request. For example, to - * set the language and type on a request: "headers" : { "Accept-Language": - * "en-us", "Content-Type": "application/json" }. Type: string (or - * Expression with resultType string). - */ - @JsonProperty(value = "headers") - private Object headers; - - /* - * Represents the payload that will be sent to the endpoint. Required for - * POST/PUT method, not allowed for GET method Type: string (or Expression - * with resultType string). - */ - @JsonProperty(value = "body") - private Object body; - - /* - * Authentication method used for calling the endpoint. - */ - @JsonProperty(value = "authentication") - private WebActivityAuthentication authentication; - - /* - * When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by - * setting statusCode >= 400 in callback request. Default is false. Type: - * boolean (or Expression with resultType boolean). - */ - @JsonProperty(value = "reportStatusOnCallBack") - private Object reportStatusOnCallBack; - - /** - * Get the method property: Rest API method for target endpoint. - * - * @return the method value. - */ - public WebhookActivityMethod method() { - return this.method; - } - - /** - * Set the method property: Rest API method for target endpoint. - * - * @param method the method value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withMethod(WebhookActivityMethod method) { - this.method = method; - return this; - } - - /** - * Get the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType - * string). - * - * @return the url value. - */ - public Object url() { - return this.url; - } - - /** - * Set the url property: WebHook activity target endpoint and path. Type: string (or Expression with resultType - * string). - * - * @param url the url value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withUrl(Object url) { - this.url = url; - return this; - } - - /** - * Get the timeout property: The timeout within which the webhook should be called back. If there is no value - * specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @return the timeout value. - */ - public String timeout() { - return this.timeout; - } - - /** - * Set the timeout property: The timeout within which the webhook should be called back. If there is no value - * specified, it defaults to 10 minutes. Type: string. Pattern: - * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - * - * @param timeout the timeout value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withTimeout(String timeout) { - this.timeout = timeout; - return this; - } - - /** - * Get the headers property: Represents the headers that will be sent to the request. For example, to set the - * language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. - * Type: string (or Expression with resultType string). - * - * @return the headers value. - */ - public Object headers() { - return this.headers; - } - - /** - * Set the headers property: Represents the headers that will be sent to the request. For example, to set the - * language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. - * Type: string (or Expression with resultType string). - * - * @param headers the headers value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withHeaders(Object headers) { - this.headers = headers; - return this; - } - - /** - * Get the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, - * not allowed for GET method Type: string (or Expression with resultType string). - * - * @return the body value. - */ - public Object body() { - return this.body; - } - - /** - * Set the body property: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, - * not allowed for GET method Type: string (or Expression with resultType string). - * - * @param body the body value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withBody(Object body) { - this.body = body; - return this; - } - - /** - * Get the authentication property: Authentication method used for calling the endpoint. - * - * @return the authentication value. - */ - public WebActivityAuthentication authentication() { - return this.authentication; - } - - /** - * Set the authentication property: Authentication method used for calling the endpoint. - * - * @param authentication the authentication value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withAuthentication(WebActivityAuthentication authentication) { - this.authentication = authentication; - return this; - } - - /** - * Get the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback - * request. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @return the reportStatusOnCallBack value. - */ - public Object reportStatusOnCallBack() { - return this.reportStatusOnCallBack; - } - - /** - * Set the reportStatusOnCallBack property: When set to true, statusCode, output and error in callback request body - * will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback - * request. Default is false. Type: boolean (or Expression with resultType boolean). - * - * @param reportStatusOnCallBack the reportStatusOnCallBack value to set. - * @return the WebhookActivityTypeProperties object itself. - */ - public WebhookActivityTypeProperties withReportStatusOnCallBack(Object reportStatusOnCallBack) { - this.reportStatusOnCallBack = reportStatusOnCallBack; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (method() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property method in model WebhookActivityTypeProperties")); - } - if (url() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property url in model WebhookActivityTypeProperties")); - } - if (authentication() != null) { - authentication().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java deleted file mode 100644 index 49838aae9dd99..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XeroLinkedServiceTypeProperties.java +++ /dev/null @@ -1,261 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Xero Service linked service properties. */ -@Fluent -public final class XeroLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(XeroLinkedServiceTypeProperties.class); - - /* - * Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The endpoint of the Xero server. (i.e. api.xero.com) - */ - @JsonProperty(value = "host") - private Object host; - - /* - * The consumer key associated with the Xero application. - */ - @JsonProperty(value = "consumerKey") - private SecretBase consumerKey; - - /* - * The private key from the .pem file that was generated for your Xero - * private application. You must include all the text from the .pem file, - * including the Unix line endings( - * ). - */ - @JsonProperty(value = "privateKey") - private SecretBase privateKey; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the host property: The endpoint of the Xero server. (i.e. api.xero.com). - * - * @return the host value. - */ - public Object host() { - return this.host; - } - - /** - * Set the host property: The endpoint of the Xero server. (i.e. api.xero.com). - * - * @param host the host value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withHost(Object host) { - this.host = host; - return this; - } - - /** - * Get the consumerKey property: The consumer key associated with the Xero application. - * - * @return the consumerKey value. - */ - public SecretBase consumerKey() { - return this.consumerKey; - } - - /** - * Set the consumerKey property: The consumer key associated with the Xero application. - * - * @param consumerKey the consumerKey value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withConsumerKey(SecretBase consumerKey) { - this.consumerKey = consumerKey; - return this; - } - - /** - * Get the privateKey property: The private key from the .pem file that was generated for your Xero private - * application. You must include all the text from the .pem file, including the Unix line endings( ). - * - * @return the privateKey value. - */ - public SecretBase privateKey() { - return this.privateKey; - } - - /** - * Set the privateKey property: The private key from the .pem file that was generated for your Xero private - * application. You must include all the text from the .pem file, including the Unix line endings( ). - * - * @param privateKey the privateKey value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withPrivateKey(SecretBase privateKey) { - this.privateKey = privateKey; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the XeroLinkedServiceTypeProperties object itself. - */ - public XeroLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (consumerKey() != null) { - consumerKey().validate(); - } - if (privateKey() != null) { - privateKey().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java deleted file mode 100644 index cb01e8b44b876..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/XmlDatasetTypeProperties.java +++ /dev/null @@ -1,153 +0,0 @@ -// 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.resourcemanager.datafactory.models.DatasetCompression; -import com.azure.resourcemanager.datafactory.models.DatasetLocation; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Xml dataset properties. */ -@Fluent -public final class XmlDatasetTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(XmlDatasetTypeProperties.class); - - /* - * The location of the json data storage. - */ - @JsonProperty(value = "location", required = true) - private DatasetLocation location; - - /* - * The code page name of the preferred encoding. If not specified, the - * default value is UTF-8, unless BOM denotes another Unicode encoding. - * Refer to the name column of the table in the following link to set - * supported values: - * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: - * string (or Expression with resultType string). - */ - @JsonProperty(value = "encodingName") - private Object encodingName; - - /* - * The null value string. Type: string (or Expression with resultType - * string). - */ - @JsonProperty(value = "nullValue") - private Object nullValue; - - /* - * The data compression method used for the json dataset. - */ - @JsonProperty(value = "compression") - private DatasetCompression compression; - - /** - * Get the location property: The location of the json data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.location; - } - - /** - * Set the location property: The location of the json data storage. - * - * @param location the location value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withLocation(DatasetLocation location) { - this.location = location; - return this; - } - - /** - * Get the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @return the encodingName value. - */ - public Object encodingName() { - return this.encodingName; - } - - /** - * Set the encodingName property: The code page name of the preferred encoding. If not specified, the default value - * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following - * link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or - * Expression with resultType string). - * - * @param encodingName the encodingName value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withEncodingName(Object encodingName) { - this.encodingName = encodingName; - return this; - } - - /** - * Get the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @return the nullValue value. - */ - public Object nullValue() { - return this.nullValue; - } - - /** - * Set the nullValue property: The null value string. Type: string (or Expression with resultType string). - * - * @param nullValue the nullValue value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withNullValue(Object nullValue) { - this.nullValue = nullValue; - return this; - } - - /** - * Get the compression property: The data compression method used for the json dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.compression; - } - - /** - * Set the compression property: The data compression method used for the json dataset. - * - * @param compression the compression value to set. - * @return the XmlDatasetTypeProperties object itself. - */ - public XmlDatasetTypeProperties withCompression(DatasetCompression compression) { - this.compression = compression; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (location() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property location in model XmlDatasetTypeProperties")); - } else { - location().validate(); - } - if (compression() != null) { - compression().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java deleted file mode 100644 index fdb4aa678005f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ZohoLinkedServiceTypeProperties.java +++ /dev/null @@ -1,227 +0,0 @@ -// 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.resourcemanager.datafactory.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Zoho server linked service properties. */ -@Fluent -public final class ZohoLinkedServiceTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ZohoLinkedServiceTypeProperties.class); - - /* - * Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - */ - @JsonProperty(value = "connectionProperties") - private Object connectionProperties; - - /* - * The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) - */ - @JsonProperty(value = "endpoint") - private Object endpoint; - - /* - * The access token for Zoho authentication. - */ - @JsonProperty(value = "accessToken") - private SecretBase accessToken; - - /* - * Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - */ - @JsonProperty(value = "useEncryptedEndpoints") - private Object useEncryptedEndpoints; - - /* - * Specifies whether to require the host name in the server's certificate - * to match the host name of the server when connecting over SSL. The - * default value is true. - */ - @JsonProperty(value = "useHostVerification") - private Object useHostVerification; - - /* - * Specifies whether to verify the identity of the server when connecting - * over SSL. The default value is true. - */ - @JsonProperty(value = "usePeerVerification") - private Object usePeerVerification; - - /* - * The encrypted credential used for authentication. Credentials are - * encrypted using the integration runtime credential manager. Type: string - * (or Expression with resultType string). - */ - @JsonProperty(value = "encryptedCredential") - private Object encryptedCredential; - - /** - * Get the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @return the connectionProperties value. - */ - public Object connectionProperties() { - return this.connectionProperties; - } - - /** - * Set the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any - * other properties in the linked service. Type: object. - * - * @param connectionProperties the connectionProperties value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withConnectionProperties(Object connectionProperties) { - this.connectionProperties = connectionProperties; - return this; - } - - /** - * Get the endpoint property: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - * - * @return the endpoint value. - */ - public Object endpoint() { - return this.endpoint; - } - - /** - * Set the endpoint property: The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). - * - * @param endpoint the endpoint value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withEndpoint(Object endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Get the accessToken property: The access token for Zoho authentication. - * - * @return the accessToken value. - */ - public SecretBase accessToken() { - return this.accessToken; - } - - /** - * Set the accessToken property: The access token for Zoho authentication. - * - * @param accessToken the accessToken value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withAccessToken(SecretBase accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @return the useEncryptedEndpoints value. - */ - public Object useEncryptedEndpoints() { - return this.useEncryptedEndpoints; - } - - /** - * Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS. - * The default value is true. - * - * @param useEncryptedEndpoints the useEncryptedEndpoints value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - this.useEncryptedEndpoints = useEncryptedEndpoints; - return this; - } - - /** - * Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @return the useHostVerification value. - */ - public Object useHostVerification() { - return this.useHostVerification; - } - - /** - * Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to - * match the host name of the server when connecting over SSL. The default value is true. - * - * @param useHostVerification the useHostVerification value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withUseHostVerification(Object useHostVerification) { - this.useHostVerification = useHostVerification; - return this; - } - - /** - * Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @return the usePeerVerification value. - */ - public Object usePeerVerification() { - return this.usePeerVerification; - } - - /** - * Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over - * SSL. The default value is true. - * - * @param usePeerVerification the usePeerVerification value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withUsePeerVerification(Object usePeerVerification) { - this.usePeerVerification = usePeerVerification; - return this; - } - - /** - * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @return the encryptedCredential value. - */ - public Object encryptedCredential() { - return this.encryptedCredential; - } - - /** - * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted - * using the integration runtime credential manager. Type: string (or Expression with resultType string). - * - * @param encryptedCredential the encryptedCredential value to set. - * @return the ZohoLinkedServiceTypeProperties object itself. - */ - public ZohoLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) { - this.encryptedCredential = encryptedCredential; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accessToken() != null) { - accessToken().validate(); - } - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java index 798a92bb24ee5..50d05b1f29812 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoryImpl.java @@ -57,19 +57,6 @@ public FactoryIdentity identity() { return this.innerModel().identity(); } - public String etag() { - return this.innerModel().etag(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - public String provisioningState() { return this.innerModel().provisioningState(); } @@ -103,6 +90,19 @@ public PublicNetworkAccess publicNetworkAccess() { return this.innerModel().publicNetworkAccess(); } + public String etag() { + return this.innerModel().etag(); + } + + public Map additionalProperties() { + Map inner = this.innerModel().additionalProperties(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public Region region() { return Region.fromName(this.regionName()); } @@ -267,11 +267,6 @@ public FactoryImpl withIdentity(FactoryIdentity identity) { } } - public FactoryImpl withAdditionalProperties(Map additionalProperties) { - this.innerModel().withAdditionalProperties(additionalProperties); - return this; - } - public FactoryImpl withRepoConfiguration(FactoryRepoConfiguration repoConfiguration) { this.innerModel().withRepoConfiguration(repoConfiguration); return this; @@ -288,7 +283,17 @@ public FactoryImpl withEncryption(EncryptionConfiguration encryption) { } public FactoryImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - this.innerModel().withPublicNetworkAccess(publicNetworkAccess); + if (isInCreateMode()) { + this.innerModel().withPublicNetworkAccess(publicNetworkAccess); + return this; + } else { + this.updateFactoryUpdateParameters.withPublicNetworkAccess(publicNetworkAccess); + return this; + } + } + + public FactoryImpl withAdditionalProperties(Map additionalProperties) { + this.innerModel().withAdditionalProperties(additionalProperties); return this; } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java index 4b1b57cd4e0ae..fc64481ee0a88 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/PipelineResourceImpl.java @@ -28,27 +28,6 @@ public String id() { return this.innerModel().id(); } - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public Map additionalProperties() { - Map inner = this.innerModel().additionalProperties(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - public String description() { return this.innerModel().description(); } @@ -110,6 +89,27 @@ public PipelinePolicy policy() { return this.innerModel().policy(); } + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public Map additionalProperties() { + Map inner = this.innerModel().additionalProperties(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public PipelineResourceInner innerModel() { return this.innerObject; } @@ -246,11 +246,6 @@ public Response createRunWithResponse( context); } - public PipelineResourceImpl withAdditionalProperties(Map additionalProperties) { - this.innerModel().withAdditionalProperties(additionalProperties); - return this; - } - public PipelineResourceImpl withDescription(String description) { this.innerModel().withDescription(description); return this; @@ -296,6 +291,11 @@ public PipelineResourceImpl withPolicy(PipelinePolicy policy) { return this; } + public PipelineResourceImpl withAdditionalProperties(Map additionalProperties) { + this.innerModel().withAdditionalProperties(additionalProperties); + return this; + } + public PipelineResourceImpl withIfMatch(String ifMatch) { if (isInCreateMode()) { this.createIfMatch = ifMatch; 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 535ff218bd914..fdc8629464dc3 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonMwsLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,78 @@ /** Amazon Marketplace Web Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonMWS") +@JsonFlatten @Fluent -public final class AmazonMwsLinkedService extends LinkedService { +public class AmazonMwsLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonMwsLinkedService.class); /* - * Amazon Marketplace Web Service linked service properties. + * The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonMwsLinkedServiceTypeProperties innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; - /** - * Get the innerTypeProperties property: Amazon Marketplace Web Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Amazon Marketplace ID you want to retrieve data from. To retrieve + * data from multiple Marketplace IDs, separate them with a comma (,). + * (i.e. A2EUQ1WTGCTBG2) */ - private AmazonMwsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.marketplaceID", required = true) + private Object marketplaceId; - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The Amazon seller ID. + */ + @JsonProperty(value = "typeProperties.sellerID", required = true) + private Object sellerId; - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The Amazon MWS authentication token. + */ + @JsonProperty(value = "typeProperties.mwsAuthToken") + private SecretBase mwsAuthToken; - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The access key id used to access data. + */ + @JsonProperty(value = "typeProperties.accessKeyId", required = true) + private Object accessKeyId; - /** {@inheritDoc} */ - @Override - public AmazonMwsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The secret key used to access data. + */ + @JsonProperty(value = "typeProperties.secretKey") + private SecretBase secretKey; + + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; + + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the endpoint property: The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). @@ -70,7 +96,7 @@ public AmazonMwsLinkedService withAnnotations(List annotations) { * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -80,10 +106,7 @@ public Object endpoint() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -94,7 +117,7 @@ public AmazonMwsLinkedService withEndpoint(Object endpoint) { * @return the marketplaceId value. */ public Object marketplaceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().marketplaceId(); + return this.marketplaceId; } /** @@ -105,10 +128,7 @@ public Object marketplaceId() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withMarketplaceId(Object marketplaceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMarketplaceId(marketplaceId); + this.marketplaceId = marketplaceId; return this; } @@ -118,7 +138,7 @@ public AmazonMwsLinkedService withMarketplaceId(Object marketplaceId) { * @return the sellerId value. */ public Object sellerId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sellerId(); + return this.sellerId; } /** @@ -128,10 +148,7 @@ public Object sellerId() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withSellerId(Object sellerId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSellerId(sellerId); + this.sellerId = sellerId; return this; } @@ -141,7 +158,7 @@ public AmazonMwsLinkedService withSellerId(Object sellerId) { * @return the mwsAuthToken value. */ public SecretBase mwsAuthToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mwsAuthToken(); + return this.mwsAuthToken; } /** @@ -151,10 +168,7 @@ public SecretBase mwsAuthToken() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withMwsAuthToken(SecretBase mwsAuthToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMwsAuthToken(mwsAuthToken); + this.mwsAuthToken = mwsAuthToken; return this; } @@ -164,7 +178,7 @@ public AmazonMwsLinkedService withMwsAuthToken(SecretBase mwsAuthToken) { * @return the accessKeyId value. */ public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); + return this.accessKeyId; } /** @@ -174,10 +188,7 @@ public Object accessKeyId() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); + this.accessKeyId = accessKeyId; return this; } @@ -187,7 +198,7 @@ public AmazonMwsLinkedService withAccessKeyId(Object accessKeyId) { * @return the secretKey value. */ public SecretBase secretKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretKey(); + return this.secretKey; } /** @@ -197,10 +208,7 @@ public SecretBase secretKey() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withSecretKey(SecretBase secretKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretKey(secretKey); + this.secretKey = secretKey; return this; } @@ -211,7 +219,7 @@ public AmazonMwsLinkedService withSecretKey(SecretBase secretKey) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -222,10 +230,7 @@ public Object useEncryptedEndpoints() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -236,7 +241,7 @@ public AmazonMwsLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpo * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -247,10 +252,7 @@ public Object useHostVerification() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -261,7 +263,7 @@ public AmazonMwsLinkedService withUseHostVerification(Object useHostVerification * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -272,10 +274,7 @@ public Object usePeerVerification() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -286,7 +285,7 @@ public AmazonMwsLinkedService withUsePeerVerification(Object usePeerVerification * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -297,10 +296,35 @@ public Object encryptedCredential() { * @return the AmazonMwsLinkedService object itself. */ public AmazonMwsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonMwsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonMwsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonMwsLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonMwsLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonMwsLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -312,13 +336,33 @@ public AmazonMwsLinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (endpoint() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property endpoint in model AmazonMwsLinkedService")); + } + if (marketplaceId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property marketplaceId in model AmazonMwsLinkedService")); + } + if (sellerId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property sellerId in model AmazonMwsLinkedService")); + } + if (mwsAuthToken() != null) { + mwsAuthToken().validate(); + } + if (accessKeyId() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonMwsLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property accessKeyId in model AmazonMwsLinkedService")); + } + if (secretKey() != null) { + secretKey().validate(); } } } 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 4f040a05738ec..0b1108a495ad9 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Amazon Marketplace Web Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonMWSObject") +@JsonFlatten @Fluent -public final class AmazonMwsObjectDataset extends Dataset { +public class AmazonMwsObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonMwsObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the AmazonMwsObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AmazonMwsObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public AmazonMwsObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AmazonMwsObjectDataset object itself. - */ - public AmazonMwsObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public AmazonMwsObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().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 1a4b6f9520fa7..1cea3441a9c79 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** AmazonRdsForOracle database. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonRdsForOracle") +@JsonFlatten @Fluent -public final class AmazonRdsForOracleLinkedService extends LinkedService { +public class AmazonRdsForOracleLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRdsForOracleLinkedService.class); /* - * AmazonRdsForOracle database linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonRdsForLinkedServiceTypeProperties innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: AmazonRdsForOracle database linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AmazonRdsForLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForOracleLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public AmazonRdsForOracleLinkedService withAnnotations(List annotations) * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the AmazonRdsForOracleLinkedService object itself. */ public AmazonRdsForOracleLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public AmazonRdsForOracleLinkedService withConnectionString(Object connectionStr * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -105,10 +81,7 @@ public SecretBase password() { * @return the AmazonRdsForOracleLinkedService object itself. */ public AmazonRdsForOracleLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -119,7 +92,7 @@ public AmazonRdsForOracleLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the AmazonRdsForOracleLinkedService object itself. */ public AmazonRdsForOracleLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForOracleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForOracleLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForOracleLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForOracleLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,14 @@ public AmazonRdsForOracleLinkedService withEncryptedCredential(Object encryptedC @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonRdsForOracleLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model AmazonRdsForOracleLinkedService")); + } + if (password() != null) { + password().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 af7214d387758..311d408953f01 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForOracleTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,67 @@ /** The AmazonRdsForOracle database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonRdsForOracleTable") +@JsonFlatten @Fluent -public final class AmazonRdsForOracleTableDataset extends Dataset { +public class AmazonRdsForOracleTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRdsForOracleTableDataset.class); /* - * AmazonRdsForOracle dataset properties. + * The schema name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private AmazonRdsForOracleTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; + + /* + * The table name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** - * Get the innerTypeProperties property: AmazonRdsForOracle dataset properties. + * Get the schemaTypePropertiesSchema property: The schema name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). * - * @return the innerTypeProperties value. + * @return the schemaTypePropertiesSchema value. */ - private AmazonRdsForOracleTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Object schemaTypePropertiesSchema() { + return this.schemaTypePropertiesSchema; + } + + /** + * Set the schemaTypePropertiesSchema property: The schema name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). + * + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. + * @return the AmazonRdsForOracleTableDataset object itself. + */ + public AmazonRdsForOracleTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** + * Get the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with + * resultType string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } + + /** + * Set the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with + * resultType string). + * + * @param table the table value to set. + * @return the AmazonRdsForOracleTableDataset object itself. + */ + public AmazonRdsForOracleTableDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,56 +129,6 @@ public AmazonRdsForOracleTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForOracleTableDataset object itself. - */ - public AmazonRdsForOracleTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForOracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the AmazonRdsForOracle database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AmazonRdsForOracleTableDataset object itself. - */ - public AmazonRdsForOracleTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForOracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -143,8 +137,5 @@ public AmazonRdsForOracleTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 a9f1f1c5f169c..21b597aa8afc6 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,44 @@ /** Amazon RDS for SQL Server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonRdsForSqlServer") +@JsonFlatten @Fluent -public final class AmazonRdsForSqlServerLinkedService extends LinkedService { +public class AmazonRdsForSqlServerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRdsForSqlServerLinkedService.class); /* - * Amazon RDS for SQL Server linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonRdsForSqlServerLinkedServiceTypeProperties innerTypeProperties = - new AmazonRdsForSqlServerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Amazon RDS for SQL Server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The on-premises Windows authentication user name. Type: string (or + * Expression with resultType string). */ - private AmazonRdsForSqlServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The on-premises Windows authentication password. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; - /** {@inheritDoc} */ - @Override - public AmazonRdsForSqlServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Sql always encrypted properties. + */ + @JsonProperty(value = "typeProperties.alwaysEncryptedSettings") + private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -72,7 +63,7 @@ public AmazonRdsForSqlServerLinkedService withAnnotations(List annotatio * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -83,10 +74,7 @@ public Object connectionString() { * @return the AmazonRdsForSqlServerLinkedService object itself. */ public AmazonRdsForSqlServerLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -97,7 +85,7 @@ public AmazonRdsForSqlServerLinkedService withConnectionString(Object connection * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -108,10 +96,7 @@ public Object username() { * @return the AmazonRdsForSqlServerLinkedService object itself. */ public AmazonRdsForSqlServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -121,7 +106,7 @@ public AmazonRdsForSqlServerLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -131,10 +116,7 @@ public SecretBase password() { * @return the AmazonRdsForSqlServerLinkedService object itself. */ public AmazonRdsForSqlServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -145,7 +127,7 @@ public AmazonRdsForSqlServerLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -156,10 +138,7 @@ public Object encryptedCredential() { * @return the AmazonRdsForSqlServerLinkedService object itself. */ public AmazonRdsForSqlServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -169,7 +148,7 @@ public AmazonRdsForSqlServerLinkedService withEncryptedCredential(Object encrypt * @return the alwaysEncryptedSettings value. */ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); + return this.alwaysEncryptedSettings; } /** @@ -180,10 +159,35 @@ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { */ public AmazonRdsForSqlServerLinkedService withAlwaysEncryptedSettings( SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); + this.alwaysEncryptedSettings = alwaysEncryptedSettings; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForSqlServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForSqlServerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForSqlServerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRdsForSqlServerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -195,13 +199,17 @@ public AmazonRdsForSqlServerLinkedService withAlwaysEncryptedSettings( @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonRdsForSqlServerLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model AmazonRdsForSqlServerLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (alwaysEncryptedSettings() != null) { + alwaysEncryptedSettings().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 79a78631edd1d..91d2fd145b99c 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRdsForSqlServerTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,67 @@ /** The Amazon RDS for SQL Server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonRdsForSqlServerTable") +@JsonFlatten @Fluent -public final class AmazonRdsForSqlServerTableDataset extends Dataset { +public class AmazonRdsForSqlServerTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRdsForSqlServerTableDataset.class); /* - * The Amazon RDS for SQL Server dataset properties. + * The schema name of the SQL Server dataset. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties") - private AmazonRdsForSqlServerTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; + + /* + * The table name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** - * Get the innerTypeProperties property: The Amazon RDS for SQL Server dataset properties. + * Get the schemaTypePropertiesSchema property: The schema name of the SQL Server dataset. Type: string (or + * Expression with resultType string). * - * @return the innerTypeProperties value. + * @return the schemaTypePropertiesSchema value. */ - private AmazonRdsForSqlServerTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Object schemaTypePropertiesSchema() { + return this.schemaTypePropertiesSchema; + } + + /** + * Set the schemaTypePropertiesSchema property: The schema name of the SQL Server dataset. Type: string (or + * Expression with resultType string). + * + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. + * @return the AmazonRdsForSqlServerTableDataset object itself. + */ + public AmazonRdsForSqlServerTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** + * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType + * string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } + + /** + * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType + * string). + * + * @param table the table value to set. + * @return the AmazonRdsForSqlServerTableDataset object itself. + */ + public AmazonRdsForSqlServerTableDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,56 +129,6 @@ public AmazonRdsForSqlServerTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the AmazonRdsForSqlServerTableDataset object itself. - */ - public AmazonRdsForSqlServerTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the SQL Server dataset. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AmazonRdsForSqlServerTableDataset object itself. - */ - public AmazonRdsForSqlServerTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRdsForSqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -143,8 +137,5 @@ public AmazonRdsForSqlServerTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 37af72431fb18..f4d45bba0e776 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,53 @@ /** Linked service for Amazon Redshift. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonRedshift") +@JsonFlatten @Fluent -public final class AmazonRedshiftLinkedService extends LinkedService { +public class AmazonRedshiftLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRedshiftLinkedService.class); /* - * Amazon Redshift linked service properties. + * The name of the Amazon Redshift server. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonRedshiftLinkedServiceTypeProperties innerTypeProperties = - new AmazonRedshiftLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; - /** - * Get the innerTypeProperties property: Amazon Redshift linked service properties. - * - * @return the innerTypeProperties value. + /* + * The username of the Amazon Redshift source. Type: string (or Expression + * with resultType string). */ - private AmazonRedshiftLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The password of the Amazon Redshift source. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The database name of the Amazon Redshift source. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The TCP port number that the Amazon Redshift server uses to listen for + * client connections. The default value is 5439. Type: integer (or + * Expression with resultType integer). + */ + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public AmazonRedshiftLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the server property: The name of the Amazon Redshift server. Type: string (or Expression with resultType @@ -72,7 +72,7 @@ public AmazonRedshiftLinkedService withAnnotations(List annotations) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -83,10 +83,7 @@ public Object server() { * @return the AmazonRedshiftLinkedService object itself. */ public AmazonRedshiftLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -97,7 +94,7 @@ public AmazonRedshiftLinkedService withServer(Object server) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -108,10 +105,7 @@ public Object username() { * @return the AmazonRedshiftLinkedService object itself. */ public AmazonRedshiftLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -121,7 +115,7 @@ public AmazonRedshiftLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -131,10 +125,7 @@ public SecretBase password() { * @return the AmazonRedshiftLinkedService object itself. */ public AmazonRedshiftLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -145,7 +136,7 @@ public AmazonRedshiftLinkedService withPassword(SecretBase password) { * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -156,10 +147,7 @@ public Object database() { * @return the AmazonRedshiftLinkedService object itself. */ public AmazonRedshiftLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; return this; } @@ -170,7 +158,7 @@ public AmazonRedshiftLinkedService withDatabase(Object database) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -181,10 +169,7 @@ public Object port() { * @return the AmazonRedshiftLinkedService object itself. */ public AmazonRedshiftLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -195,7 +180,7 @@ public AmazonRedshiftLinkedService withPort(Object port) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -206,10 +191,35 @@ public Object encryptedCredential() { * @return the AmazonRedshiftLinkedService object itself. */ public AmazonRedshiftLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -221,13 +231,20 @@ public AmazonRedshiftLinkedService withEncryptedCredential(Object encryptedCrede @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (server() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property server in model AmazonRedshiftLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (database() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonRedshiftLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property database in model AmazonRedshiftLinkedService")); } } } 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 e289ac70c283a..cef6da621f08c 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonRedshiftTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The Amazon Redshift table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonRedshiftTable") +@JsonFlatten @Fluent -public final class AmazonRedshiftTableDataset extends Dataset { +public class AmazonRedshiftTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonRedshiftTableDataset.class); /* - * Amazon Redshift table dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private AmazonRedshiftTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Amazon Redshift table dataset properties. - * - * @return the innerTypeProperties value. + /* + * The Amazon Redshift table name. Type: string (or Expression with + * resultType string). */ - private AmazonRedshiftTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmazonRedshiftTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The Amazon Redshift schema name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public AmazonRedshiftTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the AmazonRedshiftTableDataset object itself. */ public AmazonRedshiftTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public AmazonRedshiftTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the AmazonRedshiftTableDataset object itself. */ public AmazonRedshiftTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The Amazon Redshift schema name. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The Amazon Redshift schema name. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The Amazon Redshift schema name. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the AmazonRedshiftTableDataset object itself. */ - public AmazonRedshiftTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonRedshiftTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public AmazonRedshiftTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonRedshiftTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public AmazonRedshiftTableDataset withSchemaTypePropertiesSchema(Object schema) @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 b558b63754524..d4832dd5dbba9 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonS3CompatibleLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,50 @@ /** Linked service for Amazon S3 Compatible. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonS3Compatible") +@JsonFlatten @Fluent -public final class AmazonS3CompatibleLinkedService extends LinkedService { +public class AmazonS3CompatibleLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonS3CompatibleLinkedService.class); /* - * Amazon S3 Compatible linked service properties. + * The access key identifier of the Amazon S3 Compatible Identity and + * Access Management (IAM) user. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonS3CompatibleLinkedServiceTypeProperties innerTypeProperties = - new AmazonS3CompatibleLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.accessKeyId") + private Object accessKeyId; - /** - * Get the innerTypeProperties property: Amazon S3 Compatible linked service properties. - * - * @return the innerTypeProperties value. + /* + * The secret access key of the Amazon S3 Compatible Identity and Access + * Management (IAM) user. */ - private AmazonS3CompatibleLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.secretAccessKey") + private SecretBase secretAccessKey; - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * This value specifies the endpoint to access with the Amazon S3 + * Compatible Connector. This is an optional property; change it only if + * you want to try a different service endpoint or want to switch between + * https and http. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUrl") + private Object serviceUrl; - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * If true, use S3 path-style access instead of virtual hosted-style + * access. Default value is false. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.forcePathStyle") + private Object forcePathStyle; - /** {@inheritDoc} */ - @Override - public AmazonS3CompatibleLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the accessKeyId property: The access key identifier of the Amazon S3 Compatible Identity and Access @@ -72,7 +69,7 @@ public AmazonS3CompatibleLinkedService withAnnotations(List annotations) * @return the accessKeyId value. */ public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); + return this.accessKeyId; } /** @@ -83,10 +80,7 @@ public Object accessKeyId() { * @return the AmazonS3CompatibleLinkedService object itself. */ public AmazonS3CompatibleLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); + this.accessKeyId = accessKeyId; return this; } @@ -97,7 +91,7 @@ public AmazonS3CompatibleLinkedService withAccessKeyId(Object accessKeyId) { * @return the secretAccessKey value. */ public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); + return this.secretAccessKey; } /** @@ -108,10 +102,7 @@ public SecretBase secretAccessKey() { * @return the AmazonS3CompatibleLinkedService object itself. */ public AmazonS3CompatibleLinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); + this.secretAccessKey = secretAccessKey; return this; } @@ -123,7 +114,7 @@ public AmazonS3CompatibleLinkedService withSecretAccessKey(SecretBase secretAcce * @return the serviceUrl value. */ public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); + return this.serviceUrl; } /** @@ -135,10 +126,7 @@ public Object serviceUrl() { * @return the AmazonS3CompatibleLinkedService object itself. */ public AmazonS3CompatibleLinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); + this.serviceUrl = serviceUrl; return this; } @@ -149,7 +137,7 @@ public AmazonS3CompatibleLinkedService withServiceUrl(Object serviceUrl) { * @return the forcePathStyle value. */ public Object forcePathStyle() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().forcePathStyle(); + return this.forcePathStyle; } /** @@ -160,10 +148,7 @@ public Object forcePathStyle() { * @return the AmazonS3CompatibleLinkedService object itself. */ public AmazonS3CompatibleLinkedService withForcePathStyle(Object forcePathStyle) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withForcePathStyle(forcePathStyle); + this.forcePathStyle = forcePathStyle; return this; } @@ -174,7 +159,7 @@ public AmazonS3CompatibleLinkedService withForcePathStyle(Object forcePathStyle) * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -185,10 +170,35 @@ public Object encryptedCredential() { * @return the AmazonS3CompatibleLinkedService object itself. */ public AmazonS3CompatibleLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3CompatibleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3CompatibleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3CompatibleLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3CompatibleLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3CompatibleLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -200,13 +210,8 @@ public AmazonS3CompatibleLinkedService withEncryptedCredential(Object encryptedC @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonS3CompatibleLinkedService")); - } else { - innerTypeProperties().validate(); + if (secretAccessKey() != null) { + secretAccessKey().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 d20846e2203ea..c360f0608fd6d 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonS3DatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,64 @@ /** A single Amazon Simple Storage Service (S3) object or a set of S3 objects. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonS3Object") +@JsonFlatten @Fluent -public final class AmazonS3Dataset extends Dataset { +public class AmazonS3Dataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonS3Dataset.class); /* - * Amazon S3 dataset properties. + * The name of the Amazon S3 bucket. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonS3DatasetTypeProperties innerTypeProperties = new AmazonS3DatasetTypeProperties(); + @JsonProperty(value = "typeProperties.bucketName", required = true) + private Object bucketName; - /** - * Get the innerTypeProperties property: Amazon S3 dataset properties. - * - * @return the innerTypeProperties value. + /* + * The key of the Amazon S3 object. Type: string (or Expression with + * resultType string). */ - private AmazonS3DatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.key") + private Object key; - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } + /* + * The prefix filter for the S3 object name. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.prefix") + private Object prefix; - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + /* + * The version for the S3 object. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.version") + private Object version; - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The start of S3 object's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeStart") + private Object modifiedDatetimeStart; - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The end of S3 object's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The format of files. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; - /** {@inheritDoc} */ - @Override - public AmazonS3Dataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the Amazon S3 object. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the bucketName property: The name of the Amazon S3 bucket. Type: string (or Expression with resultType @@ -92,7 +83,7 @@ public AmazonS3Dataset withFolder(DatasetFolder folder) { * @return the bucketName value. */ public Object bucketName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().bucketName(); + return this.bucketName; } /** @@ -103,10 +94,7 @@ public Object bucketName() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withBucketName(Object bucketName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withBucketName(bucketName); + this.bucketName = bucketName; return this; } @@ -116,7 +104,7 @@ public AmazonS3Dataset withBucketName(Object bucketName) { * @return the key value. */ public Object key() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().key(); + return this.key; } /** @@ -126,10 +114,7 @@ public Object key() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withKey(Object key) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withKey(key); + this.key = key; return this; } @@ -140,7 +125,7 @@ public AmazonS3Dataset withKey(Object key) { * @return the prefix value. */ public Object prefix() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().prefix(); + return this.prefix; } /** @@ -151,10 +136,7 @@ public Object prefix() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withPrefix(Object prefix) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withPrefix(prefix); + this.prefix = prefix; return this; } @@ -164,7 +146,7 @@ public AmazonS3Dataset withPrefix(Object prefix) { * @return the version value. */ public Object version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); + return this.version; } /** @@ -174,10 +156,7 @@ public Object version() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withVersion(Object version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withVersion(version); + this.version = version; return this; } @@ -188,7 +167,7 @@ public AmazonS3Dataset withVersion(Object version) { * @return the modifiedDatetimeStart value. */ public Object modifiedDatetimeStart() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeStart(); + return this.modifiedDatetimeStart; } /** @@ -199,10 +178,7 @@ public Object modifiedDatetimeStart() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeStart(modifiedDatetimeStart); + this.modifiedDatetimeStart = modifiedDatetimeStart; return this; } @@ -213,7 +189,7 @@ public AmazonS3Dataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { * @return the modifiedDatetimeEnd value. */ public Object modifiedDatetimeEnd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeEnd(); + return this.modifiedDatetimeEnd; } /** @@ -224,10 +200,7 @@ public Object modifiedDatetimeEnd() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeEnd(modifiedDatetimeEnd); + this.modifiedDatetimeEnd = modifiedDatetimeEnd; return this; } @@ -237,7 +210,7 @@ public AmazonS3Dataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { * @return the format value. */ public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); + return this.format; } /** @@ -247,10 +220,7 @@ public DatasetStorageFormat format() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); + this.format = format; return this; } @@ -260,7 +230,7 @@ public AmazonS3Dataset withFormat(DatasetStorageFormat format) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -270,10 +240,56 @@ public DatasetCompression compression() { * @return the AmazonS3Dataset object itself. */ public AmazonS3Dataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3DatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3Dataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -285,13 +301,16 @@ public AmazonS3Dataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (bucketName() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonS3Dataset")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property bucketName in model AmazonS3Dataset")); + } + if (format() != null) { + format().validate(); + } + if (compression() != null) { + compression().validate(); } } } 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 9560362755197..b6fa1e1087b5a 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AmazonS3LinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,56 @@ /** Linked service for Amazon S3. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AmazonS3") +@JsonFlatten @Fluent -public final class AmazonS3LinkedService extends LinkedService { +public class AmazonS3LinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AmazonS3LinkedService.class); /* - * Amazon S3 linked service properties. + * The authentication type of S3. Allowed value: AccessKey (default) or + * TemporarySecurityCredentials. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AmazonS3LinkedServiceTypeProperties innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; - /** - * Get the innerTypeProperties property: Amazon S3 linked service properties. - * - * @return the innerTypeProperties value. + /* + * The access key identifier of the Amazon S3 Identity and Access + * Management (IAM) user. Type: string (or Expression with resultType + * string). */ - private AmazonS3LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accessKeyId") + private Object accessKeyId; - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The secret access key of the Amazon S3 Identity and Access Management + * (IAM) user. + */ + @JsonProperty(value = "typeProperties.secretAccessKey") + private SecretBase secretAccessKey; - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * This value specifies the endpoint to access with the S3 Connector. This + * is an optional property; change it only if you want to try a different + * service endpoint or want to switch between https and http. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUrl") + private Object serviceUrl; - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The session token for the S3 temporary security credential. + */ + @JsonProperty(value = "typeProperties.sessionToken") + private SecretBase sessionToken; - /** {@inheritDoc} */ - @Override - public AmazonS3LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the authenticationType property: The authentication type of S3. Allowed value: AccessKey (default) or @@ -71,7 +75,7 @@ public AmazonS3LinkedService withAnnotations(List annotations) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -82,10 +86,7 @@ public Object authenticationType() { * @return the AmazonS3LinkedService object itself. */ public AmazonS3LinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -96,7 +97,7 @@ public AmazonS3LinkedService withAuthenticationType(Object authenticationType) { * @return the accessKeyId value. */ public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); + return this.accessKeyId; } /** @@ -107,10 +108,7 @@ public Object accessKeyId() { * @return the AmazonS3LinkedService object itself. */ public AmazonS3LinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); + this.accessKeyId = accessKeyId; return this; } @@ -121,7 +119,7 @@ public AmazonS3LinkedService withAccessKeyId(Object accessKeyId) { * @return the secretAccessKey value. */ public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); + return this.secretAccessKey; } /** @@ -132,10 +130,7 @@ public SecretBase secretAccessKey() { * @return the AmazonS3LinkedService object itself. */ public AmazonS3LinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); + this.secretAccessKey = secretAccessKey; return this; } @@ -147,7 +142,7 @@ public AmazonS3LinkedService withSecretAccessKey(SecretBase secretAccessKey) { * @return the serviceUrl value. */ public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); + return this.serviceUrl; } /** @@ -159,10 +154,7 @@ public Object serviceUrl() { * @return the AmazonS3LinkedService object itself. */ public AmazonS3LinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); + this.serviceUrl = serviceUrl; return this; } @@ -172,7 +164,7 @@ public AmazonS3LinkedService withServiceUrl(Object serviceUrl) { * @return the sessionToken value. */ public SecretBase sessionToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sessionToken(); + return this.sessionToken; } /** @@ -182,10 +174,7 @@ public SecretBase sessionToken() { * @return the AmazonS3LinkedService object itself. */ public AmazonS3LinkedService withSessionToken(SecretBase sessionToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSessionToken(sessionToken); + this.sessionToken = sessionToken; return this; } @@ -196,7 +185,7 @@ public AmazonS3LinkedService withSessionToken(SecretBase sessionToken) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -207,10 +196,35 @@ public Object encryptedCredential() { * @return the AmazonS3LinkedService object itself. */ public AmazonS3LinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AmazonS3LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3LinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3LinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AmazonS3LinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -222,13 +236,11 @@ public AmazonS3LinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AmazonS3LinkedService")); - } else { - innerTypeProperties().validate(); + if (secretAccessKey() != null) { + secretAccessKey().validate(); + } + if (sessionToken() != null) { + sessionToken().validate(); } } } 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 ec2065a156909..f919450afd5f1 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AppendVariableActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,52 +16,22 @@ /** Append value for a Variable of type Array. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AppendVariable") +@JsonFlatten @Fluent -public final class AppendVariableActivity extends ControlActivity { +public class AppendVariableActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(AppendVariableActivity.class); /* - * Append Variable activity properties. + * Name of the variable whose value needs to be appended to. */ - @JsonProperty(value = "typeProperties", required = true) - private AppendVariableActivityTypeProperties innerTypeProperties = new AppendVariableActivityTypeProperties(); + @JsonProperty(value = "typeProperties.variableName") + private String variableName; - /** - * Get the innerTypeProperties property: Append Variable activity properties. - * - * @return the innerTypeProperties value. + /* + * Value to be appended. Could be a static value or Expression */ - private AppendVariableActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AppendVariableActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + @JsonProperty(value = "typeProperties.value") + private Object value; /** * Get the variableName property: Name of the variable whose value needs to be appended to. @@ -69,7 +39,7 @@ public AppendVariableActivity withUserProperties(List userProperti * @return the variableName value. */ public String variableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableName(); + return this.variableName; } /** @@ -79,10 +49,7 @@ public String variableName() { * @return the AppendVariableActivity object itself. */ public AppendVariableActivity withVariableName(String variableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AppendVariableActivityTypeProperties(); - } - this.innerTypeProperties().withVariableName(variableName); + this.variableName = variableName; return this; } @@ -92,7 +59,7 @@ public AppendVariableActivity withVariableName(String variableName) { * @return the value value. */ public Object value() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().value(); + return this.value; } /** @@ -102,10 +69,35 @@ public Object value() { * @return the AppendVariableActivity object itself. */ public AppendVariableActivity withValue(Object value) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AppendVariableActivityTypeProperties(); - } - this.innerTypeProperties().withValue(value); + this.value = value; + return this; + } + + /** {@inheritDoc} */ + @Override + public AppendVariableActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public AppendVariableActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AppendVariableActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public AppendVariableActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -117,13 +109,5 @@ public AppendVariableActivity withValue(Object value) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AppendVariableActivity")); - } else { - innerTypeProperties().validate(); - } } } 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 5d0d5b9b342f5..3895aedcd3326 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AvroDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,29 @@ /** Avro dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Avro") +@JsonFlatten @Fluent -public final class AvroDataset extends Dataset { +public class AvroDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AvroDataset.class); /* - * Avro dataset properties. + * The location of the avro storage. */ - @JsonProperty(value = "typeProperties") - private AvroDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; - /** - * Get the innerTypeProperties property: Avro dataset properties. - * - * @return the innerTypeProperties value. + /* + * The data avroCompressionCodec. Type: string (or Expression with + * resultType string). */ - private AvroDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.avroCompressionCodec") + private Object avroCompressionCodec; - /** {@inheritDoc} */ - @Override - public AvroDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AvroDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The avroCompressionLevel property. + */ + @JsonProperty(value = "typeProperties.avroCompressionLevel") + private Integer avroCompressionLevel; /** * Get the location property: The location of the avro storage. @@ -91,7 +47,7 @@ public AvroDataset withFolder(DatasetFolder folder) { * @return the location value. */ public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); + return this.location; } /** @@ -101,10 +57,7 @@ public DatasetLocation location() { * @return the AvroDataset object itself. */ public AvroDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AvroDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); + this.location = location; return this; } @@ -115,7 +68,7 @@ public AvroDataset withLocation(DatasetLocation location) { * @return the avroCompressionCodec value. */ public Object avroCompressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().avroCompressionCodec(); + return this.avroCompressionCodec; } /** @@ -126,10 +79,7 @@ public Object avroCompressionCodec() { * @return the AvroDataset object itself. */ public AvroDataset withAvroCompressionCodec(Object avroCompressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AvroDatasetTypeProperties(); - } - this.innerTypeProperties().withAvroCompressionCodec(avroCompressionCodec); + this.avroCompressionCodec = avroCompressionCodec; return this; } @@ -139,7 +89,7 @@ public AvroDataset withAvroCompressionCodec(Object avroCompressionCodec) { * @return the avroCompressionLevel value. */ public Integer avroCompressionLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().avroCompressionLevel(); + return this.avroCompressionLevel; } /** @@ -149,10 +99,56 @@ public Integer avroCompressionLevel() { * @return the AvroDataset object itself. */ public AvroDataset withAvroCompressionLevel(Integer avroCompressionLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AvroDatasetTypeProperties(); - } - this.innerTypeProperties().withAvroCompressionLevel(avroCompressionLevel); + this.avroCompressionLevel = avroCompressionLevel; + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AvroDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +160,8 @@ public AvroDataset withAvroCompressionLevel(Integer avroCompressionLevel) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().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 0e4450be13e4c..3c86c600a41fc 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzPowerShellSetupTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,24 +15,16 @@ /** The express custom setup of installing Azure PowerShell. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzPowerShellSetup") +@JsonFlatten @Fluent -public final class AzPowerShellSetup extends CustomSetupBase { +public class AzPowerShellSetup extends CustomSetupBase { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzPowerShellSetup.class); /* - * Install Azure PowerShell type properties. + * The required version of Azure PowerShell to install. */ - @JsonProperty(value = "typeProperties", required = true) - private AzPowerShellSetupTypeProperties innerTypeProperties = new AzPowerShellSetupTypeProperties(); - - /** - * Get the innerTypeProperties property: Install Azure PowerShell type properties. - * - * @return the innerTypeProperties value. - */ - private AzPowerShellSetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.version", required = true) + private String version; /** * Get the version property: The required version of Azure PowerShell to install. @@ -40,7 +32,7 @@ private AzPowerShellSetupTypeProperties innerTypeProperties() { * @return the version value. */ public String version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); + return this.version; } /** @@ -50,10 +42,7 @@ public String version() { * @return the AzPowerShellSetup object itself. */ public AzPowerShellSetup withVersion(String version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzPowerShellSetupTypeProperties(); - } - this.innerTypeProperties().withVersion(version); + this.version = version; return this; } @@ -65,13 +54,10 @@ public AzPowerShellSetup withVersion(String version) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (version() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzPowerShellSetup")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property version in model AzPowerShellSetup")); } } } 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 6e8afa98544e2..0b1324e1cd19b 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBatchLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,57 @@ /** Azure Batch linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureBatch") +@JsonFlatten @Fluent -public final class AzureBatchLinkedService extends LinkedService { +public class AzureBatchLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBatchLinkedService.class); /* - * Azure Batch linked service properties. + * The Azure Batch account name. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureBatchLinkedServiceTypeProperties innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.accountName", required = true) + private Object accountName; - /** - * Get the innerTypeProperties property: Azure Batch linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure Batch account access key. */ - private AzureBatchLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accessKey") + private SecretBase accessKey; - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The Azure Batch URI. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.batchUri", required = true) + private Object batchUri; - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The Azure Batch pool name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.poolName", required = true) + private Object poolName; - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The Azure Storage linked service reference. + */ + @JsonProperty(value = "typeProperties.linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; - /** {@inheritDoc} */ - @Override - public AzureBatchLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the accountName property: The Azure Batch account name. Type: string (or Expression with resultType string). @@ -70,7 +75,7 @@ public AzureBatchLinkedService withAnnotations(List annotations) { * @return the accountName value. */ public Object accountName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountName(); + return this.accountName; } /** @@ -80,10 +85,7 @@ public Object accountName() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withAccountName(Object accountName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountName(accountName); + this.accountName = accountName; return this; } @@ -93,7 +95,7 @@ public AzureBatchLinkedService withAccountName(Object accountName) { * @return the accessKey value. */ public SecretBase accessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKey(); + return this.accessKey; } /** @@ -103,10 +105,7 @@ public SecretBase accessKey() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withAccessKey(SecretBase accessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKey(accessKey); + this.accessKey = accessKey; return this; } @@ -116,7 +115,7 @@ public AzureBatchLinkedService withAccessKey(SecretBase accessKey) { * @return the batchUri value. */ public Object batchUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().batchUri(); + return this.batchUri; } /** @@ -126,10 +125,7 @@ public Object batchUri() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withBatchUri(Object batchUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withBatchUri(batchUri); + this.batchUri = batchUri; return this; } @@ -139,7 +135,7 @@ public AzureBatchLinkedService withBatchUri(Object batchUri) { * @return the poolName value. */ public Object poolName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().poolName(); + return this.poolName; } /** @@ -149,10 +145,7 @@ public Object poolName() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withPoolName(Object poolName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPoolName(poolName); + this.poolName = poolName; return this; } @@ -162,7 +155,7 @@ public AzureBatchLinkedService withPoolName(Object poolName) { * @return the linkedServiceName value. */ public LinkedServiceReference linkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServiceName(); + return this.linkedServiceName; } /** @@ -172,10 +165,7 @@ public LinkedServiceReference linkedServiceName() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLinkedServiceName(linkedServiceName); + this.linkedServiceName = linkedServiceName; return this; } @@ -186,7 +176,7 @@ public AzureBatchLinkedService withLinkedServiceName(LinkedServiceReference link * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -197,10 +187,7 @@ public Object encryptedCredential() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -210,7 +197,7 @@ public AzureBatchLinkedService withEncryptedCredential(Object encryptedCredentia * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -220,10 +207,35 @@ public CredentialReference credential() { * @return the AzureBatchLinkedService object itself. */ public AzureBatchLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBatchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBatchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBatchLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBatchLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBatchLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -235,13 +247,37 @@ public AzureBatchLinkedService withCredential(CredentialReference credential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (accountName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property accountName in model AzureBatchLinkedService")); + } + if (accessKey() != null) { + accessKey().validate(); + } + if (batchUri() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property batchUri in model AzureBatchLinkedService")); + } + if (poolName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureBatchLinkedService")); + "Missing required property poolName in model AzureBatchLinkedService")); + } + if (linkedServiceName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property linkedServiceName in model AzureBatchLinkedService")); } else { - innerTypeProperties().validate(); + linkedServiceName().validate(); + } + if (credential() != null) { + credential().validate(); } } } 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 476770c8bd113..f180dedf9e9b9 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,57 @@ /** The Azure Blob storage. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureBlob") +@JsonFlatten @Fluent -public final class AzureBlobDataset extends Dataset { +public class AzureBlobDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobDataset.class); /* - * Azure Blob dataset properties. + * The path of the Azure Blob storage. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private AzureBlobDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; - /** - * Get the innerTypeProperties property: Azure Blob dataset properties. - * - * @return the innerTypeProperties value. + /* + * The root of blob path. Type: string (or Expression with resultType + * string). */ - private AzureBlobDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } + @JsonProperty(value = "typeProperties.tableRootLocation") + private Object tableRootLocation; - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + /* + * The name of the Azure Blob. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The start of Azure Blob's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeStart") + private Object modifiedDatetimeStart; - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The end of Azure Blob's modified datetime. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The format of the Azure Blob storage. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; - /** {@inheritDoc} */ - @Override - public AzureBlobDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the blob storage. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the folderPath property: The path of the Azure Blob storage. Type: string (or Expression with resultType @@ -92,7 +76,7 @@ public AzureBlobDataset withFolder(DatasetFolder folder) { * @return the folderPath value. */ public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); + return this.folderPath; } /** @@ -103,10 +87,7 @@ public Object folderPath() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); + this.folderPath = folderPath; return this; } @@ -116,7 +97,7 @@ public AzureBlobDataset withFolderPath(Object folderPath) { * @return the tableRootLocation value. */ public Object tableRootLocation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableRootLocation(); + return this.tableRootLocation; } /** @@ -126,10 +107,7 @@ public Object tableRootLocation() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withTableRootLocation(Object tableRootLocation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withTableRootLocation(tableRootLocation); + this.tableRootLocation = tableRootLocation; return this; } @@ -139,7 +117,7 @@ public AzureBlobDataset withTableRootLocation(Object tableRootLocation) { * @return the fileName value. */ public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); + return this.fileName; } /** @@ -149,10 +127,7 @@ public Object fileName() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); + this.fileName = fileName; return this; } @@ -163,7 +138,7 @@ public AzureBlobDataset withFileName(Object fileName) { * @return the modifiedDatetimeStart value. */ public Object modifiedDatetimeStart() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeStart(); + return this.modifiedDatetimeStart; } /** @@ -174,10 +149,7 @@ public Object modifiedDatetimeStart() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeStart(modifiedDatetimeStart); + this.modifiedDatetimeStart = modifiedDatetimeStart; return this; } @@ -188,7 +160,7 @@ public AzureBlobDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) * @return the modifiedDatetimeEnd value. */ public Object modifiedDatetimeEnd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeEnd(); + return this.modifiedDatetimeEnd; } /** @@ -199,10 +171,7 @@ public Object modifiedDatetimeEnd() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeEnd(modifiedDatetimeEnd); + this.modifiedDatetimeEnd = modifiedDatetimeEnd; return this; } @@ -212,7 +181,7 @@ public AzureBlobDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { * @return the format value. */ public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); + return this.format; } /** @@ -222,10 +191,7 @@ public DatasetStorageFormat format() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); + this.format = format; return this; } @@ -235,7 +201,7 @@ public AzureBlobDataset withFormat(DatasetStorageFormat format) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -245,10 +211,56 @@ public DatasetCompression compression() { * @return the AzureBlobDataset object itself. */ public AzureBlobDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -260,8 +272,11 @@ public AzureBlobDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (format() != null) { + format().validate(); + } + if (compression() != null) { + compression().validate(); } } } 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 b8e9633f78b3a..c21ca2a6087ca 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,36 @@ /** The Azure Data Lake Storage Gen2 storage. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureBlobFSFile") +@JsonFlatten @Fluent -public final class AzureBlobFSDataset extends Dataset { +public class AzureBlobFSDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobFSDataset.class); /* - * Azure Data Lake Storage Gen2 dataset properties. + * The path of the Azure Data Lake Storage Gen2 storage. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private AzureBlobFSDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; - /** - * Get the innerTypeProperties property: Azure Data Lake Storage Gen2 dataset properties. - * - * @return the innerTypeProperties value. + /* + * The name of the Azure Data Lake Storage Gen2. Type: string (or + * Expression with resultType string). */ - private AzureBlobFSDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The format of the Azure Data Lake Storage Gen2 storage. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; - /** {@inheritDoc} */ - @Override - public AzureBlobFSDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the blob storage. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the folderPath property: The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression @@ -92,7 +55,7 @@ public AzureBlobFSDataset withFolder(DatasetFolder folder) { * @return the folderPath value. */ public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); + return this.folderPath; } /** @@ -103,10 +66,7 @@ public Object folderPath() { * @return the AzureBlobFSDataset object itself. */ public AzureBlobFSDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); + this.folderPath = folderPath; return this; } @@ -117,7 +77,7 @@ public AzureBlobFSDataset withFolderPath(Object folderPath) { * @return the fileName value. */ public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); + return this.fileName; } /** @@ -128,10 +88,7 @@ public Object fileName() { * @return the AzureBlobFSDataset object itself. */ public AzureBlobFSDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); + this.fileName = fileName; return this; } @@ -141,7 +98,7 @@ public AzureBlobFSDataset withFileName(Object fileName) { * @return the format value. */ public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); + return this.format; } /** @@ -151,10 +108,7 @@ public DatasetStorageFormat format() { * @return the AzureBlobFSDataset object itself. */ public AzureBlobFSDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); + this.format = format; return this; } @@ -164,7 +118,7 @@ public AzureBlobFSDataset withFormat(DatasetStorageFormat format) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -174,10 +128,56 @@ public DatasetCompression compression() { * @return the AzureBlobFSDataset object itself. */ public AzureBlobFSDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -189,8 +189,11 @@ public AzureBlobFSDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (format() != null) { + format().validate(); + } + if (compression() != null) { + compression().validate(); } } } 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 4095e9743d246..1d51e10f42ae3 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobFSLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,69 @@ /** Azure Data Lake Storage Gen2 linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureBlobFS") +@JsonFlatten @Fluent -public final class AzureBlobFSLinkedService extends LinkedService { +public class AzureBlobFSLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobFSLinkedService.class); /* - * Azure Data Lake Storage Gen2 linked service properties. + * Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureBlobFSLinkedServiceTypeProperties innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: Azure Data Lake Storage Gen2 linked service properties. - * - * @return the innerTypeProperties value. + /* + * Account key for the Azure Data Lake Storage Gen2 service. Type: string + * (or Expression with resultType string). */ - private AzureBlobFSLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accountKey") + private Object accountKey; - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The ID of the application used to authenticate against the Azure Data + * Lake Storage Gen2 account. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The Key of the application used to authenticate against the Azure Data + * Lake Storage Gen2 account. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureBlobFSLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the url property: Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with @@ -71,7 +88,7 @@ public AzureBlobFSLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -82,10 +99,7 @@ public Object url() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -96,7 +110,7 @@ public AzureBlobFSLinkedService withUrl(Object url) { * @return the accountKey value. */ public Object accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); + return this.accountKey; } /** @@ -107,10 +121,7 @@ public Object accountKey() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withAccountKey(Object accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); + this.accountKey = accountKey; return this; } @@ -121,7 +132,7 @@ public AzureBlobFSLinkedService withAccountKey(Object accountKey) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -132,10 +143,7 @@ public Object servicePrincipalId() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -146,7 +154,7 @@ public AzureBlobFSLinkedService withServicePrincipalId(Object servicePrincipalId * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -157,10 +165,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -171,7 +176,7 @@ public AzureBlobFSLinkedService withServicePrincipalKey(SecretBase servicePrinci * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -182,10 +187,7 @@ public Object tenant() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -197,7 +199,7 @@ public AzureBlobFSLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -209,10 +211,7 @@ public Object azureCloudType() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -223,7 +222,7 @@ public AzureBlobFSLinkedService withAzureCloudType(Object azureCloudType) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -234,10 +233,7 @@ public Object encryptedCredential() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -247,7 +243,7 @@ public AzureBlobFSLinkedService withEncryptedCredential(Object encryptedCredenti * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -257,10 +253,35 @@ public CredentialReference credential() { * @return the AzureBlobFSLinkedService object itself. */ public AzureBlobFSLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobFSLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobFSLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -272,13 +293,16 @@ public AzureBlobFSLinkedService withCredential(CredentialReference credential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureBlobFSLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property url in model AzureBlobFSLinkedService")); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (credential() != null) { + credential().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 685f50030364e..a8dfd91246170 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureBlobStorageLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,97 @@ /** The azure blob storage linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureBlobStorage") +@JsonFlatten @Fluent -public final class AzureBlobStorageLinkedService extends LinkedService { +public class AzureBlobStorageLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBlobStorageLinkedService.class); /* - * Azure Blob Storage linked service properties. + * The connection string. It is mutually exclusive with sasUri, + * serviceEndpoint property. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureBlobStorageLinkedServiceTypeProperties innerTypeProperties = - new AzureBlobStorageLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure Blob Storage linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of accountKey in connection string. */ - private AzureBlobStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * SAS URI of the Azure Blob Storage resource. It is mutually exclusive + * with connectionString, serviceEndpoint property. Type: string, + * SecureString or AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Blob service endpoint of the Azure Blob Storage resource. It is mutually + * exclusive with connectionString, sasUri property. + */ + @JsonProperty(value = "typeProperties.serviceEndpoint") + private String serviceEndpoint; - /** {@inheritDoc} */ - @Override - public AzureBlobStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The ID of the service principal used to authenticate against Azure SQL + * Data Warehouse. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * The key of the service principal used to authenticate against Azure SQL + * Data Warehouse. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * Specify the kind of your storage account. Allowed values are: Storage + * (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or + * BlockBlobStorage. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.accountKind") + private String accountKind; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private String encryptedCredential; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the connectionString property: The connection string. It is mutually exclusive with sasUri, serviceEndpoint @@ -72,7 +116,7 @@ public AzureBlobStorageLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -83,10 +127,7 @@ public Object connectionString() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +137,7 @@ public AzureBlobStorageLinkedService withConnectionString(Object connectionStrin * @return the accountKey value. */ public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); + return this.accountKey; } /** @@ -106,10 +147,7 @@ public AzureKeyVaultSecretReference accountKey() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); + this.accountKey = accountKey; return this; } @@ -120,7 +158,7 @@ public AzureBlobStorageLinkedService withAccountKey(AzureKeyVaultSecretReference * @return the sasUri value. */ public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); + return this.sasUri; } /** @@ -131,10 +169,7 @@ public Object sasUri() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); + this.sasUri = sasUri; return this; } @@ -144,7 +179,7 @@ public AzureBlobStorageLinkedService withSasUri(Object sasUri) { * @return the sasToken value. */ public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); + return this.sasToken; } /** @@ -154,10 +189,7 @@ public AzureKeyVaultSecretReference sasToken() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); + this.sasToken = sasToken; return this; } @@ -168,7 +200,7 @@ public AzureBlobStorageLinkedService withSasToken(AzureKeyVaultSecretReference s * @return the serviceEndpoint value. */ public String serviceEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceEndpoint(); + return this.serviceEndpoint; } /** @@ -179,10 +211,7 @@ public String serviceEndpoint() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withServiceEndpoint(String serviceEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceEndpoint(serviceEndpoint); + this.serviceEndpoint = serviceEndpoint; return this; } @@ -193,7 +222,7 @@ public AzureBlobStorageLinkedService withServiceEndpoint(String serviceEndpoint) * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -204,10 +233,7 @@ public Object servicePrincipalId() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -218,7 +244,7 @@ public AzureBlobStorageLinkedService withServicePrincipalId(Object servicePrinci * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -229,10 +255,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -243,7 +266,7 @@ public AzureBlobStorageLinkedService withServicePrincipalKey(SecretBase serviceP * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -254,10 +277,7 @@ public Object tenant() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -269,7 +289,7 @@ public AzureBlobStorageLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -281,10 +301,7 @@ public Object azureCloudType() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -296,7 +313,7 @@ public AzureBlobStorageLinkedService withAzureCloudType(Object azureCloudType) { * @return the accountKind value. */ public String accountKind() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKind(); + return this.accountKind; } /** @@ -308,10 +325,7 @@ public String accountKind() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withAccountKind(String accountKind) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKind(accountKind); + this.accountKind = accountKind; return this; } @@ -322,7 +336,7 @@ public AzureBlobStorageLinkedService withAccountKind(String accountKind) { * @return the encryptedCredential value. */ public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -333,10 +347,7 @@ public String encryptedCredential() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -346,7 +357,7 @@ public AzureBlobStorageLinkedService withEncryptedCredential(String encryptedCre * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -356,10 +367,35 @@ public CredentialReference credential() { * @return the AzureBlobStorageLinkedService object itself. */ public AzureBlobStorageLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureBlobStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobStorageLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobStorageLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureBlobStorageLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -371,13 +407,17 @@ public AzureBlobStorageLinkedService withCredential(CredentialReference credenti @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureBlobStorageLinkedService")); - } else { - innerTypeProperties().validate(); + if (accountKey() != null) { + accountKey().validate(); + } + if (sasToken() != null) { + sasToken().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (credential() != null) { + credential().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 bb787149eafb6..7c06f2ef46633 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerCommandActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,24 +16,68 @@ /** Azure Data Explorer command activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDataExplorerCommand") +@JsonFlatten @Fluent -public final class AzureDataExplorerCommandActivity extends ExecutionActivity { +public class AzureDataExplorerCommandActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataExplorerCommandActivity.class); /* - * Azure Data Explorer command activity properties. + * A control command, according to the Azure Data Explorer command syntax. + * Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataExplorerCommandActivityTypeProperties innerTypeProperties = - new AzureDataExplorerCommandActivityTypeProperties(); + @JsonProperty(value = "typeProperties.command", required = true) + private Object command; + + /* + * Control command timeout. Type: string (or Expression with resultType + * string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) + */ + @JsonProperty(value = "typeProperties.commandTimeout") + private Object commandTimeout; + + /** + * Get the command property: A control command, according to the Azure Data Explorer command syntax. Type: string + * (or Expression with resultType string). + * + * @return the command value. + */ + public Object command() { + return this.command; + } + + /** + * Set the command property: A control command, according to the Azure Data Explorer command syntax. Type: string + * (or Expression with resultType string). + * + * @param command the command value to set. + * @return the AzureDataExplorerCommandActivity object itself. + */ + public AzureDataExplorerCommandActivity withCommand(Object command) { + this.command = command; + return this; + } + + /** + * Get the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), + * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). + * + * @return the commandTimeout value. + */ + public Object commandTimeout() { + return this.commandTimeout; + } /** - * Get the innerTypeProperties property: Azure Data Explorer command activity properties. + * Set the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), + * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). * - * @return the innerTypeProperties value. + * @param commandTimeout the commandTimeout value to set. + * @return the AzureDataExplorerCommandActivity object itself. */ - private AzureDataExplorerCommandActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureDataExplorerCommandActivity withCommandTimeout(Object commandTimeout) { + this.commandTimeout = commandTimeout; + return this; } /** {@inheritDoc} */ @@ -78,56 +122,6 @@ public AzureDataExplorerCommandActivity withUserProperties(List us return this; } - /** - * Get the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @return the command value. - */ - public Object command() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().command(); - } - - /** - * Set the command property: A control command, according to the Azure Data Explorer command syntax. Type: string - * (or Expression with resultType string). - * - * @param command the command value to set. - * @return the AzureDataExplorerCommandActivity object itself. - */ - public AzureDataExplorerCommandActivity withCommand(Object command) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerCommandActivityTypeProperties(); - } - this.innerTypeProperties().withCommand(command); - return this; - } - - /** - * Get the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @return the commandTimeout value. - */ - public Object commandTimeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandTimeout(); - } - - /** - * Set the commandTimeout property: Control command timeout. Type: string (or Expression with resultType string), - * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - * - * @param commandTimeout the commandTimeout value to set. - * @return the AzureDataExplorerCommandActivity object itself. - */ - public AzureDataExplorerCommandActivity withCommandTimeout(Object commandTimeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerCommandActivityTypeProperties(); - } - this.innerTypeProperties().withCommandTimeout(commandTimeout); - return this; - } - /** * Validates the instance. * @@ -136,13 +130,11 @@ public AzureDataExplorerCommandActivity withCommandTimeout(Object commandTimeout @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (command() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataExplorerCommandActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property command in model AzureDataExplorerCommandActivity")); } } } 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 d7832f1848aba..5b0cb16eee868 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,51 @@ /** Azure Data Explorer (Kusto) linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDataExplorer") +@JsonFlatten @Fluent -public final class AzureDataExplorerLinkedService extends LinkedService { +public class AzureDataExplorerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataExplorerLinkedService.class); /* - * Azure Data Explorer (Kusto) linked service properties. + * The endpoint of Azure Data Explorer (the engine's endpoint). URL will be + * in the format https://..kusto.windows.net. + * Type: string (or Expression with resultType string) */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataExplorerLinkedServiceTypeProperties innerTypeProperties = - new AzureDataExplorerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; - /** - * Get the innerTypeProperties property: Azure Data Explorer (Kusto) linked service properties. - * - * @return the innerTypeProperties value. + /* + * The ID of the service principal used to authenticate against Azure Data + * Explorer. Type: string (or Expression with resultType string). */ - private AzureDataExplorerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The key of the service principal used to authenticate against Kusto. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Database name for connection. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureDataExplorerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the endpoint property: The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format @@ -73,7 +71,7 @@ public AzureDataExplorerLinkedService withAnnotations(List annotations) * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -85,10 +83,7 @@ public Object endpoint() { * @return the AzureDataExplorerLinkedService object itself. */ public AzureDataExplorerLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -99,7 +94,7 @@ public AzureDataExplorerLinkedService withEndpoint(Object endpoint) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -110,10 +105,7 @@ public Object servicePrincipalId() { * @return the AzureDataExplorerLinkedService object itself. */ public AzureDataExplorerLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -123,7 +115,7 @@ public AzureDataExplorerLinkedService withServicePrincipalId(Object servicePrinc * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -133,10 +125,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureDataExplorerLinkedService object itself. */ public AzureDataExplorerLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -146,7 +135,7 @@ public AzureDataExplorerLinkedService withServicePrincipalKey(SecretBase service * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -156,10 +145,7 @@ public Object database() { * @return the AzureDataExplorerLinkedService object itself. */ public AzureDataExplorerLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; return this; } @@ -170,7 +156,7 @@ public AzureDataExplorerLinkedService withDatabase(Object database) { * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -181,10 +167,7 @@ public Object tenant() { * @return the AzureDataExplorerLinkedService object itself. */ public AzureDataExplorerLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -194,7 +177,7 @@ public AzureDataExplorerLinkedService withTenant(Object tenant) { * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -204,10 +187,35 @@ public CredentialReference credential() { * @return the AzureDataExplorerLinkedService object itself. */ public AzureDataExplorerLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataExplorerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataExplorerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataExplorerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataExplorerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -219,13 +227,23 @@ public AzureDataExplorerLinkedService withCredential(CredentialReference credent @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (endpoint() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataExplorerLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property endpoint in model AzureDataExplorerLinkedService")); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (database() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property database in model AzureDataExplorerLinkedService")); + } + if (credential() != null) { + credential().validate(); } } } 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 2a165ebff8d6e..5ab3d70c6df2c 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataExplorerDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The Azure Data Explorer (Kusto) dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDataExplorerTable") +@JsonFlatten @Fluent -public final class AzureDataExplorerTableDataset extends Dataset { +public class AzureDataExplorerTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataExplorerTableDataset.class); /* - * Azure Data Explorer (Kusto) dataset properties. + * The table name of the Azure Data Explorer database. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataExplorerDatasetTypeProperties innerTypeProperties = new AzureDataExplorerDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.table") + private Object table; /** - * Get the innerTypeProperties property: Azure Data Explorer (Kusto) dataset properties. + * Get the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with + * resultType string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } + + /** + * Set the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @param table the table value to set. + * @return the AzureDataExplorerTableDataset object itself. */ - private AzureDataExplorerDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureDataExplorerTableDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public AzureDataExplorerTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Azure Data Explorer database. Type: string (or Expression with - * resultType string). - * - * @param table the table value to set. - * @return the AzureDataExplorerTableDataset object itself. - */ - public AzureDataExplorerTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataExplorerDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -118,13 +108,5 @@ public AzureDataExplorerTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataExplorerTableDataset")); - } else { - innerTypeProperties().validate(); - } } } 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 8fc1c8418c7fa..9693a2a0db0df 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeAnalyticsLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,68 @@ /** Azure Data Lake Analytics linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDataLakeAnalytics") +@JsonFlatten @Fluent -public final class AzureDataLakeAnalyticsLinkedService extends LinkedService { +public class AzureDataLakeAnalyticsLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataLakeAnalyticsLinkedService.class); /* - * Azure Data Lake Analytics linked service properties. + * The Azure Data Lake Analytics account name. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataLakeAnalyticsLinkedServiceTypeProperties innerTypeProperties = - new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.accountName", required = true) + private Object accountName; - /** - * Get the innerTypeProperties property: Azure Data Lake Analytics linked service properties. - * - * @return the innerTypeProperties value. + /* + * The ID of the application used to authenticate against the Azure Data + * Lake Analytics account. Type: string (or Expression with resultType + * string). */ - private AzureDataLakeAnalyticsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The Key of the application used to authenticate against the Azure Data + * Lake Analytics account. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant", required = true) + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Data Lake Analytics account subscription ID (if different from Data + * Factory account). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.subscriptionId") + private Object subscriptionId; - /** {@inheritDoc} */ - @Override - public AzureDataLakeAnalyticsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Data Lake Analytics account resource group name (if different from Data + * Factory account). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.resourceGroupName") + private Object resourceGroupName; + + /* + * Azure Data Lake Analytics URI Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.dataLakeAnalyticsUri") + private Object dataLakeAnalyticsUri; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the accountName property: The Azure Data Lake Analytics account name. Type: string (or Expression with @@ -72,7 +87,7 @@ public AzureDataLakeAnalyticsLinkedService withAnnotations(List annotati * @return the accountName value. */ public Object accountName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountName(); + return this.accountName; } /** @@ -83,10 +98,7 @@ public Object accountName() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withAccountName(Object accountName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountName(accountName); + this.accountName = accountName; return this; } @@ -97,7 +109,7 @@ public AzureDataLakeAnalyticsLinkedService withAccountName(Object accountName) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -108,10 +120,7 @@ public Object servicePrincipalId() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -122,7 +131,7 @@ public AzureDataLakeAnalyticsLinkedService withServicePrincipalId(Object service * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -133,10 +142,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -147,7 +153,7 @@ public AzureDataLakeAnalyticsLinkedService withServicePrincipalKey(SecretBase se * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -158,10 +164,7 @@ public Object tenant() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -172,7 +175,7 @@ public AzureDataLakeAnalyticsLinkedService withTenant(Object tenant) { * @return the subscriptionId value. */ public Object subscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subscriptionId(); + return this.subscriptionId; } /** @@ -183,10 +186,7 @@ public Object subscriptionId() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withSubscriptionId(Object subscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubscriptionId(subscriptionId); + this.subscriptionId = subscriptionId; return this; } @@ -197,7 +197,7 @@ public AzureDataLakeAnalyticsLinkedService withSubscriptionId(Object subscriptio * @return the resourceGroupName value. */ public Object resourceGroupName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceGroupName(); + return this.resourceGroupName; } /** @@ -208,10 +208,7 @@ public Object resourceGroupName() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withResourceGroupName(Object resourceGroupName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceGroupName(resourceGroupName); + this.resourceGroupName = resourceGroupName; return this; } @@ -222,7 +219,7 @@ public AzureDataLakeAnalyticsLinkedService withResourceGroupName(Object resource * @return the dataLakeAnalyticsUri value. */ public Object dataLakeAnalyticsUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataLakeAnalyticsUri(); + return this.dataLakeAnalyticsUri; } /** @@ -233,10 +230,7 @@ public Object dataLakeAnalyticsUri() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withDataLakeAnalyticsUri(Object dataLakeAnalyticsUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDataLakeAnalyticsUri(dataLakeAnalyticsUri); + this.dataLakeAnalyticsUri = dataLakeAnalyticsUri; return this; } @@ -247,7 +241,7 @@ public AzureDataLakeAnalyticsLinkedService withDataLakeAnalyticsUri(Object dataL * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -258,10 +252,35 @@ public Object encryptedCredential() { * @return the AzureDataLakeAnalyticsLinkedService object itself. */ public AzureDataLakeAnalyticsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeAnalyticsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeAnalyticsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeAnalyticsLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeAnalyticsLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeAnalyticsLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -273,13 +292,20 @@ public AzureDataLakeAnalyticsLinkedService withEncryptedCredential(Object encryp @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (accountName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property accountName in model AzureDataLakeAnalyticsLinkedService")); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (tenant() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataLakeAnalyticsLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property tenant in model AzureDataLakeAnalyticsLinkedService")); } } } 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 7f02ad0f4c4f0..b3c8f5cef5a8c 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,37 @@ /** Azure Data Lake Store dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDataLakeStoreFile") +@JsonFlatten @Fluent -public final class AzureDataLakeStoreDataset extends Dataset { +public class AzureDataLakeStoreDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataLakeStoreDataset.class); /* - * Azure Data Lake Store dataset properties. + * Path to the folder in the Azure Data Lake Store. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private AzureDataLakeStoreDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; - /** - * Get the innerTypeProperties property: Azure Data Lake Store dataset properties. - * - * @return the innerTypeProperties value. + /* + * The name of the file in the Azure Data Lake Store. Type: string (or + * Expression with resultType string). */ - private AzureDataLakeStoreDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The format of the Data Lake Store. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the item(s) in the Azure Data Lake + * Store. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the folderPath property: Path to the folder in the Azure Data Lake Store. Type: string (or Expression with @@ -92,7 +56,7 @@ public AzureDataLakeStoreDataset withFolder(DatasetFolder folder) { * @return the folderPath value. */ public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); + return this.folderPath; } /** @@ -103,10 +67,7 @@ public Object folderPath() { * @return the AzureDataLakeStoreDataset object itself. */ public AzureDataLakeStoreDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); + this.folderPath = folderPath; return this; } @@ -117,7 +78,7 @@ public AzureDataLakeStoreDataset withFolderPath(Object folderPath) { * @return the fileName value. */ public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); + return this.fileName; } /** @@ -128,10 +89,7 @@ public Object fileName() { * @return the AzureDataLakeStoreDataset object itself. */ public AzureDataLakeStoreDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); + this.fileName = fileName; return this; } @@ -141,7 +99,7 @@ public AzureDataLakeStoreDataset withFileName(Object fileName) { * @return the format value. */ public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); + return this.format; } /** @@ -151,10 +109,7 @@ public DatasetStorageFormat format() { * @return the AzureDataLakeStoreDataset object itself. */ public AzureDataLakeStoreDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); + this.format = format; return this; } @@ -164,7 +119,7 @@ public AzureDataLakeStoreDataset withFormat(DatasetStorageFormat format) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -174,10 +129,56 @@ public DatasetCompression compression() { * @return the AzureDataLakeStoreDataset object itself. */ public AzureDataLakeStoreDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -189,8 +190,11 @@ public AzureDataLakeStoreDataset withCompression(DatasetCompression compression) @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (format() != null) { + format().validate(); + } + if (compression() != null) { + compression().validate(); } } } 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 8c4919e1b91a8..bed54ea4a05a9 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDataLakeStoreLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,82 @@ /** Azure Data Lake Store linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDataLakeStore") +@JsonFlatten @Fluent -public final class AzureDataLakeStoreLinkedService extends LinkedService { +public class AzureDataLakeStoreLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataLakeStoreLinkedService.class); /* - * Azure Data Lake Store linked service properties. + * Data Lake Store service URI. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDataLakeStoreLinkedServiceTypeProperties innerTypeProperties = - new AzureDataLakeStoreLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.dataLakeStoreUri", required = true) + private Object dataLakeStoreUri; - /** - * Get the innerTypeProperties property: Azure Data Lake Store linked service properties. - * - * @return the innerTypeProperties value. + /* + * The ID of the application used to authenticate against the Azure Data + * Lake Store account. Type: string (or Expression with resultType string). */ - private AzureDataLakeStoreLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The Key of the application used to authenticate against the Azure Data + * Lake Store account. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; - /** {@inheritDoc} */ - @Override - public AzureDataLakeStoreLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Data Lake Store account name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.accountName") + private Object accountName; + + /* + * Data Lake Store account subscription ID (if different from Data Factory + * account). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.subscriptionId") + private Object subscriptionId; + + /* + * Data Lake Store account resource group name (if different from Data + * Factory account). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.resourceGroupName") + private Object resourceGroupName; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the dataLakeStoreUri property: Data Lake Store service URI. Type: string (or Expression with resultType @@ -72,7 +101,7 @@ public AzureDataLakeStoreLinkedService withAnnotations(List annotations) * @return the dataLakeStoreUri value. */ public Object dataLakeStoreUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataLakeStoreUri(); + return this.dataLakeStoreUri; } /** @@ -83,10 +112,7 @@ public Object dataLakeStoreUri() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withDataLakeStoreUri(Object dataLakeStoreUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDataLakeStoreUri(dataLakeStoreUri); + this.dataLakeStoreUri = dataLakeStoreUri; return this; } @@ -97,7 +123,7 @@ public AzureDataLakeStoreLinkedService withDataLakeStoreUri(Object dataLakeStore * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -108,10 +134,7 @@ public Object servicePrincipalId() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -122,7 +145,7 @@ public AzureDataLakeStoreLinkedService withServicePrincipalId(Object servicePrin * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -133,10 +156,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -147,7 +167,7 @@ public AzureDataLakeStoreLinkedService withServicePrincipalKey(SecretBase servic * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -158,10 +178,7 @@ public Object tenant() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -173,7 +190,7 @@ public AzureDataLakeStoreLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -185,10 +202,7 @@ public Object azureCloudType() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -198,7 +212,7 @@ public AzureDataLakeStoreLinkedService withAzureCloudType(Object azureCloudType) * @return the accountName value. */ public Object accountName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountName(); + return this.accountName; } /** @@ -208,10 +222,7 @@ public Object accountName() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withAccountName(Object accountName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountName(accountName); + this.accountName = accountName; return this; } @@ -222,7 +233,7 @@ public AzureDataLakeStoreLinkedService withAccountName(Object accountName) { * @return the subscriptionId value. */ public Object subscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subscriptionId(); + return this.subscriptionId; } /** @@ -233,10 +244,7 @@ public Object subscriptionId() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withSubscriptionId(Object subscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubscriptionId(subscriptionId); + this.subscriptionId = subscriptionId; return this; } @@ -247,7 +255,7 @@ public AzureDataLakeStoreLinkedService withSubscriptionId(Object subscriptionId) * @return the resourceGroupName value. */ public Object resourceGroupName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceGroupName(); + return this.resourceGroupName; } /** @@ -258,10 +266,7 @@ public Object resourceGroupName() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withResourceGroupName(Object resourceGroupName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceGroupName(resourceGroupName); + this.resourceGroupName = resourceGroupName; return this; } @@ -272,7 +277,7 @@ public AzureDataLakeStoreLinkedService withResourceGroupName(Object resourceGrou * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -283,10 +288,7 @@ public Object encryptedCredential() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -296,7 +298,7 @@ public AzureDataLakeStoreLinkedService withEncryptedCredential(Object encryptedC * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -306,10 +308,35 @@ public CredentialReference credential() { * @return the AzureDataLakeStoreLinkedService object itself. */ public AzureDataLakeStoreLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDataLakeStoreLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDataLakeStoreLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -321,13 +348,17 @@ public AzureDataLakeStoreLinkedService withCredential(CredentialReference creden @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (dataLakeStoreUri() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDataLakeStoreLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property dataLakeStoreUri in model AzureDataLakeStoreLinkedService")); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (credential() != null) { + credential().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 fc28e169f16ad..d6e8ad0490111 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDeltaLakeDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,63 @@ /** Azure Databricks Delta Lake dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDatabricksDeltaLakeDataset") +@JsonFlatten @Fluent -public final class AzureDatabricksDeltaLakeDataset extends Dataset { +public class AzureDatabricksDeltaLakeDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDatabricksDeltaLakeDataset.class); /* - * Properties specific to this dataset type. + * The name of delta table. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private AzureDatabricksDeltaLakeDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.table") + private Object table; + + /* + * The database name of delta table. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database") + private Object database; + + /** + * Get the table property: The name of delta table. Type: string (or Expression with resultType string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Set the table property: The name of delta table. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param table the table value to set. + * @return the AzureDatabricksDeltaLakeDataset object itself. */ - private AzureDatabricksDeltaLakeDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureDatabricksDeltaLakeDataset withTable(Object table) { + this.table = table; + return this; + } + + /** + * Get the database property: The database name of delta table. Type: string (or Expression with resultType string). + * + * @return the database value. + */ + public Object database() { + return this.database; + } + + /** + * Set the database property: The database name of delta table. Type: string (or Expression with resultType string). + * + * @param database the database value to set. + * @return the AzureDatabricksDeltaLakeDataset object itself. + */ + public AzureDatabricksDeltaLakeDataset withDatabase(Object database) { + this.database = database; + return this; } /** {@inheritDoc} */ @@ -85,52 +125,6 @@ public AzureDatabricksDeltaLakeDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The name of delta table. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the AzureDatabricksDeltaLakeDataset object itself. - */ - public AzureDatabricksDeltaLakeDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDeltaLakeDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - - /** - * Get the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The database name of delta table. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the AzureDatabricksDeltaLakeDataset object itself. - */ - public AzureDatabricksDeltaLakeDataset withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDeltaLakeDatasetTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - /** * Validates the instance. * @@ -139,8 +133,5 @@ public AzureDatabricksDeltaLakeDataset withDatabase(Object database) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().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 6a9ad2a130e42..e2af399bbaadc 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksDetltaLakeLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,40 @@ /** Azure Databricks Delta Lake linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDatabricksDeltaLake") +@JsonFlatten @Fluent -public final class AzureDatabricksDeltaLakeLinkedService extends LinkedService { +public class AzureDatabricksDeltaLakeLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDatabricksDeltaLakeLinkedService.class); /* - * Azure Databricks Delta Lake linked service properties. + * .azuredatabricks.net, domain name of your Databricks deployment. + * Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDatabricksDetltaLakeLinkedServiceTypeProperties innerTypeProperties = - new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.domain", required = true) + private Object domain; - /** - * Get the innerTypeProperties property: Azure Databricks Delta Lake linked service properties. - * - * @return the innerTypeProperties value. + /* + * Access token for databricks REST API. Refer to + * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: + * string, SecureString or AzureKeyVaultSecretReference. */ - private AzureDatabricksDetltaLakeLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The id of an existing interactive cluster that will be used for all runs + * of this job. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clusterId") + private Object clusterId; - /** {@inheritDoc} */ - @Override - public AzureDatabricksDeltaLakeLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: @@ -72,7 +59,7 @@ public AzureDatabricksDeltaLakeLinkedService withAnnotations(List annota * @return the domain value. */ public Object domain() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().domain(); + return this.domain; } /** @@ -83,10 +70,7 @@ public Object domain() { * @return the AzureDatabricksDeltaLakeLinkedService object itself. */ public AzureDatabricksDeltaLakeLinkedService withDomain(Object domain) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDomain(domain); + this.domain = domain; return this; } @@ -98,7 +82,7 @@ public AzureDatabricksDeltaLakeLinkedService withDomain(Object domain) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -110,10 +94,7 @@ public SecretBase accessToken() { * @return the AzureDatabricksDeltaLakeLinkedService object itself. */ public AzureDatabricksDeltaLakeLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -124,7 +105,7 @@ public AzureDatabricksDeltaLakeLinkedService withAccessToken(SecretBase accessTo * @return the clusterId value. */ public Object clusterId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterId(); + return this.clusterId; } /** @@ -135,10 +116,7 @@ public Object clusterId() { * @return the AzureDatabricksDeltaLakeLinkedService object itself. */ public AzureDatabricksDeltaLakeLinkedService withClusterId(Object clusterId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterId(clusterId); + this.clusterId = clusterId; return this; } @@ -149,7 +127,7 @@ public AzureDatabricksDeltaLakeLinkedService withClusterId(Object clusterId) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -160,10 +138,35 @@ public Object encryptedCredential() { * @return the AzureDatabricksDeltaLakeLinkedService object itself. */ public AzureDatabricksDeltaLakeLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksDeltaLakeLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksDeltaLakeLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksDeltaLakeLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksDeltaLakeLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -175,14 +178,14 @@ public AzureDatabricksDeltaLakeLinkedService withEncryptedCredential(Object encr @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (domain() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model" - + " AzureDatabricksDeltaLakeLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property domain in model AzureDatabricksDeltaLakeLinkedService")); + } + if (accessToken() != null) { + accessToken().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 ffb4ce54309b6..24c16a57bf727 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 @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureDatabricksLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,53 +18,159 @@ /** Azure Databricks linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureDatabricks") +@JsonFlatten @Fluent -public final class AzureDatabricksLinkedService extends LinkedService { +public class AzureDatabricksLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDatabricksLinkedService.class); /* - * Azure Databricks linked service properties. + * .azuredatabricks.net, domain name of your Databricks deployment. + * Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureDatabricksLinkedServiceTypeProperties innerTypeProperties = - new AzureDatabricksLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.domain", required = true) + private Object domain; - /** - * Get the innerTypeProperties property: Azure Databricks linked service properties. - * - * @return the innerTypeProperties value. + /* + * Access token for databricks REST API. Refer to + * https://docs.azuredatabricks.net/api/latest/authentication.html. Type: + * string (or Expression with resultType string). */ - private AzureDatabricksLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Required to specify MSI, if using Workspace resource id for databricks + * REST API. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authentication") + private Object authentication; - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Workspace resource id for databricks REST API. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.workspaceResourceId") + private Object workspaceResourceId; - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The id of an existing interactive cluster that will be used for all runs + * of this activity. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.existingClusterId") + private Object existingClusterId; - /** {@inheritDoc} */ - @Override - public AzureDatabricksLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The id of an existing instance pool that will be used for all runs of + * this activity. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.instancePoolId") + private Object instancePoolId; + + /* + * If not using an existing interactive cluster, this specifies the Spark + * version of a new job cluster or instance pool nodes created for each run + * of this activity. Required if instancePoolId is specified. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterVersion") + private Object newClusterVersion; + + /* + * If not using an existing interactive cluster, this specifies the number + * of worker nodes to use for the new job cluster or instance pool. For new + * job clusters, this a string-formatted Int32, like '1' means numOfWorker + * is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance + * pools, this is a string-formatted Int32, and can only specify a fixed + * number of worker nodes, such as '2'. Required if newClusterVersion is + * specified. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterNumOfWorker") + private Object newClusterNumOfWorker; + + /* + * The node type of the new job cluster. This property is required if + * newClusterVersion is specified and instancePoolId is not specified. If + * instancePoolId is specified, this property is ignored. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterNodeType") + private Object newClusterNodeType; + + /* + * A set of optional, user-specified Spark configuration key-value pairs. + */ + @JsonProperty(value = "typeProperties.newClusterSparkConf") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map newClusterSparkConf; + + /* + * A set of optional, user-specified Spark environment variables key-value + * pairs. + */ + @JsonProperty(value = "typeProperties.newClusterSparkEnvVars") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map newClusterSparkEnvVars; + + /* + * Additional tags for cluster resources. This property is ignored in + * instance pool configurations. + */ + @JsonProperty(value = "typeProperties.newClusterCustomTags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map newClusterCustomTags; + + /* + * Specify a location to deliver Spark driver, worker, and event logs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterLogDestination") + private Object newClusterLogDestination; + + /* + * The driver node type for the new job cluster. This property is ignored + * in instance pool configurations. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterDriverNodeType") + private Object newClusterDriverNodeType; + + /* + * User-defined initialization scripts for the new cluster. Type: array of + * strings (or Expression with resultType array of strings). + */ + @JsonProperty(value = "typeProperties.newClusterInitScripts") + private Object newClusterInitScripts; + + /* + * Enable the elastic disk on the new cluster. This property is now + * ignored, and takes the default elastic disk behavior in Databricks + * (elastic disks are always enabled). Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.newClusterEnableElasticDisk") + private Object newClusterEnableElasticDisk; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The policy id for limiting the ability to configure clusters based on a + * user defined set of rules. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.policyId") + private Object policyId; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the domain property: <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: @@ -72,7 +179,7 @@ public AzureDatabricksLinkedService withAnnotations(List annotations) { * @return the domain value. */ public Object domain() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().domain(); + return this.domain; } /** @@ -83,10 +190,7 @@ public Object domain() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withDomain(Object domain) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDomain(domain); + this.domain = domain; return this; } @@ -98,7 +202,7 @@ public AzureDatabricksLinkedService withDomain(Object domain) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -110,10 +214,7 @@ public SecretBase accessToken() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -124,7 +225,7 @@ public AzureDatabricksLinkedService withAccessToken(SecretBase accessToken) { * @return the authentication value. */ public Object authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); + return this.authentication; } /** @@ -135,10 +236,7 @@ public Object authentication() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withAuthentication(Object authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); + this.authentication = authentication; return this; } @@ -149,7 +247,7 @@ public AzureDatabricksLinkedService withAuthentication(Object authentication) { * @return the workspaceResourceId value. */ public Object workspaceResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().workspaceResourceId(); + return this.workspaceResourceId; } /** @@ -160,10 +258,7 @@ public Object workspaceResourceId() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withWorkspaceResourceId(Object workspaceResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withWorkspaceResourceId(workspaceResourceId); + this.workspaceResourceId = workspaceResourceId; return this; } @@ -174,7 +269,7 @@ public AzureDatabricksLinkedService withWorkspaceResourceId(Object workspaceReso * @return the existingClusterId value. */ public Object existingClusterId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().existingClusterId(); + return this.existingClusterId; } /** @@ -185,10 +280,7 @@ public Object existingClusterId() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withExistingClusterId(Object existingClusterId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withExistingClusterId(existingClusterId); + this.existingClusterId = existingClusterId; return this; } @@ -199,7 +291,7 @@ public AzureDatabricksLinkedService withExistingClusterId(Object existingCluster * @return the instancePoolId value. */ public Object instancePoolId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().instancePoolId(); + return this.instancePoolId; } /** @@ -210,10 +302,7 @@ public Object instancePoolId() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withInstancePoolId(Object instancePoolId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withInstancePoolId(instancePoolId); + this.instancePoolId = instancePoolId; return this; } @@ -225,7 +314,7 @@ public AzureDatabricksLinkedService withInstancePoolId(Object instancePoolId) { * @return the newClusterVersion value. */ public Object newClusterVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterVersion(); + return this.newClusterVersion; } /** @@ -237,10 +326,7 @@ public Object newClusterVersion() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterVersion(Object newClusterVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterVersion(newClusterVersion); + this.newClusterVersion = newClusterVersion; return this; } @@ -254,7 +340,7 @@ public AzureDatabricksLinkedService withNewClusterVersion(Object newClusterVersi * @return the newClusterNumOfWorker value. */ public Object newClusterNumOfWorker() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterNumOfWorker(); + return this.newClusterNumOfWorker; } /** @@ -268,10 +354,7 @@ public Object newClusterNumOfWorker() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterNumOfWorker(Object newClusterNumOfWorker) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterNumOfWorker(newClusterNumOfWorker); + this.newClusterNumOfWorker = newClusterNumOfWorker; return this; } @@ -283,7 +366,7 @@ public AzureDatabricksLinkedService withNewClusterNumOfWorker(Object newClusterN * @return the newClusterNodeType value. */ public Object newClusterNodeType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterNodeType(); + return this.newClusterNodeType; } /** @@ -295,10 +378,7 @@ public Object newClusterNodeType() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterNodeType(Object newClusterNodeType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterNodeType(newClusterNodeType); + this.newClusterNodeType = newClusterNodeType; return this; } @@ -308,7 +388,7 @@ public AzureDatabricksLinkedService withNewClusterNodeType(Object newClusterNode * @return the newClusterSparkConf value. */ public Map newClusterSparkConf() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterSparkConf(); + return this.newClusterSparkConf; } /** @@ -318,10 +398,7 @@ public Map newClusterSparkConf() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterSparkConf(Map newClusterSparkConf) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterSparkConf(newClusterSparkConf); + this.newClusterSparkConf = newClusterSparkConf; return this; } @@ -332,7 +409,7 @@ public AzureDatabricksLinkedService withNewClusterSparkConf(Map * @return the newClusterSparkEnvVars value. */ public Map newClusterSparkEnvVars() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterSparkEnvVars(); + return this.newClusterSparkEnvVars; } /** @@ -343,10 +420,7 @@ public Map newClusterSparkEnvVars() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterSparkEnvVars(Map newClusterSparkEnvVars) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterSparkEnvVars(newClusterSparkEnvVars); + this.newClusterSparkEnvVars = newClusterSparkEnvVars; return this; } @@ -357,7 +431,7 @@ public AzureDatabricksLinkedService withNewClusterSparkEnvVars(Map newClusterCustomTags() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterCustomTags(); + return this.newClusterCustomTags; } /** @@ -368,10 +442,7 @@ public Map newClusterCustomTags() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterCustomTags(Map newClusterCustomTags) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterCustomTags(newClusterCustomTags); + this.newClusterCustomTags = newClusterCustomTags; return this; } @@ -382,7 +453,7 @@ public AzureDatabricksLinkedService withNewClusterCustomTags(Map * @return the newClusterLogDestination value. */ public Object newClusterLogDestination() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterLogDestination(); + return this.newClusterLogDestination; } /** @@ -393,10 +464,7 @@ public Object newClusterLogDestination() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterLogDestination(Object newClusterLogDestination) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterLogDestination(newClusterLogDestination); + this.newClusterLogDestination = newClusterLogDestination; return this; } @@ -407,7 +475,7 @@ public AzureDatabricksLinkedService withNewClusterLogDestination(Object newClust * @return the newClusterDriverNodeType value. */ public Object newClusterDriverNodeType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterDriverNodeType(); + return this.newClusterDriverNodeType; } /** @@ -418,10 +486,7 @@ public Object newClusterDriverNodeType() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterDriverNodeType(Object newClusterDriverNodeType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterDriverNodeType(newClusterDriverNodeType); + this.newClusterDriverNodeType = newClusterDriverNodeType; return this; } @@ -432,7 +497,7 @@ public AzureDatabricksLinkedService withNewClusterDriverNodeType(Object newClust * @return the newClusterInitScripts value. */ public Object newClusterInitScripts() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterInitScripts(); + return this.newClusterInitScripts; } /** @@ -443,10 +508,7 @@ public Object newClusterInitScripts() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterInitScripts(Object newClusterInitScripts) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterInitScripts(newClusterInitScripts); + this.newClusterInitScripts = newClusterInitScripts; return this; } @@ -458,7 +520,7 @@ public AzureDatabricksLinkedService withNewClusterInitScripts(Object newClusterI * @return the newClusterEnableElasticDisk value. */ public Object newClusterEnableElasticDisk() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newClusterEnableElasticDisk(); + return this.newClusterEnableElasticDisk; } /** @@ -470,10 +532,7 @@ public Object newClusterEnableElasticDisk() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withNewClusterEnableElasticDisk(Object newClusterEnableElasticDisk) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withNewClusterEnableElasticDisk(newClusterEnableElasticDisk); + this.newClusterEnableElasticDisk = newClusterEnableElasticDisk; return this; } @@ -484,7 +543,7 @@ public AzureDatabricksLinkedService withNewClusterEnableElasticDisk(Object newCl * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -495,10 +554,7 @@ public Object encryptedCredential() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -509,7 +565,7 @@ public AzureDatabricksLinkedService withEncryptedCredential(Object encryptedCred * @return the policyId value. */ public Object policyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().policyId(); + return this.policyId; } /** @@ -520,10 +576,7 @@ public Object policyId() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withPolicyId(Object policyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPolicyId(policyId); + this.policyId = policyId; return this; } @@ -533,7 +586,7 @@ public AzureDatabricksLinkedService withPolicyId(Object policyId) { * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -543,10 +596,35 @@ public CredentialReference credential() { * @return the AzureDatabricksLinkedService object itself. */ public AzureDatabricksLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureDatabricksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureDatabricksLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -558,13 +636,17 @@ public AzureDatabricksLinkedService withCredential(CredentialReference credentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (domain() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureDatabricksLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property domain in model AzureDatabricksLinkedService")); + } + if (accessToken() != null) { + accessToken().validate(); + } + if (credential() != null) { + credential().validate(); } } } 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 57654e8176de0..bea06751ca2ee 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFileStorageLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,80 @@ /** Azure File Storage linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureFileStorage") +@JsonFlatten @Fluent -public final class AzureFileStorageLinkedService extends LinkedService { +public class AzureFileStorageLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureFileStorageLinkedService.class); /* - * Azure File Storage linked service properties. + * Host name of the server. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureFileStorageLinkedServiceTypeProperties innerTypeProperties = - new AzureFileStorageLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host") + private Object host; - /** - * Get the innerTypeProperties property: Azure File Storage linked service properties. - * - * @return the innerTypeProperties value. + /* + * User ID to logon the server. Type: string (or Expression with resultType + * string). */ - private AzureFileStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.userId") + private Object userId; - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Password to logon the server. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The connection string. It is mutually exclusive with sasUri property. + * Type: string, SecureString or AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The Azure key vault secret reference of accountKey in connection string. + */ + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; - /** {@inheritDoc} */ - @Override - public AzureFileStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * SAS URI of the Azure File resource. It is mutually exclusive with + * connectionString property. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; + + /* + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; + + /* + * The azure file share name. It is required when auth with + * accountKey/sasToken. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.fileShare") + private Object fileShare; + + /* + * The azure file share snapshot version. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.snapshot") + private Object snapshot; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: Host name of the server. Type: string (or Expression with resultType string). @@ -71,7 +98,7 @@ public AzureFileStorageLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -81,10 +108,7 @@ public Object host() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +118,7 @@ public AzureFileStorageLinkedService withHost(Object host) { * @return the userId value. */ public Object userId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().userId(); + return this.userId; } /** @@ -104,10 +128,7 @@ public Object userId() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withUserId(Object userId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUserId(userId); + this.userId = userId; return this; } @@ -117,7 +138,7 @@ public AzureFileStorageLinkedService withUserId(Object userId) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -127,10 +148,7 @@ public SecretBase password() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -141,7 +159,7 @@ public AzureFileStorageLinkedService withPassword(SecretBase password) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -152,10 +170,7 @@ public Object connectionString() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -165,7 +180,7 @@ public AzureFileStorageLinkedService withConnectionString(Object connectionStrin * @return the accountKey value. */ public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); + return this.accountKey; } /** @@ -175,10 +190,7 @@ public AzureKeyVaultSecretReference accountKey() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); + this.accountKey = accountKey; return this; } @@ -189,7 +201,7 @@ public AzureFileStorageLinkedService withAccountKey(AzureKeyVaultSecretReference * @return the sasUri value. */ public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); + return this.sasUri; } /** @@ -200,10 +212,7 @@ public Object sasUri() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); + this.sasUri = sasUri; return this; } @@ -213,7 +222,7 @@ public AzureFileStorageLinkedService withSasUri(Object sasUri) { * @return the sasToken value. */ public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); + return this.sasToken; } /** @@ -223,10 +232,7 @@ public AzureKeyVaultSecretReference sasToken() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); + this.sasToken = sasToken; return this; } @@ -237,7 +243,7 @@ public AzureFileStorageLinkedService withSasToken(AzureKeyVaultSecretReference s * @return the fileShare value. */ public Object fileShare() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileShare(); + return this.fileShare; } /** @@ -248,10 +254,7 @@ public Object fileShare() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withFileShare(Object fileShare) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFileShare(fileShare); + this.fileShare = fileShare; return this; } @@ -262,7 +265,7 @@ public AzureFileStorageLinkedService withFileShare(Object fileShare) { * @return the snapshot value. */ public Object snapshot() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().snapshot(); + return this.snapshot; } /** @@ -273,10 +276,7 @@ public Object snapshot() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withSnapshot(Object snapshot) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSnapshot(snapshot); + this.snapshot = snapshot; return this; } @@ -287,7 +287,7 @@ public AzureFileStorageLinkedService withSnapshot(Object snapshot) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -298,10 +298,35 @@ public Object encryptedCredential() { * @return the AzureFileStorageLinkedService object itself. */ public AzureFileStorageLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFileStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFileStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFileStorageLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFileStorageLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFileStorageLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -313,13 +338,14 @@ public AzureFileStorageLinkedService withEncryptedCredential(Object encryptedCre @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureFileStorageLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().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/models/AzureFunctionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureFunctionActivity.java index 0b49366d78dc1..9f7cae898eaaf 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,66 +16,40 @@ /** Azure Function activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureFunctionActivity") +@JsonFlatten @Fluent -public final class AzureFunctionActivity extends ExecutionActivity { +public class AzureFunctionActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureFunctionActivity.class); /* - * Azure Function activity properties. + * Rest API method for target endpoint. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureFunctionActivityTypeProperties innerTypeProperties = new AzureFunctionActivityTypeProperties(); + @JsonProperty(value = "typeProperties.method", required = true) + private AzureFunctionActivityMethod method; - /** - * Get the innerTypeProperties property: Azure Function activity properties. - * - * @return the innerTypeProperties value. + /* + * Name of the Function that the Azure Function Activity will call. Type: + * string (or Expression with resultType string) */ - private AzureFunctionActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withName(String name) { - super.withName(name); - return this; - } + @JsonProperty(value = "typeProperties.functionName", required = true) + private Object functionName; - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Represents the headers that will be sent to the request. For example, to + * set the language and type on a request: "headers" : { "Accept-Language": + * "en-us", "Content-Type": "application/json" }. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.headers") + private Object headers; - /** {@inheritDoc} */ - @Override - public AzureFunctionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Represents the payload that will be sent to the endpoint. Required for + * POST/PUT method, not allowed for GET method Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.body") + private Object body; /** * Get the method property: Rest API method for target endpoint. @@ -83,7 +57,7 @@ public AzureFunctionActivity withUserProperties(List userPropertie * @return the method value. */ public AzureFunctionActivityMethod method() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().method(); + return this.method; } /** @@ -93,10 +67,7 @@ public AzureFunctionActivityMethod method() { * @return the AzureFunctionActivity object itself. */ public AzureFunctionActivity withMethod(AzureFunctionActivityMethod method) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withMethod(method); + this.method = method; return this; } @@ -107,7 +78,7 @@ public AzureFunctionActivity withMethod(AzureFunctionActivityMethod method) { * @return the functionName value. */ public Object functionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().functionName(); + return this.functionName; } /** @@ -118,10 +89,7 @@ public Object functionName() { * @return the AzureFunctionActivity object itself. */ public AzureFunctionActivity withFunctionName(Object functionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withFunctionName(functionName); + this.functionName = functionName; return this; } @@ -133,7 +101,7 @@ public AzureFunctionActivity withFunctionName(Object functionName) { * @return the headers value. */ public Object headers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); + return this.headers; } /** @@ -145,10 +113,7 @@ public Object headers() { * @return the AzureFunctionActivity object itself. */ public AzureFunctionActivity withHeaders(Object headers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withHeaders(headers); + this.headers = headers; return this; } @@ -159,7 +124,7 @@ public AzureFunctionActivity withHeaders(Object headers) { * @return the body value. */ public Object body() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().body(); + return this.body; } /** @@ -170,10 +135,49 @@ public Object body() { * @return the AzureFunctionActivity object itself. */ public AzureFunctionActivity withBody(Object body) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionActivityTypeProperties(); - } - this.innerTypeProperties().withBody(body); + this.body = body; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -185,13 +189,16 @@ public AzureFunctionActivity withBody(Object body) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (method() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property method in model AzureFunctionActivity")); + } + if (functionName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureFunctionActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property functionName in model AzureFunctionActivity")); } } } 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 2d3209d67ce59..ae772eef874e6 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureFunctionLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,50 @@ /** Azure Function linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureFunction") +@JsonFlatten @Fluent -public final class AzureFunctionLinkedService extends LinkedService { +public class AzureFunctionLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureFunctionLinkedService.class); /* - * Azure Function linked service properties. + * The endpoint of the Azure Function App. URL will be in the format + * https://.azurewebsites.net. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureFunctionLinkedServiceTypeProperties innerTypeProperties = - new AzureFunctionLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.functionAppUrl", required = true) + private Object functionAppUrl; - /** - * Get the innerTypeProperties property: Azure Function linked service properties. - * - * @return the innerTypeProperties value. + /* + * Function or Host key for Azure Function App. */ - private AzureFunctionLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.functionKey") + private SecretBase functionKey; - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Allowed token audiences for azure function. + */ + @JsonProperty(value = "typeProperties.resourceId") + private Object resourceId; - /** {@inheritDoc} */ - @Override - public AzureFunctionLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Type of authentication (Required to specify MSI) used to connect to + * AzureFunction. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authentication") + private Object authentication; /** * Get the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format @@ -72,7 +69,7 @@ public AzureFunctionLinkedService withAnnotations(List annotations) { * @return the functionAppUrl value. */ public Object functionAppUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().functionAppUrl(); + return this.functionAppUrl; } /** @@ -83,10 +80,7 @@ public Object functionAppUrl() { * @return the AzureFunctionLinkedService object itself. */ public AzureFunctionLinkedService withFunctionAppUrl(Object functionAppUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFunctionAppUrl(functionAppUrl); + this.functionAppUrl = functionAppUrl; return this; } @@ -96,7 +90,7 @@ public AzureFunctionLinkedService withFunctionAppUrl(Object functionAppUrl) { * @return the functionKey value. */ public SecretBase functionKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().functionKey(); + return this.functionKey; } /** @@ -106,10 +100,7 @@ public SecretBase functionKey() { * @return the AzureFunctionLinkedService object itself. */ public AzureFunctionLinkedService withFunctionKey(SecretBase functionKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFunctionKey(functionKey); + this.functionKey = functionKey; return this; } @@ -120,7 +111,7 @@ public AzureFunctionLinkedService withFunctionKey(SecretBase functionKey) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -131,10 +122,7 @@ public Object encryptedCredential() { * @return the AzureFunctionLinkedService object itself. */ public AzureFunctionLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -144,7 +132,7 @@ public AzureFunctionLinkedService withEncryptedCredential(Object encryptedCreden * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -154,10 +142,7 @@ public CredentialReference credential() { * @return the AzureFunctionLinkedService object itself. */ public AzureFunctionLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; return this; } @@ -167,7 +152,7 @@ public AzureFunctionLinkedService withCredential(CredentialReference credential) * @return the resourceId value. */ public Object resourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceId(); + return this.resourceId; } /** @@ -177,10 +162,7 @@ public Object resourceId() { * @return the AzureFunctionLinkedService object itself. */ public AzureFunctionLinkedService withResourceId(Object resourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceId(resourceId); + this.resourceId = resourceId; return this; } @@ -191,7 +173,7 @@ public AzureFunctionLinkedService withResourceId(Object resourceId) { * @return the authentication value. */ public Object authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); + return this.authentication; } /** @@ -202,10 +184,35 @@ public Object authentication() { * @return the AzureFunctionLinkedService object itself. */ public AzureFunctionLinkedService withAuthentication(Object authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); + this.authentication = authentication; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureFunctionLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -217,13 +224,17 @@ public AzureFunctionLinkedService withAuthentication(Object authentication) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (functionAppUrl() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureFunctionLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property functionAppUrl in model AzureFunctionLinkedService")); + } + if (functionKey() != null) { + functionKey().validate(); + } + if (credential() != null) { + credential().validate(); } } } 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 ccefb052f9b9c..39230bd4d114f 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureKeyVaultLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,23 @@ /** Azure Key Vault linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureKeyVault") +@JsonFlatten @Fluent -public final class AzureKeyVaultLinkedService extends LinkedService { +public class AzureKeyVaultLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureKeyVaultLinkedService.class); /* - * Azure Key Vault linked service properties. + * The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net + * Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureKeyVaultLinkedServiceTypeProperties innerTypeProperties = - new AzureKeyVaultLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.baseUrl", required = true) + private Object baseUrl; - /** - * Get the innerTypeProperties property: Azure Key Vault linked service properties. - * - * @return the innerTypeProperties value. + /* + * The credential reference containing authentication information. */ - private AzureKeyVaultLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureKeyVaultLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the baseUrl property: The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string @@ -72,7 +42,7 @@ public AzureKeyVaultLinkedService withAnnotations(List annotations) { * @return the baseUrl value. */ public Object baseUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseUrl(); + return this.baseUrl; } /** @@ -83,10 +53,7 @@ public Object baseUrl() { * @return the AzureKeyVaultLinkedService object itself. */ public AzureKeyVaultLinkedService withBaseUrl(Object baseUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureKeyVaultLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withBaseUrl(baseUrl); + this.baseUrl = baseUrl; return this; } @@ -96,7 +63,7 @@ public AzureKeyVaultLinkedService withBaseUrl(Object baseUrl) { * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -106,10 +73,35 @@ public CredentialReference credential() { * @return the AzureKeyVaultLinkedService object itself. */ public AzureKeyVaultLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureKeyVaultLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureKeyVaultLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureKeyVaultLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureKeyVaultLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureKeyVaultLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -121,13 +113,14 @@ public AzureKeyVaultLinkedService withCredential(CredentialReference credential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (baseUrl() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureKeyVaultLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property baseUrl in model AzureKeyVaultLinkedService")); + } + if (credential() != null) { + credential().validate(); } } } 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 a487def3da4ca..b8878d3628835 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 @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLBatchExecutionActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,67 +18,40 @@ /** Azure ML Batch Execution activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMLBatchExecution") +@JsonFlatten @Fluent -public final class AzureMLBatchExecutionActivity extends ExecutionActivity { +public class AzureMLBatchExecutionActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLBatchExecutionActivity.class); /* - * Azure ML Batch Execution activity properties. + * Key,Value pairs to be passed to the Azure ML Batch Execution Service + * endpoint. Keys must match the names of web service parameters defined in + * the published Azure ML web service. Values will be passed in the + * GlobalParameters property of the Azure ML batch execution request. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLBatchExecutionActivityTypeProperties innerTypeProperties = - new AzureMLBatchExecutionActivityTypeProperties(); + @JsonProperty(value = "typeProperties.globalParameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map globalParameters; - /** - * Get the innerTypeProperties property: Azure ML Batch Execution activity properties. - * - * @return the innerTypeProperties value. + /* + * Key,Value pairs, mapping the names of Azure ML endpoint's Web Service + * Outputs to AzureMLWebServiceFile objects specifying the output Blob + * locations. This information will be passed in the WebServiceOutputs + * property of the Azure ML batch execution request. */ - private AzureMLBatchExecutionActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + @JsonProperty(value = "typeProperties.webServiceOutputs") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map webServiceOutputs; - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLBatchExecutionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Key,Value pairs, mapping the names of Azure ML endpoint's Web Service + * Inputs to AzureMLWebServiceFile objects specifying the input Blob + * locations.. This information will be passed in the WebServiceInputs + * property of the Azure ML batch execution request. + */ + @JsonProperty(value = "typeProperties.webServiceInputs") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map webServiceInputs; /** * Get the globalParameters property: Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. @@ -87,7 +61,7 @@ public AzureMLBatchExecutionActivity withUserProperties(List userP * @return the globalParameters value. */ public Map globalParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().globalParameters(); + return this.globalParameters; } /** @@ -99,10 +73,7 @@ public Map globalParameters() { * @return the AzureMLBatchExecutionActivity object itself. */ public AzureMLBatchExecutionActivity withGlobalParameters(Map globalParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLBatchExecutionActivityTypeProperties(); - } - this.innerTypeProperties().withGlobalParameters(globalParameters); + this.globalParameters = globalParameters; return this; } @@ -114,7 +85,7 @@ public AzureMLBatchExecutionActivity withGlobalParameters(Map gl * @return the webServiceOutputs value. */ public Map webServiceOutputs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().webServiceOutputs(); + return this.webServiceOutputs; } /** @@ -126,10 +97,7 @@ public Map webServiceOutputs() { * @return the AzureMLBatchExecutionActivity object itself. */ public AzureMLBatchExecutionActivity withWebServiceOutputs(Map webServiceOutputs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLBatchExecutionActivityTypeProperties(); - } - this.innerTypeProperties().withWebServiceOutputs(webServiceOutputs); + this.webServiceOutputs = webServiceOutputs; return this; } @@ -141,7 +109,7 @@ public AzureMLBatchExecutionActivity withWebServiceOutputs(Map webServiceInputs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().webServiceInputs(); + return this.webServiceInputs; } /** @@ -153,10 +121,49 @@ public Map webServiceInputs() { * @return the AzureMLBatchExecutionActivity object itself. */ public AzureMLBatchExecutionActivity withWebServiceInputs(Map webServiceInputs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLBatchExecutionActivityTypeProperties(); - } - this.innerTypeProperties().withWebServiceInputs(webServiceInputs); + this.webServiceInputs = webServiceInputs; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLBatchExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLBatchExecutionActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLBatchExecutionActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLBatchExecutionActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLBatchExecutionActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLBatchExecutionActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -168,13 +175,25 @@ public AzureMLBatchExecutionActivity withWebServiceInputs(Map { + if (e != null) { + e.validate(); + } + }); + } + if (webServiceInputs() != null) { + webServiceInputs() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); } } } 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 16561d99dbbac..1405f1e8cea0f 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLExecutePipelineActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,67 +16,76 @@ /** Azure ML Execute Pipeline activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMLExecutePipeline") +@JsonFlatten @Fluent -public final class AzureMLExecutePipelineActivity extends ExecutionActivity { +public class AzureMLExecutePipelineActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLExecutePipelineActivity.class); /* - * Azure ML Execute Pipeline activity properties. + * ID of the published Azure ML pipeline. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLExecutePipelineActivityTypeProperties innerTypeProperties = - new AzureMLExecutePipelineActivityTypeProperties(); + @JsonProperty(value = "typeProperties.mlPipelineId") + private Object mlPipelineId; - /** - * Get the innerTypeProperties property: Azure ML Execute Pipeline activity properties. - * - * @return the innerTypeProperties value. + /* + * ID of the published Azure ML pipeline endpoint. Type: string (or + * Expression with resultType string). */ - private AzureMLExecutePipelineActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.mlPipelineEndpointId") + private Object mlPipelineEndpointId; - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * Version of the published Azure ML pipeline endpoint. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.version") + private Object version; - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Run history experiment name of the pipeline run. This information will + * be passed in the ExperimentName property of the published pipeline + * execution request. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.experimentName") + private Object experimentName; - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Key,Value pairs to be passed to the published Azure ML pipeline + * endpoint. Keys must match the names of pipeline parameters defined in + * the published pipeline. Values will be passed in the + * ParameterAssignments property of the published pipeline execution + * request. Type: object with key value pairs (or Expression with + * resultType object). + */ + @JsonProperty(value = "typeProperties.mlPipelineParameters") + private Object mlPipelineParameters; - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Dictionary used for changing data path assignments without retraining. + * Values will be passed in the dataPathAssignments property of the + * published pipeline execution request. Type: object with key value pairs + * (or Expression with resultType object). + */ + @JsonProperty(value = "typeProperties.dataPathAssignments") + private Object dataPathAssignments; - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * The parent Azure ML Service pipeline run id. This information will be + * passed in the ParentRunId property of the published pipeline execution + * request. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.mlParentRunId") + private Object mlParentRunId; - /** {@inheritDoc} */ - @Override - public AzureMLExecutePipelineActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Whether to continue execution of other steps in the PipelineRun if a + * step fails. This information will be passed in the continueOnStepFailure + * property of the published pipeline execution request. Type: boolean (or + * Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.continueOnStepFailure") + private Object continueOnStepFailure; /** * Get the mlPipelineId property: ID of the published Azure ML pipeline. Type: string (or Expression with resultType @@ -85,7 +94,7 @@ public AzureMLExecutePipelineActivity withUserProperties(List user * @return the mlPipelineId value. */ public Object mlPipelineId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlPipelineId(); + return this.mlPipelineId; } /** @@ -96,10 +105,7 @@ public Object mlPipelineId() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withMlPipelineId(Object mlPipelineId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlPipelineId(mlPipelineId); + this.mlPipelineId = mlPipelineId; return this; } @@ -110,7 +116,7 @@ public AzureMLExecutePipelineActivity withMlPipelineId(Object mlPipelineId) { * @return the mlPipelineEndpointId value. */ public Object mlPipelineEndpointId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlPipelineEndpointId(); + return this.mlPipelineEndpointId; } /** @@ -121,10 +127,7 @@ public Object mlPipelineEndpointId() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withMlPipelineEndpointId(Object mlPipelineEndpointId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlPipelineEndpointId(mlPipelineEndpointId); + this.mlPipelineEndpointId = mlPipelineEndpointId; return this; } @@ -135,7 +138,7 @@ public AzureMLExecutePipelineActivity withMlPipelineEndpointId(Object mlPipeline * @return the version value. */ public Object version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); + return this.version; } /** @@ -146,10 +149,7 @@ public Object version() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withVersion(Object version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withVersion(version); + this.version = version; return this; } @@ -161,7 +161,7 @@ public AzureMLExecutePipelineActivity withVersion(Object version) { * @return the experimentName value. */ public Object experimentName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().experimentName(); + return this.experimentName; } /** @@ -173,10 +173,7 @@ public Object experimentName() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withExperimentName(Object experimentName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withExperimentName(experimentName); + this.experimentName = experimentName; return this; } @@ -189,7 +186,7 @@ public AzureMLExecutePipelineActivity withExperimentName(Object experimentName) * @return the mlPipelineParameters value. */ public Object mlPipelineParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlPipelineParameters(); + return this.mlPipelineParameters; } /** @@ -202,10 +199,7 @@ public Object mlPipelineParameters() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withMlPipelineParameters(Object mlPipelineParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlPipelineParameters(mlPipelineParameters); + this.mlPipelineParameters = mlPipelineParameters; return this; } @@ -217,7 +211,7 @@ public AzureMLExecutePipelineActivity withMlPipelineParameters(Object mlPipeline * @return the dataPathAssignments value. */ public Object dataPathAssignments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataPathAssignments(); + return this.dataPathAssignments; } /** @@ -229,10 +223,7 @@ public Object dataPathAssignments() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withDataPathAssignments(Object dataPathAssignments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withDataPathAssignments(dataPathAssignments); + this.dataPathAssignments = dataPathAssignments; return this; } @@ -244,7 +235,7 @@ public AzureMLExecutePipelineActivity withDataPathAssignments(Object dataPathAss * @return the mlParentRunId value. */ public Object mlParentRunId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlParentRunId(); + return this.mlParentRunId; } /** @@ -256,10 +247,7 @@ public Object mlParentRunId() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withMlParentRunId(Object mlParentRunId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withMlParentRunId(mlParentRunId); + this.mlParentRunId = mlParentRunId; return this; } @@ -271,7 +259,7 @@ public AzureMLExecutePipelineActivity withMlParentRunId(Object mlParentRunId) { * @return the continueOnStepFailure value. */ public Object continueOnStepFailure() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().continueOnStepFailure(); + return this.continueOnStepFailure; } /** @@ -283,10 +271,49 @@ public Object continueOnStepFailure() { * @return the AzureMLExecutePipelineActivity object itself. */ public AzureMLExecutePipelineActivity withContinueOnStepFailure(Object continueOnStepFailure) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withContinueOnStepFailure(continueOnStepFailure); + this.continueOnStepFailure = continueOnStepFailure; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLExecutePipelineActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLExecutePipelineActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLExecutePipelineActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLExecutePipelineActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLExecutePipelineActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLExecutePipelineActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -298,13 +325,5 @@ public AzureMLExecutePipelineActivity withContinueOnStepFailure(Object continueO @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLExecutePipelineActivity")); - } else { - innerTypeProperties().validate(); - } } } 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 79c4f0120428c..ce222a0a9e1f6 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,67 @@ /** Azure ML Studio Web Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureML") +@JsonFlatten @Fluent -public final class AzureMLLinkedService extends LinkedService { +public class AzureMLLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLLinkedService.class); /* - * Azure ML Studio Web Service linked service properties. + * The Batch Execution REST URL for an Azure ML Studio Web Service + * endpoint. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLLinkedServiceTypeProperties innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.mlEndpoint", required = true) + private Object mlEndpoint; - /** - * Get the innerTypeProperties property: Azure ML Studio Web Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The API key for accessing the Azure ML model endpoint. */ - private AzureMLLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.apiKey", required = true) + private SecretBase apiKey; - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The Update Resource REST URL for an Azure ML Studio Web Service + * endpoint. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.updateResourceEndpoint") + private Object updateResourceEndpoint; - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The ID of the service principal used to authenticate against the + * ARM-based updateResourceEndpoint of an Azure ML Studio web service. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The key of the service principal used to authenticate against the + * ARM-based updateResourceEndpoint of an Azure ML Studio web service. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureMLLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * Type of authentication (Required to specify MSI) used to connect to + * AzureML. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authentication") + private Object authentication; /** * Get the mlEndpoint property: The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: @@ -71,7 +86,7 @@ public AzureMLLinkedService withAnnotations(List annotations) { * @return the mlEndpoint value. */ public Object mlEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlEndpoint(); + return this.mlEndpoint; } /** @@ -82,10 +97,7 @@ public Object mlEndpoint() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withMlEndpoint(Object mlEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMlEndpoint(mlEndpoint); + this.mlEndpoint = mlEndpoint; return this; } @@ -95,7 +107,7 @@ public AzureMLLinkedService withMlEndpoint(Object mlEndpoint) { * @return the apiKey value. */ public SecretBase apiKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiKey(); + return this.apiKey; } /** @@ -105,10 +117,7 @@ public SecretBase apiKey() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withApiKey(SecretBase apiKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiKey(apiKey); + this.apiKey = apiKey; return this; } @@ -119,7 +128,7 @@ public AzureMLLinkedService withApiKey(SecretBase apiKey) { * @return the updateResourceEndpoint value. */ public Object updateResourceEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().updateResourceEndpoint(); + return this.updateResourceEndpoint; } /** @@ -130,10 +139,7 @@ public Object updateResourceEndpoint() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withUpdateResourceEndpoint(Object updateResourceEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUpdateResourceEndpoint(updateResourceEndpoint); + this.updateResourceEndpoint = updateResourceEndpoint; return this; } @@ -144,7 +150,7 @@ public AzureMLLinkedService withUpdateResourceEndpoint(Object updateResourceEndp * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -155,10 +161,7 @@ public Object servicePrincipalId() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -169,7 +172,7 @@ public AzureMLLinkedService withServicePrincipalId(Object servicePrincipalId) { * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -180,10 +183,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -194,7 +194,7 @@ public AzureMLLinkedService withServicePrincipalKey(SecretBase servicePrincipalK * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -205,10 +205,7 @@ public Object tenant() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -219,7 +216,7 @@ public AzureMLLinkedService withTenant(Object tenant) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -230,10 +227,7 @@ public Object encryptedCredential() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -244,7 +238,7 @@ public AzureMLLinkedService withEncryptedCredential(Object encryptedCredential) * @return the authentication value. */ public Object authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); + return this.authentication; } /** @@ -255,10 +249,35 @@ public Object authentication() { * @return the AzureMLLinkedService object itself. */ public AzureMLLinkedService withAuthentication(Object authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); + this.authentication = authentication; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -270,13 +289,20 @@ public AzureMLLinkedService withAuthentication(Object authentication) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (mlEndpoint() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLLinkedService")); + new IllegalArgumentException("Missing required property mlEndpoint in model AzureMLLinkedService")); + } + if (apiKey() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property apiKey in model AzureMLLinkedService")); } else { - innerTypeProperties().validate(); + apiKey().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); } } } 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 eb14a9166c155..2ba4986ecab09 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLServiceLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,61 @@ /** Azure ML Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMLService") +@JsonFlatten @Fluent -public final class AzureMLServiceLinkedService extends LinkedService { +public class AzureMLServiceLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLServiceLinkedService.class); /* - * Azure ML Service linked service properties. + * Azure ML Service workspace subscription ID. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLServiceLinkedServiceTypeProperties innerTypeProperties = - new AzureMLServiceLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.subscriptionId", required = true) + private Object subscriptionId; - /** - * Get the innerTypeProperties property: Azure ML Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * Azure ML Service workspace resource group name. Type: string (or + * Expression with resultType string). */ - private AzureMLServiceLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.resourceGroupName", required = true) + private Object resourceGroupName; - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Azure ML Service workspace name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.mlWorkspaceName", required = true) + private Object mlWorkspaceName; - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The ID of the service principal used to authenticate against the + * endpoint of a published Azure ML Service pipeline. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The key of the service principal used to authenticate against the + * endpoint of a published Azure ML Service pipeline. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureMLServiceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the subscriptionId property: Azure ML Service workspace subscription ID. Type: string (or Expression with @@ -72,7 +80,7 @@ public AzureMLServiceLinkedService withAnnotations(List annotations) { * @return the subscriptionId value. */ public Object subscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subscriptionId(); + return this.subscriptionId; } /** @@ -83,10 +91,7 @@ public Object subscriptionId() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withSubscriptionId(Object subscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubscriptionId(subscriptionId); + this.subscriptionId = subscriptionId; return this; } @@ -97,7 +102,7 @@ public AzureMLServiceLinkedService withSubscriptionId(Object subscriptionId) { * @return the resourceGroupName value. */ public Object resourceGroupName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceGroupName(); + return this.resourceGroupName; } /** @@ -108,10 +113,7 @@ public Object resourceGroupName() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withResourceGroupName(Object resourceGroupName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withResourceGroupName(resourceGroupName); + this.resourceGroupName = resourceGroupName; return this; } @@ -122,7 +124,7 @@ public AzureMLServiceLinkedService withResourceGroupName(Object resourceGroupNam * @return the mlWorkspaceName value. */ public Object mlWorkspaceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mlWorkspaceName(); + return this.mlWorkspaceName; } /** @@ -133,10 +135,7 @@ public Object mlWorkspaceName() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withMlWorkspaceName(Object mlWorkspaceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMlWorkspaceName(mlWorkspaceName); + this.mlWorkspaceName = mlWorkspaceName; return this; } @@ -147,7 +146,7 @@ public AzureMLServiceLinkedService withMlWorkspaceName(Object mlWorkspaceName) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -158,10 +157,7 @@ public Object servicePrincipalId() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -172,7 +168,7 @@ public AzureMLServiceLinkedService withServicePrincipalId(Object servicePrincipa * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -183,10 +179,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -197,7 +190,7 @@ public AzureMLServiceLinkedService withServicePrincipalKey(SecretBase servicePri * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -208,10 +201,7 @@ public Object tenant() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -222,7 +212,7 @@ public AzureMLServiceLinkedService withTenant(Object tenant) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -233,10 +223,35 @@ public Object encryptedCredential() { * @return the AzureMLServiceLinkedService object itself. */ public AzureMLServiceLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLServiceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLServiceLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLServiceLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLServiceLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -248,13 +263,26 @@ public AzureMLServiceLinkedService withEncryptedCredential(Object encryptedCrede @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (subscriptionId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property subscriptionId in model AzureMLServiceLinkedService")); + } + if (resourceGroupName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLServiceLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property resourceGroupName in model AzureMLServiceLinkedService")); + } + if (mlWorkspaceName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property mlWorkspaceName in model AzureMLServiceLinkedService")); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); } } } 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 65e9651429845..ddbca69e746e1 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMLUpdateResourceActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,67 +16,32 @@ /** Azure ML Update Resource management activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMLUpdateResource") +@JsonFlatten @Fluent -public final class AzureMLUpdateResourceActivity extends ExecutionActivity { +public class AzureMLUpdateResourceActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMLUpdateResourceActivity.class); /* - * Azure ML Update Resource management activity properties. + * Name of the Trained Model module in the Web Service experiment to be + * updated. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMLUpdateResourceActivityTypeProperties innerTypeProperties = - new AzureMLUpdateResourceActivityTypeProperties(); + @JsonProperty(value = "typeProperties.trainedModelName", required = true) + private Object trainedModelName; - /** - * Get the innerTypeProperties property: Azure ML Update Resource management activity properties. - * - * @return the innerTypeProperties value. + /* + * Name of Azure Storage linked service holding the .ilearner file that + * will be uploaded by the update operation. */ - private AzureMLUpdateResourceActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withName(String name) { - super.withName(name); - return this; - } + @JsonProperty(value = "typeProperties.trainedModelLinkedServiceName", required = true) + private LinkedServiceReference trainedModelLinkedServiceName; - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMLUpdateResourceActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * The relative file path in trainedModelLinkedService to represent the + * .ilearner file that will be uploaded by the update operation. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.trainedModelFilePath", required = true) + private Object trainedModelFilePath; /** * Get the trainedModelName property: Name of the Trained Model module in the Web Service experiment to be updated. @@ -85,7 +50,7 @@ public AzureMLUpdateResourceActivity withUserProperties(List userP * @return the trainedModelName value. */ public Object trainedModelName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trainedModelName(); + return this.trainedModelName; } /** @@ -96,10 +61,7 @@ public Object trainedModelName() { * @return the AzureMLUpdateResourceActivity object itself. */ public AzureMLUpdateResourceActivity withTrainedModelName(Object trainedModelName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLUpdateResourceActivityTypeProperties(); - } - this.innerTypeProperties().withTrainedModelName(trainedModelName); + this.trainedModelName = trainedModelName; return this; } @@ -110,7 +72,7 @@ public AzureMLUpdateResourceActivity withTrainedModelName(Object trainedModelNam * @return the trainedModelLinkedServiceName value. */ public LinkedServiceReference trainedModelLinkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trainedModelLinkedServiceName(); + return this.trainedModelLinkedServiceName; } /** @@ -122,10 +84,7 @@ public LinkedServiceReference trainedModelLinkedServiceName() { */ public AzureMLUpdateResourceActivity withTrainedModelLinkedServiceName( LinkedServiceReference trainedModelLinkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLUpdateResourceActivityTypeProperties(); - } - this.innerTypeProperties().withTrainedModelLinkedServiceName(trainedModelLinkedServiceName); + this.trainedModelLinkedServiceName = trainedModelLinkedServiceName; return this; } @@ -137,7 +96,7 @@ public AzureMLUpdateResourceActivity withTrainedModelLinkedServiceName( * @return the trainedModelFilePath value. */ public Object trainedModelFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trainedModelFilePath(); + return this.trainedModelFilePath; } /** @@ -149,10 +108,49 @@ public Object trainedModelFilePath() { * @return the AzureMLUpdateResourceActivity object itself. */ public AzureMLUpdateResourceActivity withTrainedModelFilePath(Object trainedModelFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMLUpdateResourceActivityTypeProperties(); - } - this.innerTypeProperties().withTrainedModelFilePath(trainedModelFilePath); + this.trainedModelFilePath = trainedModelFilePath; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLUpdateResourceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLUpdateResourceActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLUpdateResourceActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLUpdateResourceActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLUpdateResourceActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMLUpdateResourceActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -164,13 +162,26 @@ public AzureMLUpdateResourceActivity withTrainedModelFilePath(Object trainedMode @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (trainedModelName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property trainedModelName in model AzureMLUpdateResourceActivity")); + } + if (trainedModelLinkedServiceName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMLUpdateResourceActivity")); + "Missing required property trainedModelLinkedServiceName in model" + + " AzureMLUpdateResourceActivity")); } else { - innerTypeProperties().validate(); + trainedModelLinkedServiceName().validate(); + } + if (trainedModelFilePath() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property trainedModelFilePath in model AzureMLUpdateResourceActivity")); } } } 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 beb9c551e4b5e..b1f35e292d081 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMariaDBLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Azure Database for MariaDB linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMariaDB") +@JsonFlatten @Fluent -public final class AzureMariaDBLinkedService extends LinkedService { +public class AzureMariaDBLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMariaDBLinkedService.class); /* - * Azure Database for MariaDB linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMariaDBLinkedServiceTypeProperties innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure Database for MariaDB linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AzureMariaDBLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMariaDBLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public AzureMariaDBLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the AzureMariaDBLinkedService object itself. */ public AzureMariaDBLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public AzureMariaDBLinkedService withConnectionString(Object connectionString) { * @return the pwd value. */ public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); + return this.pwd; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference pwd() { * @return the AzureMariaDBLinkedService object itself. */ public AzureMariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); + this.pwd = pwd; return this; } @@ -119,7 +92,7 @@ public AzureMariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the AzureMariaDBLinkedService object itself. */ public AzureMariaDBLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMariaDBLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMariaDBLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMariaDBLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMariaDBLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public AzureMariaDBLinkedService withEncryptedCredential(Object encryptedCredent @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMariaDBLinkedService")); - } else { - innerTypeProperties().validate(); + if (pwd() != null) { + pwd().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 f942dfa9551c3..18fc4f495c6df 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Azure Database for MariaDB dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMariaDBTable") +@JsonFlatten @Fluent -public final class AzureMariaDBTableDataset extends Dataset { +public class AzureMariaDBTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMariaDBTableDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the AzureMariaDBTableDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureMariaDBTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public AzureMariaDBTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the AzureMariaDBTableDataset object itself. - */ - public AzureMariaDBTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public AzureMariaDBTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 56e1d960e904a..5cd0038afe23a 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Azure MySQL database linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMySql") +@JsonFlatten @Fluent -public final class AzureMySqlLinkedService extends LinkedService { +public class AzureMySqlLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMySqlLinkedService.class); /* - * Azure MySQL database linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMySqlLinkedServiceTypeProperties innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure MySQL database linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AzureMySqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureMySqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public AzureMySqlLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the AzureMySqlLinkedService object itself. */ public AzureMySqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public AzureMySqlLinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference password() { * @return the AzureMySqlLinkedService object itself. */ public AzureMySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -119,7 +92,7 @@ public AzureMySqlLinkedService withPassword(AzureKeyVaultSecretReference passwor * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the AzureMySqlLinkedService object itself. */ public AzureMySqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMySqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMySqlLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMySqlLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureMySqlLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,14 @@ public AzureMySqlLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMySqlLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model AzureMySqlLinkedService")); + } + if (password() != null) { + password().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 74954dced5a7a..9acfaa7ee4423 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureMySqlTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,67 @@ /** The Azure MySQL database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureMySqlTable") +@JsonFlatten @Fluent -public final class AzureMySqlTableDataset extends Dataset { +public class AzureMySqlTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureMySqlTableDataset.class); /* - * Azure MySQL database dataset properties. + * The Azure MySQL database table name. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureMySqlTableDatasetTypeProperties innerTypeProperties = new AzureMySqlTableDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /* + * The name of Azure MySQL database table. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType + * string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } /** - * Get the innerTypeProperties property: Azure MySQL database dataset properties. + * Set the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the AzureMySqlTableDataset object itself. */ - private AzureMySqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureMySqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType + * string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } + + /** + * Set the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType + * string). + * + * @param table the table value to set. + * @return the AzureMySqlTableDataset object itself. + */ + public AzureMySqlTableDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,56 +129,6 @@ public AzureMySqlTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Azure MySQL database table name. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the AzureMySqlTableDataset object itself. - */ - public AzureMySqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The name of Azure MySQL database table. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the AzureMySqlTableDataset object itself. - */ - public AzureMySqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureMySqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -143,13 +137,5 @@ public AzureMySqlTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureMySqlTableDataset")); - } else { - innerTypeProperties().validate(); - } } } 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 6a74c19fcc125..363dfd07c7567 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,31 @@ /** Azure PostgreSQL linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzurePostgreSql") +@JsonFlatten @Fluent -public final class AzurePostgreSqlLinkedService extends LinkedService { +public class AzurePostgreSqlLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzurePostgreSqlLinkedService.class); /* - * Azure PostgreSQL linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzurePostgreSqlLinkedServiceTypeProperties innerTypeProperties = - new AzurePostgreSqlLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure PostgreSQL linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AzurePostgreSqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -72,7 +50,7 @@ public AzurePostgreSqlLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -83,10 +61,7 @@ public Object connectionString() { * @return the AzurePostgreSqlLinkedService object itself. */ public AzurePostgreSqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +71,7 @@ public AzurePostgreSqlLinkedService withConnectionString(Object connectionString * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -106,10 +81,7 @@ public AzureKeyVaultSecretReference password() { * @return the AzurePostgreSqlLinkedService object itself. */ public AzurePostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -120,7 +92,7 @@ public AzurePostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference pa * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -131,10 +103,35 @@ public Object encryptedCredential() { * @return the AzurePostgreSqlLinkedService object itself. */ public AzurePostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -146,13 +143,8 @@ public AzurePostgreSqlLinkedService withEncryptedCredential(Object encryptedCred @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzurePostgreSqlLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().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 cd4bde26baea9..f41a5900cb3d0 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzurePostgreSqlTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Azure PostgreSQL dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzurePostgreSqlTable") +@JsonFlatten @Fluent -public final class AzurePostgreSqlTableDataset extends Dataset { +public class AzurePostgreSqlTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzurePostgreSqlTableDataset.class); /* - * Properties specific to this dataset type. + * The table name of the Azure PostgreSQL database which includes both + * schema and table. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private AzurePostgreSqlTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Azure PostgreSQL database. Type: string (or + * Expression with resultType string). */ - private AzurePostgreSqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzurePostgreSqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Azure PostgreSQL database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: The table name of the Azure PostgreSQL database which includes both schema and table. @@ -92,7 +50,7 @@ public AzurePostgreSqlTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the AzurePostgreSqlTableDataset object itself. */ public AzurePostgreSqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -117,7 +72,7 @@ public AzurePostgreSqlTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -128,35 +83,78 @@ public Object table() { * @return the AzurePostgreSqlTableDataset object itself. */ public AzurePostgreSqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Azure PostgreSQL database. Type: string (or + * Expression with resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Azure PostgreSQL database. Type: string (or Expression with - * resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Azure PostgreSQL database. Type: string (or + * Expression with resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the AzurePostgreSqlTableDataset object itself. */ - public AzurePostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzurePostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public AzurePostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzurePostgreSqlTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public AzurePostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema) @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().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 6a6a6f3f30415..03b8ec449c605 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchIndexDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The Azure Search Index. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSearchIndex") +@JsonFlatten @Fluent -public final class AzureSearchIndexDataset extends Dataset { +public class AzureSearchIndexDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSearchIndexDataset.class); /* - * Properties specific to this dataset type. + * The name of the Azure Search Index. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSearchIndexDatasetTypeProperties innerTypeProperties = new AzureSearchIndexDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.indexName", required = true) + private Object indexName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType + * string). + * + * @return the indexName value. + */ + public Object indexName() { + return this.indexName; + } + + /** + * Set the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param indexName the indexName value to set. + * @return the AzureSearchIndexDataset object itself. */ - private AzureSearchIndexDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureSearchIndexDataset withIndexName(Object indexName) { + this.indexName = indexName; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public AzureSearchIndexDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @return the indexName value. - */ - public Object indexName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().indexName(); - } - - /** - * Set the indexName property: The name of the Azure Search Index. Type: string (or Expression with resultType - * string). - * - * @param indexName the indexName value to set. - * @return the AzureSearchIndexDataset object itself. - */ - public AzureSearchIndexDataset withIndexName(Object indexName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchIndexDatasetTypeProperties(); - } - this.innerTypeProperties().withIndexName(indexName); - return this; - } - /** * Validates the instance. * @@ -118,13 +108,11 @@ public AzureSearchIndexDataset withIndexName(Object indexName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (indexName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSearchIndexDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property indexName in model AzureSearchIndexDataset")); } } } 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 78f49418a94af..33883a5803cb7 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSearchLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Linked service for Windows Azure Search Service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSearch") +@JsonFlatten @Fluent -public final class AzureSearchLinkedService extends LinkedService { +public class AzureSearchLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSearchLinkedService.class); /* - * Windows Azure Search Service linked service properties. + * URL for Azure Search service. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSearchLinkedServiceTypeProperties innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: Windows Azure Search Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * Admin Key for Azure Search service */ - private AzureSearchLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.key") + private SecretBase key; - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSearchLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the url property: URL for Azure Search service. Type: string (or Expression with resultType string). @@ -70,7 +49,7 @@ public AzureSearchLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -80,10 +59,7 @@ public Object url() { * @return the AzureSearchLinkedService object itself. */ public AzureSearchLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -93,7 +69,7 @@ public AzureSearchLinkedService withUrl(Object url) { * @return the key value. */ public SecretBase key() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().key(); + return this.key; } /** @@ -103,10 +79,7 @@ public SecretBase key() { * @return the AzureSearchLinkedService object itself. */ public AzureSearchLinkedService withKey(SecretBase key) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withKey(key); + this.key = key; return this; } @@ -117,7 +90,7 @@ public AzureSearchLinkedService withKey(SecretBase key) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -128,10 +101,35 @@ public Object encryptedCredential() { * @return the AzureSearchLinkedService object itself. */ public AzureSearchLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSearchLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSearchLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSearchLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSearchLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSearchLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -143,13 +141,13 @@ public AzureSearchLinkedService withEncryptedCredential(Object encryptedCredenti @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSearchLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property url in model AzureSearchLinkedService")); + } + if (key() != null) { + key().validate(); } } } 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 9fa2e3e3a1cc1..d9d9471431392 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,68 @@ /** Azure SQL Data Warehouse linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSqlDW") +@JsonFlatten @Fluent -public final class AzureSqlDWLinkedService extends LinkedService { +public class AzureSqlDWLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlDWLinkedService.class); /* - * Azure SQL Data Warehouse linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSqlDWLinkedServiceTypeProperties innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure SQL Data Warehouse linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AzureSqlDWLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The ID of the service principal used to authenticate against Azure SQL + * Data Warehouse. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The key of the service principal used to authenticate against Azure SQL + * Data Warehouse. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureSqlDWLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +87,7 @@ public AzureSqlDWLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +98,7 @@ public Object connectionString() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +108,7 @@ public AzureSqlDWLinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -105,10 +118,7 @@ public AzureKeyVaultSecretReference password() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -119,7 +129,7 @@ public AzureSqlDWLinkedService withPassword(AzureKeyVaultSecretReference passwor * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -130,10 +140,7 @@ public Object servicePrincipalId() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -144,7 +151,7 @@ public AzureSqlDWLinkedService withServicePrincipalId(Object servicePrincipalId) * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -155,10 +162,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -169,7 +173,7 @@ public AzureSqlDWLinkedService withServicePrincipalKey(SecretBase servicePrincip * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -180,10 +184,7 @@ public Object tenant() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -195,7 +196,7 @@ public AzureSqlDWLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -207,10 +208,7 @@ public Object azureCloudType() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -221,7 +219,7 @@ public AzureSqlDWLinkedService withAzureCloudType(Object azureCloudType) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -232,10 +230,7 @@ public Object encryptedCredential() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -245,7 +240,7 @@ public AzureSqlDWLinkedService withEncryptedCredential(Object encryptedCredentia * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -255,10 +250,35 @@ public CredentialReference credential() { * @return the AzureSqlDWLinkedService object itself. */ public AzureSqlDWLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -270,13 +290,20 @@ public AzureSqlDWLinkedService withCredential(CredentialReference credential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSqlDWLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model AzureSqlDWLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (credential() != null) { + credential().validate(); } } } 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 c852bb40b2804..1fae70aa00738 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDWTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The Azure SQL Data Warehouse dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSqlDWTable") +@JsonFlatten @Fluent -public final class AzureSqlDWTableDataset extends Dataset { +public class AzureSqlDWTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlDWTableDataset.class); /* - * Azure SQL Data Warehouse dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private AzureSqlDWTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Azure SQL Data Warehouse dataset properties. - * - * @return the innerTypeProperties value. + /* + * The schema name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). */ - private AzureSqlDWTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlDWTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The table name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public AzureSqlDWTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,35 +61,29 @@ public Object tableName() { * @return the AzureSqlDWTableDataset object itself. */ public AzureSqlDWTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } /** - * Get the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with - * resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the AzureSqlDWTableDataset object itself. */ - public AzureSqlDWTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public AzureSqlDWTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; return this; } @@ -142,7 +94,7 @@ public AzureSqlDWTableDataset withSchemaTypePropertiesSchema(Object schema) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -153,10 +105,56 @@ public Object table() { * @return the AzureSqlDWTableDataset object itself. */ public AzureSqlDWTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDWTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDWTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public AzureSqlDWTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 442c9e9663cfc..6b17812559c3a 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlDatabaseLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,73 @@ /** Microsoft Azure SQL Database linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSqlDatabase") +@JsonFlatten @Fluent -public final class AzureSqlDatabaseLinkedService extends LinkedService { +public class AzureSqlDatabaseLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlDatabaseLinkedService.class); /* - * Azure SQL Database linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSqlDatabaseLinkedServiceTypeProperties innerTypeProperties = - new AzureSqlDatabaseLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure SQL Database linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AzureSqlDatabaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The ID of the service principal used to authenticate against Azure SQL + * Database. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The key of the service principal used to authenticate against Azure SQL + * Database. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureSqlDatabaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * Sql always encrypted properties. + */ + @JsonProperty(value = "typeProperties.alwaysEncryptedSettings") + private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -72,7 +92,7 @@ public AzureSqlDatabaseLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -83,10 +103,7 @@ public Object connectionString() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +113,7 @@ public AzureSqlDatabaseLinkedService withConnectionString(Object connectionStrin * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -106,10 +123,7 @@ public AzureKeyVaultSecretReference password() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -120,7 +134,7 @@ public AzureSqlDatabaseLinkedService withPassword(AzureKeyVaultSecretReference p * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -131,10 +145,7 @@ public Object servicePrincipalId() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -145,7 +156,7 @@ public AzureSqlDatabaseLinkedService withServicePrincipalId(Object servicePrinci * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -156,10 +167,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -170,7 +178,7 @@ public AzureSqlDatabaseLinkedService withServicePrincipalKey(SecretBase serviceP * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -181,10 +189,7 @@ public Object tenant() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -196,7 +201,7 @@ public AzureSqlDatabaseLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -208,10 +213,7 @@ public Object azureCloudType() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -222,7 +224,7 @@ public AzureSqlDatabaseLinkedService withAzureCloudType(Object azureCloudType) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -233,10 +235,7 @@ public Object encryptedCredential() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -246,7 +245,7 @@ public AzureSqlDatabaseLinkedService withEncryptedCredential(Object encryptedCre * @return the alwaysEncryptedSettings value. */ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); + return this.alwaysEncryptedSettings; } /** @@ -257,10 +256,7 @@ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { */ public AzureSqlDatabaseLinkedService withAlwaysEncryptedSettings( SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); + this.alwaysEncryptedSettings = alwaysEncryptedSettings; return this; } @@ -270,7 +266,7 @@ public AzureSqlDatabaseLinkedService withAlwaysEncryptedSettings( * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -280,10 +276,35 @@ public CredentialReference credential() { * @return the AzureSqlDatabaseLinkedService object itself. */ public AzureSqlDatabaseLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlDatabaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDatabaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDatabaseLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDatabaseLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlDatabaseLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -295,13 +316,23 @@ public AzureSqlDatabaseLinkedService withCredential(CredentialReference credenti @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSqlDatabaseLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model AzureSqlDatabaseLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (alwaysEncryptedSettings() != null) { + alwaysEncryptedSettings().validate(); + } + if (credential() != null) { + credential().validate(); } } } 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 47beedd509d9f..78f0592ae9cc1 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMILinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,73 @@ /** Azure SQL Managed Instance linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSqlMI") +@JsonFlatten @Fluent -public final class AzureSqlMILinkedService extends LinkedService { +public class AzureSqlMILinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlMILinkedService.class); /* - * Azure SQL Managed Instance linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureSqlMILinkedServiceTypeProperties innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure SQL Managed Instance linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private AzureSqlMILinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The ID of the service principal used to authenticate against Azure SQL + * Managed Instance. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The key of the service principal used to authenticate against Azure SQL + * Managed Instance. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; - /** {@inheritDoc} */ - @Override - public AzureSqlMILinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * Sql always encrypted properties. + */ + @JsonProperty(value = "typeProperties.alwaysEncryptedSettings") + private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +92,7 @@ public AzureSqlMILinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +103,7 @@ public Object connectionString() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +113,7 @@ public AzureSqlMILinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -105,10 +123,7 @@ public AzureKeyVaultSecretReference password() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -119,7 +134,7 @@ public AzureSqlMILinkedService withPassword(AzureKeyVaultSecretReference passwor * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -130,10 +145,7 @@ public Object servicePrincipalId() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -144,7 +156,7 @@ public AzureSqlMILinkedService withServicePrincipalId(Object servicePrincipalId) * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -155,10 +167,7 @@ public SecretBase servicePrincipalKey() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -169,7 +178,7 @@ public AzureSqlMILinkedService withServicePrincipalKey(SecretBase servicePrincip * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -180,10 +189,7 @@ public Object tenant() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -195,7 +201,7 @@ public AzureSqlMILinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -207,10 +213,7 @@ public Object azureCloudType() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -221,7 +224,7 @@ public AzureSqlMILinkedService withAzureCloudType(Object azureCloudType) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -232,10 +235,7 @@ public Object encryptedCredential() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -245,7 +245,7 @@ public AzureSqlMILinkedService withEncryptedCredential(Object encryptedCredentia * @return the alwaysEncryptedSettings value. */ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); + return this.alwaysEncryptedSettings; } /** @@ -255,10 +255,7 @@ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withAlwaysEncryptedSettings(SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); + this.alwaysEncryptedSettings = alwaysEncryptedSettings; return this; } @@ -268,7 +265,7 @@ public AzureSqlMILinkedService withAlwaysEncryptedSettings(SqlAlwaysEncryptedPro * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -278,10 +275,35 @@ public CredentialReference credential() { * @return the AzureSqlMILinkedService object itself. */ public AzureSqlMILinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMILinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMILinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMILinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMILinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMILinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -293,13 +315,23 @@ public AzureSqlMILinkedService withCredential(CredentialReference credential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureSqlMILinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model AzureSqlMILinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (alwaysEncryptedSettings() != null) { + alwaysEncryptedSettings().validate(); + } + if (credential() != null) { + credential().validate(); } } } 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 01ae42952cc12..1e3894fa98085 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlMITableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The Azure SQL Managed Instance dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSqlMITable") +@JsonFlatten @Fluent -public final class AzureSqlMITableDataset extends Dataset { +public class AzureSqlMITableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlMITableDataset.class); /* - * Azure SQL Managed Instance dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private AzureSqlMITableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Azure SQL Managed Instance dataset properties. - * - * @return the innerTypeProperties value. + /* + * The schema name of the Azure SQL Managed Instance. Type: string (or + * Expression with resultType string). */ - private AzureSqlMITableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlMITableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The table name of the Azure SQL Managed Instance dataset. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public AzureSqlMITableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,35 +61,29 @@ public Object tableName() { * @return the AzureSqlMITableDataset object itself. */ public AzureSqlMITableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMITableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } /** - * Get the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Azure SQL Managed Instance. Type: string (or + * Expression with resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Azure SQL Managed Instance. Type: string (or Expression with - * resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Azure SQL Managed Instance. Type: string (or + * Expression with resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the AzureSqlMITableDataset object itself. */ - public AzureSqlMITableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMITableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public AzureSqlMITableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; return this; } @@ -142,7 +94,7 @@ public AzureSqlMITableDataset withSchemaTypePropertiesSchema(Object schema) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -153,10 +105,56 @@ public Object table() { * @return the AzureSqlMITableDataset object itself. */ public AzureSqlMITableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlMITableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlMITableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public AzureSqlMITableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().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 eec52111f56d8..a3cbd64d8d777 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureSqlTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The Azure SQL Server database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureSqlTable") +@JsonFlatten @Fluent -public final class AzureSqlTableDataset extends Dataset { +public class AzureSqlTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSqlTableDataset.class); /* - * Azure SQL dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private AzureSqlTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Azure SQL dataset properties. - * - * @return the innerTypeProperties value. + /* + * The schema name of the Azure SQL database. Type: string (or Expression + * with resultType string). */ - private AzureSqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public AzureSqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The table name of the Azure SQL database. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public AzureSqlTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,35 +61,29 @@ public Object tableName() { * @return the AzureSqlTableDataset object itself. */ public AzureSqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } /** - * Get the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). + * Get the schemaTypePropertiesSchema property: The schema name of the Azure SQL database. Type: string (or + * Expression with resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Azure SQL database. Type: string (or Expression with resultType - * string). + * Set the schemaTypePropertiesSchema property: The schema name of the Azure SQL database. Type: string (or + * Expression with resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the AzureSqlTableDataset object itself. */ - public AzureSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public AzureSqlTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; return this; } @@ -142,7 +94,7 @@ public AzureSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -153,10 +105,56 @@ public Object table() { * @return the AzureSqlTableDataset object itself. */ public AzureSqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureSqlTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public AzureSqlTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 3addffda43212..be34e609ee7cd 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureStorageLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,45 @@ /** The storage account linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureStorage") +@JsonFlatten @Fluent -public final class AzureStorageLinkedService extends LinkedService { +public class AzureStorageLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureStorageLinkedService.class); /* - * Azure Storage linked service properties. + * The connection string. It is mutually exclusive with sasUri property. + * Type: string, SecureString or AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureStorageLinkedServiceTypeProperties innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure Storage linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of accountKey in connection string. */ - private AzureStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * SAS URI of the Azure Storage resource. It is mutually exclusive with + * connectionString property. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; - /** {@inheritDoc} */ - @Override - public AzureStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private String encryptedCredential; /** * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: @@ -71,7 +64,7 @@ public AzureStorageLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +75,7 @@ public Object connectionString() { * @return the AzureStorageLinkedService object itself. */ public AzureStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +85,7 @@ public AzureStorageLinkedService withConnectionString(Object connectionString) { * @return the accountKey value. */ public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); + return this.accountKey; } /** @@ -105,10 +95,7 @@ public AzureKeyVaultSecretReference accountKey() { * @return the AzureStorageLinkedService object itself. */ public AzureStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); + this.accountKey = accountKey; return this; } @@ -119,7 +106,7 @@ public AzureStorageLinkedService withAccountKey(AzureKeyVaultSecretReference acc * @return the sasUri value. */ public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); + return this.sasUri; } /** @@ -130,10 +117,7 @@ public Object sasUri() { * @return the AzureStorageLinkedService object itself. */ public AzureStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); + this.sasUri = sasUri; return this; } @@ -143,7 +127,7 @@ public AzureStorageLinkedService withSasUri(Object sasUri) { * @return the sasToken value. */ public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); + return this.sasToken; } /** @@ -153,10 +137,7 @@ public AzureKeyVaultSecretReference sasToken() { * @return the AzureStorageLinkedService object itself. */ public AzureStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); + this.sasToken = sasToken; return this; } @@ -167,7 +148,7 @@ public AzureStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasTo * @return the encryptedCredential value. */ public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -178,10 +159,35 @@ public String encryptedCredential() { * @return the AzureStorageLinkedService object itself. */ public AzureStorageLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureStorageLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureStorageLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureStorageLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -193,13 +199,11 @@ public AzureStorageLinkedService withEncryptedCredential(String encryptedCredent @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureStorageLinkedService")); - } else { - innerTypeProperties().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/models/AzureTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AzureTableDataset.java index 3eeeab0bb6116..66480cf1cf03e 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The Azure Table storage dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureTable") +@JsonFlatten @Fluent -public final class AzureTableDataset extends Dataset { +public class AzureTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureTableDataset.class); /* - * Azure Table dataset properties. + * The table name of the Azure Table storage. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private AzureTableDatasetTypeProperties innerTypeProperties = new AzureTableDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; /** - * Get the innerTypeProperties property: Azure Table dataset properties. + * Get the tableName property: The table name of the Azure Table storage. Type: string (or Expression with + * resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name of the Azure Table storage. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the AzureTableDataset object itself. */ - private AzureTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public AzureTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public AzureTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name of the Azure Table storage. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the AzureTableDataset object itself. - */ - public AzureTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -118,13 +108,10 @@ public AzureTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (tableName() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureTableDataset")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property tableName in model AzureTableDataset")); } } } 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 39a2fa0edf249..358f90c436d1d 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.AzureStorageLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,45 @@ /** The azure table storage linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("AzureTableStorage") +@JsonFlatten @Fluent -public final class AzureTableStorageLinkedService extends LinkedService { +public class AzureTableStorageLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureTableStorageLinkedService.class); /* - * Azure Table Storage linked service properties. + * The connection string. It is mutually exclusive with sasUri property. + * Type: string, SecureString or AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private AzureStorageLinkedServiceTypeProperties innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Azure Table Storage linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of accountKey in connection string. */ - private AzureStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.accountKey") + private AzureKeyVaultSecretReference accountKey; - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * SAS URI of the Azure Storage resource. It is mutually exclusive with + * connectionString property. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.sasUri") + private Object sasUri; - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The Azure key vault secret reference of sasToken in sas uri. + */ + @JsonProperty(value = "typeProperties.sasToken") + private AzureKeyVaultSecretReference sasToken; - /** {@inheritDoc} */ - @Override - public AzureTableStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private String encryptedCredential; /** * Get the connectionString property: The connection string. It is mutually exclusive with sasUri property. Type: @@ -71,7 +64,7 @@ public AzureTableStorageLinkedService withAnnotations(List annotations) * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +75,7 @@ public Object connectionString() { * @return the AzureTableStorageLinkedService object itself. */ public AzureTableStorageLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +85,7 @@ public AzureTableStorageLinkedService withConnectionString(Object connectionStri * @return the accountKey value. */ public AzureKeyVaultSecretReference accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); + return this.accountKey; } /** @@ -105,10 +95,7 @@ public AzureKeyVaultSecretReference accountKey() { * @return the AzureTableStorageLinkedService object itself. */ public AzureTableStorageLinkedService withAccountKey(AzureKeyVaultSecretReference accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); + this.accountKey = accountKey; return this; } @@ -119,7 +106,7 @@ public AzureTableStorageLinkedService withAccountKey(AzureKeyVaultSecretReferenc * @return the sasUri value. */ public Object sasUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasUri(); + return this.sasUri; } /** @@ -130,10 +117,7 @@ public Object sasUri() { * @return the AzureTableStorageLinkedService object itself. */ public AzureTableStorageLinkedService withSasUri(Object sasUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasUri(sasUri); + this.sasUri = sasUri; return this; } @@ -143,7 +127,7 @@ public AzureTableStorageLinkedService withSasUri(Object sasUri) { * @return the sasToken value. */ public AzureKeyVaultSecretReference sasToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sasToken(); + return this.sasToken; } /** @@ -153,10 +137,7 @@ public AzureKeyVaultSecretReference sasToken() { * @return the AzureTableStorageLinkedService object itself. */ public AzureTableStorageLinkedService withSasToken(AzureKeyVaultSecretReference sasToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSasToken(sasToken); + this.sasToken = sasToken; return this; } @@ -167,7 +148,7 @@ public AzureTableStorageLinkedService withSasToken(AzureKeyVaultSecretReference * @return the encryptedCredential value. */ public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -178,10 +159,35 @@ public String encryptedCredential() { * @return the AzureTableStorageLinkedService object itself. */ public AzureTableStorageLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new AzureStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureTableStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureTableStorageLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureTableStorageLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public AzureTableStorageLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -193,13 +199,11 @@ public AzureTableStorageLinkedService withEncryptedCredential(String encryptedCr @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model AzureTableStorageLinkedService")); - } else { - innerTypeProperties().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/models/BinaryDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/BinaryDataset.java index 1ca31fd57fd2d..86ac33226ec35 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.BinaryDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,61 @@ /** Binary dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Binary") +@JsonFlatten @Fluent -public final class BinaryDataset extends Dataset { +public class BinaryDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(BinaryDataset.class); /* - * Binary dataset properties. + * The location of the Binary storage. */ - @JsonProperty(value = "typeProperties") - private BinaryDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; + + /* + * The data compression method used for the binary dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** - * Get the innerTypeProperties property: Binary dataset properties. + * Get the location property: The location of the Binary storage. * - * @return the innerTypeProperties value. + * @return the location value. */ - private BinaryDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location property: The location of the Binary storage. + * + * @param location the location value to set. + * @return the BinaryDataset object itself. + */ + public BinaryDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the compression property: The data compression method used for the binary dataset. + * + * @return the compression value. + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the compression property: The data compression method used for the binary dataset. + * + * @param compression the compression value to set. + * @return the BinaryDataset object itself. + */ + public BinaryDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; } /** {@inheritDoc} */ @@ -85,52 +123,6 @@ public BinaryDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the location property: The location of the Binary storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the Binary storage. - * - * @param location the location value to set. - * @return the BinaryDataset object itself. - */ - public BinaryDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BinaryDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the compression property: The data compression method used for the binary dataset. - * - * @return the compression value. - */ - public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); - } - - /** - * Set the compression property: The data compression method used for the binary dataset. - * - * @param compression the compression value to set. - * @return the BinaryDataset object itself. - */ - public BinaryDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BinaryDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); - return this; - } - /** * Validates the instance. * @@ -139,8 +131,11 @@ public BinaryDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); + } + if (compression() != null) { + compression().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 68026ce56e79d..81b9281ab890f 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.BlobEventsTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,45 +16,46 @@ /** Trigger that runs every time a Blob event occurs. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("BlobEventsTrigger") +@JsonFlatten @Fluent -public final class BlobEventsTrigger extends MultiplePipelineTrigger { +public class BlobEventsTrigger extends MultiplePipelineTrigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(BlobEventsTrigger.class); /* - * Blob Events Trigger properties. + * The blob path must begin with the pattern provided for trigger to fire. + * For example, '/records/blobs/december/' will only fire the trigger for + * blobs in the december folder under the records container. At least one + * of these must be provided: blobPathBeginsWith, blobPathEndsWith. */ - @JsonProperty(value = "typeProperties", required = true) - private BlobEventsTriggerTypeProperties innerTypeProperties = new BlobEventsTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.blobPathBeginsWith") + private String blobPathBeginsWith; - /** - * Get the innerTypeProperties property: Blob Events Trigger properties. - * - * @return the innerTypeProperties value. + /* + * The blob path must end with the pattern provided for trigger to fire. + * For example, 'december/boxes.csv' will only fire the trigger for blobs + * named boxes in a december folder. At least one of these must be + * provided: blobPathBeginsWith, blobPathEndsWith. */ - private BlobEventsTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.blobPathEndsWith") + private String blobPathEndsWith; - /** {@inheritDoc} */ - @Override - public BlobEventsTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } + /* + * If set to true, blobs with zero bytes will be ignored. + */ + @JsonProperty(value = "typeProperties.ignoreEmptyBlobs") + private Boolean ignoreEmptyBlobs; - /** {@inheritDoc} */ - @Override - public BlobEventsTrigger withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The type of events that cause this trigger to fire. + */ + @JsonProperty(value = "typeProperties.events", required = true) + private List events; - /** {@inheritDoc} */ - @Override - public BlobEventsTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The ARM resource ID of the Storage Account. + */ + @JsonProperty(value = "typeProperties.scope", required = true) + private String scope; /** * Get the blobPathBeginsWith property: The blob path must begin with the pattern provided for trigger to fire. For @@ -64,7 +65,7 @@ public BlobEventsTrigger withAnnotations(List annotations) { * @return the blobPathBeginsWith value. */ public String blobPathBeginsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().blobPathBeginsWith(); + return this.blobPathBeginsWith; } /** @@ -76,10 +77,7 @@ public String blobPathBeginsWith() { * @return the BlobEventsTrigger object itself. */ public BlobEventsTrigger withBlobPathBeginsWith(String blobPathBeginsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withBlobPathBeginsWith(blobPathBeginsWith); + this.blobPathBeginsWith = blobPathBeginsWith; return this; } @@ -91,7 +89,7 @@ public BlobEventsTrigger withBlobPathBeginsWith(String blobPathBeginsWith) { * @return the blobPathEndsWith value. */ public String blobPathEndsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().blobPathEndsWith(); + return this.blobPathEndsWith; } /** @@ -103,10 +101,7 @@ public String blobPathEndsWith() { * @return the BlobEventsTrigger object itself. */ public BlobEventsTrigger withBlobPathEndsWith(String blobPathEndsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withBlobPathEndsWith(blobPathEndsWith); + this.blobPathEndsWith = blobPathEndsWith; return this; } @@ -116,7 +111,7 @@ public BlobEventsTrigger withBlobPathEndsWith(String blobPathEndsWith) { * @return the ignoreEmptyBlobs value. */ public Boolean ignoreEmptyBlobs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ignoreEmptyBlobs(); + return this.ignoreEmptyBlobs; } /** @@ -126,10 +121,7 @@ public Boolean ignoreEmptyBlobs() { * @return the BlobEventsTrigger object itself. */ public BlobEventsTrigger withIgnoreEmptyBlobs(Boolean ignoreEmptyBlobs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withIgnoreEmptyBlobs(ignoreEmptyBlobs); + this.ignoreEmptyBlobs = ignoreEmptyBlobs; return this; } @@ -139,7 +131,7 @@ public BlobEventsTrigger withIgnoreEmptyBlobs(Boolean ignoreEmptyBlobs) { * @return the events value. */ public List events() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().events(); + return this.events; } /** @@ -149,10 +141,7 @@ public List events() { * @return the BlobEventsTrigger object itself. */ public BlobEventsTrigger withEvents(List events) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withEvents(events); + this.events = events; return this; } @@ -162,7 +151,7 @@ public BlobEventsTrigger withEvents(List events) { * @return the scope value. */ public String scope() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scope(); + return this.scope; } /** @@ -172,10 +161,28 @@ public String scope() { * @return the BlobEventsTrigger object itself. */ public BlobEventsTrigger withScope(String scope) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withScope(scope); + this.scope = scope; + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobEventsTrigger withPipelines(List pipelines) { + super.withPipelines(pipelines); + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobEventsTrigger withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobEventsTrigger withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -187,13 +194,15 @@ public BlobEventsTrigger withScope(String scope) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (events() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property events in model BlobEventsTrigger")); + } + if (scope() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model BlobEventsTrigger")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property scope in model BlobEventsTrigger")); } } } 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 7540f70e24a8a..cd356f23bc3a1 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.BlobTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,45 +16,28 @@ /** Trigger that runs every time the selected Blob container changes. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("BlobTrigger") +@JsonFlatten @Fluent -public final class BlobTrigger extends MultiplePipelineTrigger { +public class BlobTrigger extends MultiplePipelineTrigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(BlobTrigger.class); /* - * Blob Trigger properties. + * The path of the container/folder that will trigger the pipeline. */ - @JsonProperty(value = "typeProperties", required = true) - private BlobTriggerTypeProperties innerTypeProperties = new BlobTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.folderPath", required = true) + private String folderPath; - /** - * Get the innerTypeProperties property: Blob Trigger properties. - * - * @return the innerTypeProperties value. + /* + * The max number of parallel files to handle when it is triggered. */ - private BlobTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public BlobTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } + @JsonProperty(value = "typeProperties.maxConcurrency", required = true) + private int maxConcurrency; - /** {@inheritDoc} */ - @Override - public BlobTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public BlobTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The Azure Storage linked service reference. + */ + @JsonProperty(value = "typeProperties.linkedService", required = true) + private LinkedServiceReference linkedService; /** * Get the folderPath property: The path of the container/folder that will trigger the pipeline. @@ -62,7 +45,7 @@ public BlobTrigger withAnnotations(List annotations) { * @return the folderPath value. */ public String folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); + return this.folderPath; } /** @@ -72,10 +55,7 @@ public String folderPath() { * @return the BlobTrigger object itself. */ public BlobTrigger withFolderPath(String folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobTriggerTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); + this.folderPath = folderPath; return this; } @@ -85,7 +65,7 @@ public BlobTrigger withFolderPath(String folderPath) { * @return the maxConcurrency value. */ public int maxConcurrency() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().maxConcurrency(); + return this.maxConcurrency; } /** @@ -95,10 +75,7 @@ public int maxConcurrency() { * @return the BlobTrigger object itself. */ public BlobTrigger withMaxConcurrency(int maxConcurrency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobTriggerTypeProperties(); - } - this.innerTypeProperties().withMaxConcurrency(maxConcurrency); + this.maxConcurrency = maxConcurrency; return this; } @@ -108,7 +85,7 @@ public BlobTrigger withMaxConcurrency(int maxConcurrency) { * @return the linkedService value. */ public LinkedServiceReference linkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedService(); + return this.linkedService; } /** @@ -118,10 +95,28 @@ public LinkedServiceReference linkedService() { * @return the BlobTrigger object itself. */ public BlobTrigger withLinkedService(LinkedServiceReference linkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new BlobTriggerTypeProperties(); - } - this.innerTypeProperties().withLinkedService(linkedService); + this.linkedService = linkedService; + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobTrigger withPipelines(List pipelines) { + super.withPipelines(pipelines); + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobTrigger withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public BlobTrigger withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -133,12 +128,17 @@ public BlobTrigger withLinkedService(LinkedServiceReference linkedService) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (folderPath() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property folderPath in model BlobTrigger")); + } + if (linkedService() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model BlobTrigger")); + new IllegalArgumentException("Missing required property linkedService in model BlobTrigger")); } else { - innerTypeProperties().validate(); + linkedService().validate(); } } } 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 b50c03aa5f046..7fd7145ee27d6 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CassandraLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,52 @@ /** Linked service for Cassandra data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Cassandra") +@JsonFlatten @Fluent -public final class CassandraLinkedService extends LinkedService { +public class CassandraLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(CassandraLinkedService.class); /* - * Cassandra linked service properties. + * Host name for connection. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private CassandraLinkedServiceTypeProperties innerTypeProperties = new CassandraLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Cassandra linked service properties. - * - * @return the innerTypeProperties value. + /* + * AuthenticationType to be used for connection. Type: string (or + * Expression with resultType string). */ - private CassandraLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The port for the connection. Type: integer (or Expression with + * resultType integer). + */ + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password for authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public CassandraLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: Host name for connection. Type: string (or Expression with resultType string). @@ -70,7 +70,7 @@ public CassandraLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +80,7 @@ public Object host() { * @return the CassandraLinkedService object itself. */ public CassandraLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +91,7 @@ public CassandraLinkedService withHost(Object host) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -105,10 +102,7 @@ public Object authenticationType() { * @return the CassandraLinkedService object itself. */ public CassandraLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -118,7 +112,7 @@ public CassandraLinkedService withAuthenticationType(Object authenticationType) * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -128,10 +122,7 @@ public Object port() { * @return the CassandraLinkedService object itself. */ public CassandraLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -141,7 +132,7 @@ public CassandraLinkedService withPort(Object port) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -151,10 +142,7 @@ public Object username() { * @return the CassandraLinkedService object itself. */ public CassandraLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -164,7 +152,7 @@ public CassandraLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -174,10 +162,7 @@ public SecretBase password() { * @return the CassandraLinkedService object itself. */ public CassandraLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -188,7 +173,7 @@ public CassandraLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -199,10 +184,35 @@ public Object encryptedCredential() { * @return the CassandraLinkedService object itself. */ public CassandraLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public CassandraLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public CassandraLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CassandraLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public CassandraLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -214,13 +224,13 @@ public CassandraLinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CassandraLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model CassandraLinkedService")); + } + if (password() != null) { + password().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 561faf0363737..41d632b4c9bfa 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CassandraTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,67 @@ /** The Cassandra database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CassandraTable") +@JsonFlatten @Fluent -public final class CassandraTableDataset extends Dataset { +public class CassandraTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(CassandraTableDataset.class); /* - * Cassandra dataset properties. + * The table name of the Cassandra database. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties") - private CassandraTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /* + * The keyspace of the Cassandra database. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.keyspace") + private Object keyspace; + + /** + * Get the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType + * string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } /** - * Get the innerTypeProperties property: Cassandra dataset properties. + * Set the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the CassandraTableDataset object itself. */ - private CassandraTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public CassandraTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType + * string). + * + * @return the keyspace value. + */ + public Object keyspace() { + return this.keyspace; + } + + /** + * Set the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType + * string). + * + * @param keyspace the keyspace value to set. + * @return the CassandraTableDataset object itself. + */ + public CassandraTableDataset withKeyspace(Object keyspace) { + this.keyspace = keyspace; + return this; } /** {@inheritDoc} */ @@ -85,56 +129,6 @@ public CassandraTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param tableName the tableName value to set. - * @return the CassandraTableDataset object itself. - */ - public CassandraTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @return the keyspace value. - */ - public Object keyspace() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().keyspace(); - } - - /** - * Set the keyspace property: The keyspace of the Cassandra database. Type: string (or Expression with resultType - * string). - * - * @param keyspace the keyspace value to set. - * @return the CassandraTableDataset object itself. - */ - public CassandraTableDataset withKeyspace(Object keyspace) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CassandraTableDatasetTypeProperties(); - } - this.innerTypeProperties().withKeyspace(keyspace); - return this; - } - /** * Validates the instance. * @@ -143,8 +137,5 @@ public CassandraTableDataset withKeyspace(Object keyspace) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 648a418713051..2cd24d8aa22a5 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ChainingTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -21,8 +21,9 @@ */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ChainingTrigger") +@JsonFlatten @Fluent -public final class ChainingTrigger extends Trigger { +public class ChainingTrigger extends Trigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(ChainingTrigger.class); /* @@ -33,10 +34,16 @@ public final class ChainingTrigger extends Trigger { private TriggerPipelineReference pipeline; /* - * Chaining Trigger properties. + * Upstream Pipelines. */ - @JsonProperty(value = "typeProperties", required = true) - private ChainingTriggerTypeProperties innerTypeProperties = new ChainingTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.dependsOn", required = true) + private List dependsOn; + + /* + * Run Dimension property that needs to be emitted by upstream pipelines. + */ + @JsonProperty(value = "typeProperties.runDimension", required = true) + private String runDimension; /** * Get the pipeline property: Pipeline for which runs are created when all upstream pipelines complete successfully. @@ -58,36 +65,13 @@ public ChainingTrigger withPipeline(TriggerPipelineReference pipeline) { return this; } - /** - * Get the innerTypeProperties property: Chaining Trigger properties. - * - * @return the innerTypeProperties value. - */ - private ChainingTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ChainingTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ChainingTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - /** * Get the dependsOn property: Upstream Pipelines. * * @return the dependsOn value. */ public List dependsOn() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dependsOn(); + return this.dependsOn; } /** @@ -97,10 +81,7 @@ public List dependsOn() { * @return the ChainingTrigger object itself. */ public ChainingTrigger withDependsOn(List dependsOn) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ChainingTriggerTypeProperties(); - } - this.innerTypeProperties().withDependsOn(dependsOn); + this.dependsOn = dependsOn; return this; } @@ -110,7 +91,7 @@ public ChainingTrigger withDependsOn(List dependsOn) { * @return the runDimension value. */ public String runDimension() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runDimension(); + return this.runDimension; } /** @@ -120,10 +101,21 @@ public String runDimension() { * @return the ChainingTrigger object itself. */ public ChainingTrigger withRunDimension(String runDimension) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ChainingTriggerTypeProperties(); - } - this.innerTypeProperties().withRunDimension(runDimension); + this.runDimension = runDimension; + return this; + } + + /** {@inheritDoc} */ + @Override + public ChainingTrigger withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ChainingTrigger withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -142,13 +134,17 @@ public void validate() { } else { pipeline().validate(); } - if (innerTypeProperties() == null) { + if (dependsOn() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ChainingTrigger")); + new IllegalArgumentException("Missing required property dependsOn in model ChainingTrigger")); } else { - innerTypeProperties().validate(); + dependsOn().forEach(e -> e.validate()); + } + if (runDimension() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property runDimension 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 842851acb2c47..1d55776edde56 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CmdkeySetupTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,24 +15,28 @@ /** The custom setup of running cmdkey commands. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CmdkeySetup") +@JsonFlatten @Fluent -public final class CmdkeySetup extends CustomSetupBase { +public class CmdkeySetup extends CustomSetupBase { @JsonIgnore private final ClientLogger logger = new ClientLogger(CmdkeySetup.class); /* - * Cmdkey command custom setup type properties. + * The server name of data source access. */ - @JsonProperty(value = "typeProperties", required = true) - private CmdkeySetupTypeProperties innerTypeProperties = new CmdkeySetupTypeProperties(); + @JsonProperty(value = "typeProperties.targetName", required = true) + private Object targetName; - /** - * Get the innerTypeProperties property: Cmdkey command custom setup type properties. - * - * @return the innerTypeProperties value. + /* + * The user name of data source access. */ - private CmdkeySetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.userName", required = true) + private Object username; + + /* + * The password of data source access. + */ + @JsonProperty(value = "typeProperties.password", required = true) + private SecretBase password; /** * Get the targetName property: The server name of data source access. @@ -40,7 +44,7 @@ private CmdkeySetupTypeProperties innerTypeProperties() { * @return the targetName value. */ public Object targetName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().targetName(); + return this.targetName; } /** @@ -50,10 +54,7 @@ public Object targetName() { * @return the CmdkeySetup object itself. */ public CmdkeySetup withTargetName(Object targetName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CmdkeySetupTypeProperties(); - } - this.innerTypeProperties().withTargetName(targetName); + this.targetName = targetName; return this; } @@ -63,7 +64,7 @@ public CmdkeySetup withTargetName(Object targetName) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -73,10 +74,7 @@ public Object username() { * @return the CmdkeySetup object itself. */ public CmdkeySetup withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CmdkeySetupTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -86,7 +84,7 @@ public CmdkeySetup withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -96,10 +94,7 @@ public SecretBase password() { * @return the CmdkeySetup object itself. */ public CmdkeySetup withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CmdkeySetupTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -111,12 +106,22 @@ public CmdkeySetup withPassword(SecretBase password) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (targetName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property targetName in model CmdkeySetup")); + } + if (username() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property username in model CmdkeySetup")); + } + if (password() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model CmdkeySetup")); + new IllegalArgumentException("Missing required property password in model CmdkeySetup")); } else { - innerTypeProperties().validate(); + password().validate(); } } } 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 eda223fc2425c..8f7d4be223621 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsEntityDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Common Data Service for Apps entity dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CommonDataServiceForAppsEntity") +@JsonFlatten @Fluent -public final class CommonDataServiceForAppsEntityDataset extends Dataset { +public class CommonDataServiceForAppsEntityDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(CommonDataServiceForAppsEntityDataset.class); /* - * Common Data Service for Apps entity dataset properties. + * The logical name of the entity. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private CommonDataServiceForAppsEntityDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; /** - * Get the innerTypeProperties property: Common Data Service for Apps entity dataset properties. + * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). + * + * @return the entityName value. + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param entityName the entityName value to set. + * @return the CommonDataServiceForAppsEntityDataset object itself. */ - private CommonDataServiceForAppsEntityDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public CommonDataServiceForAppsEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public CommonDataServiceForAppsEntityDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entityName(); - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the CommonDataServiceForAppsEntityDataset object itself. - */ - public CommonDataServiceForAppsEntityDataset withEntityName(Object entityName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsEntityDatasetTypeProperties(); - } - this.innerTypeProperties().withEntityName(entityName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public CommonDataServiceForAppsEntityDataset withEntityName(Object entityName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 7880492032f68..b0377232d0ab2 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CommonDataServiceForAppsLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,110 @@ /** Common Data Service for Apps linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CommonDataServiceForApps") +@JsonFlatten @Fluent -public final class CommonDataServiceForAppsLinkedService extends LinkedService { +public class CommonDataServiceForAppsLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(CommonDataServiceForAppsLinkedService.class); /* - * Common Data Service for Apps linked service properties. + * The deployment type of the Common Data Service for Apps instance. + * 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' + * for Common Data Service for Apps on-premises with Ifd. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private CommonDataServiceForAppsLinkedServiceTypeProperties innerTypeProperties = - new CommonDataServiceForAppsLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private Object deploymentType; - /** - * Get the innerTypeProperties property: Common Data Service for Apps linked service properties. - * - * @return the innerTypeProperties value. + /* + * The host name of the on-premises Common Data Service for Apps server. + * The property is required for on-prem and not allowed for online. Type: + * string (or Expression with resultType string). */ - private CommonDataServiceForAppsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.hostName") + private Object hostname; - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The port of on-premises Common Data Service for Apps server. The + * property is required for on-prem and not allowed for online. Default is + * 443. Type: integer (or Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The URL to the Microsoft Common Data Service for Apps server. The + * property is required for on-line and not allowed for on-prem. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUri") + private Object serviceUri; - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The organization name of the Common Data Service for Apps instance. The + * property is required for on-prem and required for online when there are + * more than one Common Data Service for Apps instances associated with the + * user. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.organizationName") + private Object organizationName; - /** {@inheritDoc} */ - @Override - public CommonDataServiceForAppsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The authentication type to connect to Common Data Service for Apps + * server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd + * scenario. 'AADServicePrincipal' for Server-To-Server authentication in + * online scenario. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private Object authenticationType; + + /* + * User name to access the Common Data Service for Apps instance. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /* + * Password to access the Common Data Service for Apps instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The client ID of the application in Azure Active Directory used for + * Server-To-Server authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, + * 'ServicePrincipalCert' for certificate. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredentialType") + private Object servicePrincipalCredentialType; + + /* + * The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + * servicePrincipalCredential can be SecureString or + * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + * 'ServicePrincipalCert', servicePrincipalCredential can only be + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredential") + private SecretBase servicePrincipalCredential; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the deploymentType property: The deployment type of the Common Data Service for Apps instance. 'Online' for @@ -73,7 +130,7 @@ public CommonDataServiceForAppsLinkedService withAnnotations(List annota * @return the deploymentType value. */ public Object deploymentType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().deploymentType(); + return this.deploymentType; } /** @@ -85,10 +142,7 @@ public Object deploymentType() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withDeploymentType(Object deploymentType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeploymentType(deploymentType); + this.deploymentType = deploymentType; return this; } @@ -99,7 +153,7 @@ public CommonDataServiceForAppsLinkedService withDeploymentType(Object deploymen * @return the hostname value. */ public Object hostname() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostname(); + return this.hostname; } /** @@ -110,10 +164,7 @@ public Object hostname() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withHostname(Object hostname) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostname(hostname); + this.hostname = hostname; return this; } @@ -125,7 +176,7 @@ public CommonDataServiceForAppsLinkedService withHostname(Object hostname) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -137,10 +188,7 @@ public Object port() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -151,7 +199,7 @@ public CommonDataServiceForAppsLinkedService withPort(Object port) { * @return the serviceUri value. */ public Object serviceUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUri(); + return this.serviceUri; } /** @@ -162,10 +210,7 @@ public Object serviceUri() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withServiceUri(Object serviceUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUri(serviceUri); + this.serviceUri = serviceUri; return this; } @@ -177,7 +222,7 @@ public CommonDataServiceForAppsLinkedService withServiceUri(Object serviceUri) { * @return the organizationName value. */ public Object organizationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().organizationName(); + return this.organizationName; } /** @@ -189,10 +234,7 @@ public Object organizationName() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withOrganizationName(Object organizationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOrganizationName(organizationName); + this.organizationName = organizationName; return this; } @@ -204,7 +246,7 @@ public CommonDataServiceForAppsLinkedService withOrganizationName(Object organiz * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -216,10 +258,7 @@ public Object authenticationType() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -230,7 +269,7 @@ public CommonDataServiceForAppsLinkedService withAuthenticationType(Object authe * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -241,10 +280,7 @@ public Object username() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -254,7 +290,7 @@ public CommonDataServiceForAppsLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -264,10 +300,7 @@ public SecretBase password() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -278,7 +311,7 @@ public CommonDataServiceForAppsLinkedService withPassword(SecretBase password) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -289,10 +322,7 @@ public Object servicePrincipalId() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -304,7 +334,7 @@ public CommonDataServiceForAppsLinkedService withServicePrincipalId(Object servi * @return the servicePrincipalCredentialType value. */ public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); + return this.servicePrincipalCredentialType; } /** @@ -317,10 +347,7 @@ public Object servicePrincipalCredentialType() { */ public CommonDataServiceForAppsLinkedService withServicePrincipalCredentialType( Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); + this.servicePrincipalCredentialType = servicePrincipalCredentialType; return this; } @@ -333,7 +360,7 @@ public CommonDataServiceForAppsLinkedService withServicePrincipalCredentialType( * @return the servicePrincipalCredential value. */ public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); + return this.servicePrincipalCredential; } /** @@ -346,10 +373,7 @@ public SecretBase servicePrincipalCredential() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); + this.servicePrincipalCredential = servicePrincipalCredential; return this; } @@ -360,7 +384,7 @@ public CommonDataServiceForAppsLinkedService withServicePrincipalCredential(Secr * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -371,10 +395,35 @@ public Object encryptedCredential() { * @return the CommonDataServiceForAppsLinkedService object itself. */ public CommonDataServiceForAppsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CommonDataServiceForAppsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public CommonDataServiceForAppsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public CommonDataServiceForAppsLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CommonDataServiceForAppsLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public CommonDataServiceForAppsLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -386,14 +435,23 @@ public CommonDataServiceForAppsLinkedService withEncryptedCredential(Object encr @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (deploymentType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model" - + " CommonDataServiceForAppsLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property deploymentType in model CommonDataServiceForAppsLinkedService")); + } + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model CommonDataServiceForAppsLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalCredential() != null) { + servicePrincipalCredential().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 08df4eb59529d..41f3c25846287 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.LicensedComponentSetupTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,24 +15,22 @@ /** The custom setup of installing 3rd party components. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ComponentSetup") +@JsonFlatten @Fluent -public final class ComponentSetup extends CustomSetupBase { +public class ComponentSetup extends CustomSetupBase { @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentSetup.class); /* - * Install 3rd party component type properties. + * The name of the 3rd party component. */ - @JsonProperty(value = "typeProperties", required = true) - private LicensedComponentSetupTypeProperties innerTypeProperties = new LicensedComponentSetupTypeProperties(); + @JsonProperty(value = "typeProperties.componentName", required = true) + private String componentName; - /** - * Get the innerTypeProperties property: Install 3rd party component type properties. - * - * @return the innerTypeProperties value. + /* + * The license key to activate the component. */ - private LicensedComponentSetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.licenseKey") + private SecretBase licenseKey; /** * Get the componentName property: The name of the 3rd party component. @@ -40,7 +38,7 @@ private LicensedComponentSetupTypeProperties innerTypeProperties() { * @return the componentName value. */ public String componentName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().componentName(); + return this.componentName; } /** @@ -50,10 +48,7 @@ public String componentName() { * @return the ComponentSetup object itself. */ public ComponentSetup withComponentName(String componentName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LicensedComponentSetupTypeProperties(); - } - this.innerTypeProperties().withComponentName(componentName); + this.componentName = componentName; return this; } @@ -63,7 +58,7 @@ public ComponentSetup withComponentName(String componentName) { * @return the licenseKey value. */ public SecretBase licenseKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().licenseKey(); + return this.licenseKey; } /** @@ -73,10 +68,7 @@ public SecretBase licenseKey() { * @return the ComponentSetup object itself. */ public ComponentSetup withLicenseKey(SecretBase licenseKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LicensedComponentSetupTypeProperties(); - } - this.innerTypeProperties().withLicenseKey(licenseKey); + this.licenseKey = licenseKey; return this; } @@ -88,13 +80,13 @@ public ComponentSetup withLicenseKey(SecretBase licenseKey) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (componentName() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ComponentSetup")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property componentName in model ComponentSetup")); + } + if (licenseKey() != null) { + licenseKey().validate(); } } } 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 94c1a9a62a232..3547e4a9d28c2 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ConcurLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,66 @@ /** Concur Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Concur") +@JsonFlatten @Fluent -public final class ConcurLinkedService extends LinkedService { +public class ConcurLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ConcurLinkedService.class); /* - * Concur Service linked service properties. + * Properties used to connect to Concur. It is mutually exclusive with any + * other properties in the linked service. Type: object. */ - @JsonProperty(value = "typeProperties", required = true) - private ConcurLinkedServiceTypeProperties innerTypeProperties = new ConcurLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionProperties") + private Object connectionProperties; - /** - * Get the innerTypeProperties property: Concur Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * Application client_id supplied by Concur App Management. */ - private ConcurLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The user name that you use to access Concur Service. + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The password corresponding to the user name that you provided in the + * username field. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public ConcurLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionProperties property: Properties used to connect to Concur. It is mutually exclusive with any @@ -71,7 +85,7 @@ public ConcurLinkedService withAnnotations(List annotations) { * @return the connectionProperties value. */ public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); + return this.connectionProperties; } /** @@ -82,10 +96,7 @@ public Object connectionProperties() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); + this.connectionProperties = connectionProperties; return this; } @@ -95,7 +106,7 @@ public ConcurLinkedService withConnectionProperties(Object connectionProperties) * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -105,10 +116,7 @@ public Object clientId() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -118,7 +126,7 @@ public ConcurLinkedService withClientId(Object clientId) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -128,10 +136,7 @@ public Object username() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -141,7 +146,7 @@ public ConcurLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -151,10 +156,7 @@ public SecretBase password() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -165,7 +167,7 @@ public ConcurLinkedService withPassword(SecretBase password) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -176,10 +178,7 @@ public Object useEncryptedEndpoints() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -190,7 +189,7 @@ public ConcurLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoint * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -201,10 +200,7 @@ public Object useHostVerification() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -215,7 +211,7 @@ public ConcurLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -226,10 +222,7 @@ public Object usePeerVerification() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -240,7 +233,7 @@ public ConcurLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -251,10 +244,35 @@ public Object encryptedCredential() { * @return the ConcurLinkedService object itself. */ public ConcurLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ConcurLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ConcurLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ConcurLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ConcurLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ConcurLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -266,13 +284,18 @@ public ConcurLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (clientId() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ConcurLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property clientId in model ConcurLinkedService")); + } + if (username() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property username in model ConcurLinkedService")); + } + if (password() != null) { + password().validate(); } } } 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 b8440d821c0f2..87c8952966fe7 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Concur Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ConcurObject") +@JsonFlatten @Fluent -public final class ConcurObjectDataset extends Dataset { +public class ConcurObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ConcurObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the ConcurObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ConcurObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public ConcurObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ConcurObjectDataset object itself. - */ - public ConcurObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public ConcurObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 9a0c380ff04bb..cbc657b1e3569 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CopyActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,16 +16,11 @@ /** Copy activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Copy") +@JsonFlatten @Fluent -public final class CopyActivity extends ExecutionActivity { +public class CopyActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(CopyActivity.class); - /* - * Copy activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private CopyActivityTypeProperties innerTypeProperties = new CopyActivityTypeProperties(); - /* * List of inputs for the activity. */ @@ -38,14 +33,104 @@ public final class CopyActivity extends ExecutionActivity { @JsonProperty(value = "outputs") private List outputs; - /** - * Get the innerTypeProperties property: Copy activity properties. - * - * @return the innerTypeProperties value. + /* + * Copy activity source. */ - private CopyActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.source", required = true) + private CopySource source; + + /* + * Copy activity sink. + */ + @JsonProperty(value = "typeProperties.sink", required = true) + private CopySink sink; + + /* + * Copy activity translator. If not specified, tabular translator is used. + */ + @JsonProperty(value = "typeProperties.translator") + private Object translator; + + /* + * Specifies whether to copy data via an interim staging. Default value is + * false. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableStaging") + private Object enableStaging; + + /* + * Specifies interim staging settings when EnableStaging is true. + */ + @JsonProperty(value = "typeProperties.stagingSettings") + private StagingSettings stagingSettings; + + /* + * Maximum number of concurrent sessions opened on the source or sink to + * avoid overloading the data store. Type: integer (or Expression with + * resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.parallelCopies") + private Object parallelCopies; + + /* + * Maximum number of data integration units that can be used to perform + * this data movement. Type: integer (or Expression with resultType + * integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.dataIntegrationUnits") + private Object dataIntegrationUnits; + + /* + * Whether to skip incompatible row. Default value is false. Type: boolean + * (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableSkipIncompatibleRow") + private Object enableSkipIncompatibleRow; + + /* + * Redirect incompatible row settings when EnableSkipIncompatibleRow is + * true. + */ + @JsonProperty(value = "typeProperties.redirectIncompatibleRowSettings") + private RedirectIncompatibleRowSettings redirectIncompatibleRowSettings; + + /* + * (Deprecated. Please use LogSettings) Log storage settings customer need + * to provide when enabling session log. + */ + @JsonProperty(value = "typeProperties.logStorageSettings") + private LogStorageSettings logStorageSettings; + + /* + * Log settings customer needs provide when enabling log. + */ + @JsonProperty(value = "typeProperties.logSettings") + private LogSettings logSettings; + + /* + * Preserve Rules. + */ + @JsonProperty(value = "typeProperties.preserveRules") + private List preserveRules; + + /* + * Preserve rules. + */ + @JsonProperty(value = "typeProperties.preserve") + private List preserve; + + /* + * Whether to enable Data Consistency validation. Type: boolean (or + * Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.validateDataConsistency") + private Object validateDataConsistency; + + /* + * Specify the fault tolerance for data consistency. + */ + @JsonProperty(value = "typeProperties.skipErrorFile") + private SkipErrorFile skipErrorFile; /** * Get the inputs property: List of inputs for the activity. @@ -87,55 +172,13 @@ public CopyActivity withOutputs(List outputs) { return this; } - /** {@inheritDoc} */ - @Override - public CopyActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public CopyActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } - /** * Get the source property: Copy activity source. * * @return the source value. */ public CopySource source() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().source(); + return this.source; } /** @@ -145,10 +188,7 @@ public CopySource source() { * @return the CopyActivity object itself. */ public CopyActivity withSource(CopySource source) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withSource(source); + this.source = source; return this; } @@ -158,7 +198,7 @@ public CopyActivity withSource(CopySource source) { * @return the sink value. */ public CopySink sink() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sink(); + return this.sink; } /** @@ -168,10 +208,7 @@ public CopySink sink() { * @return the CopyActivity object itself. */ public CopyActivity withSink(CopySink sink) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withSink(sink); + this.sink = sink; return this; } @@ -181,7 +218,7 @@ public CopyActivity withSink(CopySink sink) { * @return the translator value. */ public Object translator() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().translator(); + return this.translator; } /** @@ -191,10 +228,7 @@ public Object translator() { * @return the CopyActivity object itself. */ public CopyActivity withTranslator(Object translator) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withTranslator(translator); + this.translator = translator; return this; } @@ -205,7 +239,7 @@ public CopyActivity withTranslator(Object translator) { * @return the enableStaging value. */ public Object enableStaging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableStaging(); + return this.enableStaging; } /** @@ -216,10 +250,7 @@ public Object enableStaging() { * @return the CopyActivity object itself. */ public CopyActivity withEnableStaging(Object enableStaging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withEnableStaging(enableStaging); + this.enableStaging = enableStaging; return this; } @@ -229,7 +260,7 @@ public CopyActivity withEnableStaging(Object enableStaging) { * @return the stagingSettings value. */ public StagingSettings stagingSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().stagingSettings(); + return this.stagingSettings; } /** @@ -239,10 +270,7 @@ public StagingSettings stagingSettings() { * @return the CopyActivity object itself. */ public CopyActivity withStagingSettings(StagingSettings stagingSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withStagingSettings(stagingSettings); + this.stagingSettings = stagingSettings; return this; } @@ -253,7 +281,7 @@ public CopyActivity withStagingSettings(StagingSettings stagingSettings) { * @return the parallelCopies value. */ public Object parallelCopies() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parallelCopies(); + return this.parallelCopies; } /** @@ -264,10 +292,7 @@ public Object parallelCopies() { * @return the CopyActivity object itself. */ public CopyActivity withParallelCopies(Object parallelCopies) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withParallelCopies(parallelCopies); + this.parallelCopies = parallelCopies; return this; } @@ -278,7 +303,7 @@ public CopyActivity withParallelCopies(Object parallelCopies) { * @return the dataIntegrationUnits value. */ public Object dataIntegrationUnits() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataIntegrationUnits(); + return this.dataIntegrationUnits; } /** @@ -289,10 +314,7 @@ public Object dataIntegrationUnits() { * @return the CopyActivity object itself. */ public CopyActivity withDataIntegrationUnits(Object dataIntegrationUnits) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withDataIntegrationUnits(dataIntegrationUnits); + this.dataIntegrationUnits = dataIntegrationUnits; return this; } @@ -303,7 +325,7 @@ public CopyActivity withDataIntegrationUnits(Object dataIntegrationUnits) { * @return the enableSkipIncompatibleRow value. */ public Object enableSkipIncompatibleRow() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSkipIncompatibleRow(); + return this.enableSkipIncompatibleRow; } /** @@ -314,10 +336,7 @@ public Object enableSkipIncompatibleRow() { * @return the CopyActivity object itself. */ public CopyActivity withEnableSkipIncompatibleRow(Object enableSkipIncompatibleRow) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withEnableSkipIncompatibleRow(enableSkipIncompatibleRow); + this.enableSkipIncompatibleRow = enableSkipIncompatibleRow; return this; } @@ -328,7 +347,7 @@ public CopyActivity withEnableSkipIncompatibleRow(Object enableSkipIncompatibleR * @return the redirectIncompatibleRowSettings value. */ public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().redirectIncompatibleRowSettings(); + return this.redirectIncompatibleRowSettings; } /** @@ -340,10 +359,7 @@ public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { */ public CopyActivity withRedirectIncompatibleRowSettings( RedirectIncompatibleRowSettings redirectIncompatibleRowSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withRedirectIncompatibleRowSettings(redirectIncompatibleRowSettings); + this.redirectIncompatibleRowSettings = redirectIncompatibleRowSettings; return this; } @@ -354,7 +370,7 @@ public CopyActivity withRedirectIncompatibleRowSettings( * @return the logStorageSettings value. */ public LogStorageSettings logStorageSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logStorageSettings(); + return this.logStorageSettings; } /** @@ -365,10 +381,7 @@ public LogStorageSettings logStorageSettings() { * @return the CopyActivity object itself. */ public CopyActivity withLogStorageSettings(LogStorageSettings logStorageSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withLogStorageSettings(logStorageSettings); + this.logStorageSettings = logStorageSettings; return this; } @@ -378,7 +391,7 @@ public CopyActivity withLogStorageSettings(LogStorageSettings logStorageSettings * @return the logSettings value. */ public LogSettings logSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logSettings(); + return this.logSettings; } /** @@ -388,10 +401,7 @@ public LogSettings logSettings() { * @return the CopyActivity object itself. */ public CopyActivity withLogSettings(LogSettings logSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withLogSettings(logSettings); + this.logSettings = logSettings; return this; } @@ -401,7 +411,7 @@ public CopyActivity withLogSettings(LogSettings logSettings) { * @return the preserveRules value. */ public List preserveRules() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().preserveRules(); + return this.preserveRules; } /** @@ -411,10 +421,7 @@ public List preserveRules() { * @return the CopyActivity object itself. */ public CopyActivity withPreserveRules(List preserveRules) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withPreserveRules(preserveRules); + this.preserveRules = preserveRules; return this; } @@ -424,7 +431,7 @@ public CopyActivity withPreserveRules(List preserveRules) { * @return the preserve value. */ public List preserve() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().preserve(); + return this.preserve; } /** @@ -434,10 +441,7 @@ public List preserve() { * @return the CopyActivity object itself. */ public CopyActivity withPreserve(List preserve) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withPreserve(preserve); + this.preserve = preserve; return this; } @@ -448,7 +452,7 @@ public CopyActivity withPreserve(List preserve) { * @return the validateDataConsistency value. */ public Object validateDataConsistency() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().validateDataConsistency(); + return this.validateDataConsistency; } /** @@ -459,10 +463,7 @@ public Object validateDataConsistency() { * @return the CopyActivity object itself. */ public CopyActivity withValidateDataConsistency(Object validateDataConsistency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withValidateDataConsistency(validateDataConsistency); + this.validateDataConsistency = validateDataConsistency; return this; } @@ -472,7 +473,7 @@ public CopyActivity withValidateDataConsistency(Object validateDataConsistency) * @return the skipErrorFile value. */ public SkipErrorFile skipErrorFile() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().skipErrorFile(); + return this.skipErrorFile; } /** @@ -482,10 +483,49 @@ public SkipErrorFile skipErrorFile() { * @return the CopyActivity object itself. */ public CopyActivity withSkipErrorFile(SkipErrorFile skipErrorFile) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CopyActivityTypeProperties(); - } - this.innerTypeProperties().withSkipErrorFile(skipErrorFile); + this.skipErrorFile = skipErrorFile; + return this; + } + + /** {@inheritDoc} */ + @Override + public CopyActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public CopyActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public CopyActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public CopyActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CopyActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public CopyActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -497,19 +537,40 @@ public CopyActivity withSkipErrorFile(SkipErrorFile skipErrorFile) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CopyActivity")); - } else { - innerTypeProperties().validate(); - } if (inputs() != null) { inputs().forEach(e -> e.validate()); } if (outputs() != null) { outputs().forEach(e -> e.validate()); } + if (source() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property source in model CopyActivity")); + } else { + source().validate(); + } + if (sink() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property sink in model CopyActivity")); + } else { + sink().validate(); + } + if (stagingSettings() != null) { + stagingSettings().validate(); + } + if (redirectIncompatibleRowSettings() != null) { + redirectIncompatibleRowSettings().validate(); + } + if (logStorageSettings() != null) { + logStorageSettings().validate(); + } + if (logSettings() != null) { + logSettings().validate(); + } + if (skipErrorFile() != null) { + skipErrorFile().validate(); + } } } 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 e4ac7efb48277..78761c5f2f049 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,97 @@ /** Microsoft Azure Cosmos Database (CosmosDB) linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CosmosDb") +@JsonFlatten @Fluent -public final class CosmosDbLinkedService extends LinkedService { +public class CosmosDbLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(CosmosDbLinkedService.class); /* - * CosmosDB linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbLinkedServiceTypeProperties innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: CosmosDB linked service properties. - * - * @return the innerTypeProperties value. + /* + * The endpoint of the Azure CosmosDB account. Type: string (or Expression + * with resultType string) */ - private CosmosDbLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accountEndpoint") + private Object accountEndpoint; - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The name of the database. Type: string (or Expression with resultType + * string) + */ + @JsonProperty(value = "typeProperties.database") + private Object database; - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The account key of the Azure CosmosDB account. Type: SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.accountKey") + private SecretBase accountKey; - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The client ID of the application in Azure Active Directory used for + * Server-To-Server authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public CosmosDbLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, + * 'ServicePrincipalCert' for certificate. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredentialType") + private CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType; + + /* + * The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + * servicePrincipalCredential can be SecureString or + * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + * 'ServicePrincipalCert', servicePrincipalCredential can only be + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredential") + private SecretBase servicePrincipalCredential; + + /* + * The name or ID of the tenant to which the service principal belongs. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * The connection mode used to access CosmosDB account. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.connectionMode") + private CosmosDbConnectionMode connectionMode; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +116,7 @@ public CosmosDbLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +127,7 @@ public Object connectionString() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +138,7 @@ public CosmosDbLinkedService withConnectionString(Object connectionString) { * @return the accountEndpoint value. */ public Object accountEndpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountEndpoint(); + return this.accountEndpoint; } /** @@ -107,10 +149,7 @@ public Object accountEndpoint() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withAccountEndpoint(Object accountEndpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountEndpoint(accountEndpoint); + this.accountEndpoint = accountEndpoint; return this; } @@ -120,7 +159,7 @@ public CosmosDbLinkedService withAccountEndpoint(Object accountEndpoint) { * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -130,10 +169,7 @@ public Object database() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; return this; } @@ -144,7 +180,7 @@ public CosmosDbLinkedService withDatabase(Object database) { * @return the accountKey value. */ public SecretBase accountKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accountKey(); + return this.accountKey; } /** @@ -155,10 +191,7 @@ public SecretBase accountKey() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withAccountKey(SecretBase accountKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccountKey(accountKey); + this.accountKey = accountKey; return this; } @@ -169,7 +202,7 @@ public CosmosDbLinkedService withAccountKey(SecretBase accountKey) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -180,10 +213,7 @@ public Object servicePrincipalId() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -195,7 +225,7 @@ public CosmosDbLinkedService withServicePrincipalId(Object servicePrincipalId) { * @return the servicePrincipalCredentialType value. */ public CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); + return this.servicePrincipalCredentialType; } /** @@ -208,10 +238,7 @@ public CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType() { */ public CosmosDbLinkedService withServicePrincipalCredentialType( CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); + this.servicePrincipalCredentialType = servicePrincipalCredentialType; return this; } @@ -224,7 +251,7 @@ public CosmosDbLinkedService withServicePrincipalCredentialType( * @return the servicePrincipalCredential value. */ public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); + return this.servicePrincipalCredential; } /** @@ -237,10 +264,7 @@ public SecretBase servicePrincipalCredential() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); + this.servicePrincipalCredential = servicePrincipalCredential; return this; } @@ -251,7 +275,7 @@ public CosmosDbLinkedService withServicePrincipalCredential(SecretBase servicePr * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -262,10 +286,7 @@ public Object tenant() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -277,7 +298,7 @@ public CosmosDbLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -289,10 +310,7 @@ public Object azureCloudType() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -303,7 +321,7 @@ public CosmosDbLinkedService withAzureCloudType(Object azureCloudType) { * @return the connectionMode value. */ public CosmosDbConnectionMode connectionMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionMode(); + return this.connectionMode; } /** @@ -314,10 +332,7 @@ public CosmosDbConnectionMode connectionMode() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withConnectionMode(CosmosDbConnectionMode connectionMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionMode(connectionMode); + this.connectionMode = connectionMode; return this; } @@ -328,7 +343,7 @@ public CosmosDbLinkedService withConnectionMode(CosmosDbConnectionMode connectio * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -339,10 +354,35 @@ public Object encryptedCredential() { * @return the CosmosDbLinkedService object itself. */ public CosmosDbLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -354,13 +394,11 @@ public CosmosDbLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbLinkedService")); - } else { - innerTypeProperties().validate(); + if (accountKey() != null) { + accountKey().validate(); + } + if (servicePrincipalCredential() != null) { + servicePrincipalCredential().validate(); } } } 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 d85a037cc4d46..39085f6beffb2 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiCollectionDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,24 +17,38 @@ /** The CosmosDB (MongoDB API) database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CosmosDbMongoDbApiCollection") +@JsonFlatten @Fluent -public final class CosmosDbMongoDbApiCollectionDataset extends Dataset { +public class CosmosDbMongoDbApiCollectionDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(CosmosDbMongoDbApiCollectionDataset.class); /* - * CosmosDB (MongoDB API) database dataset properties. + * The collection name of the CosmosDB (MongoDB API) database. Type: string + * (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbMongoDbApiCollectionDatasetTypeProperties innerTypeProperties = - new CosmosDbMongoDbApiCollectionDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.collection", required = true) + private Object collection; /** - * Get the innerTypeProperties property: CosmosDB (MongoDB API) database dataset properties. + * Get the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or + * Expression with resultType string). + * + * @return the collection value. + */ + public Object collection() { + return this.collection; + } + + /** + * Set the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or + * Expression with resultType string). * - * @return the innerTypeProperties value. + * @param collection the collection value to set. + * @return the CosmosDbMongoDbApiCollectionDataset object itself. */ - private CosmosDbMongoDbApiCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public CosmosDbMongoDbApiCollectionDataset withCollection(Object collection) { + this.collection = collection; + return this; } /** {@inheritDoc} */ @@ -86,31 +100,6 @@ public CosmosDbMongoDbApiCollectionDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collection(); - } - - /** - * Set the collection property: The collection name of the CosmosDB (MongoDB API) database. Type: string (or - * Expression with resultType string). - * - * @param collection the collection value to set. - * @return the CosmosDbMongoDbApiCollectionDataset object itself. - */ - public CosmosDbMongoDbApiCollectionDataset withCollection(Object collection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollection(collection); - return this; - } - /** * Validates the instance. * @@ -119,13 +108,11 @@ public CosmosDbMongoDbApiCollectionDataset withCollection(Object collection) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (collection() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbMongoDbApiCollectionDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property collection in model CosmosDbMongoDbApiCollectionDataset")); } } } 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 6417d12a4e180..fcd75b4c5771a 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbMongoDbApiLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,33 @@ /** Linked service for CosmosDB (MongoDB API) data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CosmosDbMongoDbApi") +@JsonFlatten @Fluent -public final class CosmosDbMongoDbApiLinkedService extends LinkedService { +public class CosmosDbMongoDbApiLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(CosmosDbMongoDbApiLinkedService.class); /* - * CosmosDB (MongoDB API) linked service properties. + * Whether the CosmosDB (MongoDB API) server version is higher than 3.2. + * The default value is false. Type: boolean (or Expression with resultType + * boolean). */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbMongoDbApiLinkedServiceTypeProperties innerTypeProperties = - new CosmosDbMongoDbApiLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.isServerVersionAbove32") + private Object isServerVersionAbove32; - /** - * Get the innerTypeProperties property: CosmosDB (MongoDB API) linked service properties. - * - * @return the innerTypeProperties value. + /* + * The CosmosDB (MongoDB API) connection string. Type: string, SecureString + * or AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - private CosmosDbMongoDbApiLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CosmosDbMongoDbApiLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The name of the CosmosDB (MongoDB API) database that you want to access. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; /** * Get the isServerVersionAbove32 property: Whether the CosmosDB (MongoDB API) server version is higher than 3.2. @@ -72,7 +52,7 @@ public CosmosDbMongoDbApiLinkedService withAnnotations(List annotations) * @return the isServerVersionAbove32 value. */ public Object isServerVersionAbove32() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().isServerVersionAbove32(); + return this.isServerVersionAbove32; } /** @@ -83,10 +63,7 @@ public Object isServerVersionAbove32() { * @return the CosmosDbMongoDbApiLinkedService object itself. */ public CosmosDbMongoDbApiLinkedService withIsServerVersionAbove32(Object isServerVersionAbove32) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withIsServerVersionAbove32(isServerVersionAbove32); + this.isServerVersionAbove32 = isServerVersionAbove32; return this; } @@ -97,7 +74,7 @@ public CosmosDbMongoDbApiLinkedService withIsServerVersionAbove32(Object isServe * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -108,10 +85,7 @@ public Object connectionString() { * @return the CosmosDbMongoDbApiLinkedService object itself. */ public CosmosDbMongoDbApiLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -122,7 +96,7 @@ public CosmosDbMongoDbApiLinkedService withConnectionString(Object connectionStr * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -133,10 +107,35 @@ public Object database() { * @return the CosmosDbMongoDbApiLinkedService object itself. */ public CosmosDbMongoDbApiLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbMongoDbApiLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbMongoDbApiLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbMongoDbApiLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbMongoDbApiLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public CosmosDbMongoDbApiLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -148,13 +147,17 @@ public CosmosDbMongoDbApiLinkedService withDatabase(Object database) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property connectionString in model CosmosDbMongoDbApiLinkedService")); + } + if (database() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbMongoDbApiLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property database in model CosmosDbMongoDbApiLinkedService")); } } } 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 9732ea9d44443..02259f8092295 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CosmosDbSqlApiCollectionDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,24 +17,38 @@ /** Microsoft Azure CosmosDB (SQL API) Collection dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CosmosDbSqlApiCollection") +@JsonFlatten @Fluent -public final class CosmosDbSqlApiCollectionDataset extends Dataset { +public class CosmosDbSqlApiCollectionDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(CosmosDbSqlApiCollectionDataset.class); /* - * CosmosDB (SQL API) Collection dataset properties. + * CosmosDB (SQL API) collection name. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private CosmosDbSqlApiCollectionDatasetTypeProperties innerTypeProperties = - new CosmosDbSqlApiCollectionDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.collectionName", required = true) + private Object collectionName; /** - * Get the innerTypeProperties property: CosmosDB (SQL API) Collection dataset properties. + * Get the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType + * string). + * + * @return the collectionName value. + */ + public Object collectionName() { + return this.collectionName; + } + + /** + * Set the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param collectionName the collectionName value to set. + * @return the CosmosDbSqlApiCollectionDataset object itself. */ - private CosmosDbSqlApiCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public CosmosDbSqlApiCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; } /** {@inheritDoc} */ @@ -86,31 +100,6 @@ public CosmosDbSqlApiCollectionDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collectionName(); - } - - /** - * Set the collectionName property: CosmosDB (SQL API) collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the CosmosDbSqlApiCollectionDataset object itself. - */ - public CosmosDbSqlApiCollectionDataset withCollectionName(Object collectionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CosmosDbSqlApiCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollectionName(collectionName); - return this; - } - /** * Validates the instance. * @@ -119,13 +108,11 @@ public CosmosDbSqlApiCollectionDataset withCollectionName(Object collectionName) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (collectionName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model CosmosDbSqlApiCollectionDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property collectionName in model CosmosDbSqlApiCollectionDataset")); } } } 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 8677848026071..249a905411231 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 @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CouchbaseLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Couchbase server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Couchbase") +@JsonFlatten @Fluent -public final class CouchbaseLinkedService extends LinkedService { +public class CouchbaseLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(CouchbaseLinkedService.class); /* - * Couchbase server linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private CouchbaseLinkedServiceTypeProperties innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Couchbase server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of credString in connection string. */ - private CouchbaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.credString") + private AzureKeyVaultSecretReference credString; - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public CouchbaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public CouchbaseLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the CouchbaseLinkedService object itself. */ public CouchbaseLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public CouchbaseLinkedService withConnectionString(Object connectionString) { * @return the credString value. */ public AzureKeyVaultSecretReference credString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credString(); + return this.credString; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference credString() { * @return the CouchbaseLinkedService object itself. */ public CouchbaseLinkedService withCredString(AzureKeyVaultSecretReference credString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredString(credString); + this.credString = credString; return this; } @@ -119,7 +92,7 @@ public CouchbaseLinkedService withCredString(AzureKeyVaultSecretReference credSt * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the CouchbaseLinkedService object itself. */ public CouchbaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CouchbaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public CouchbaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public CouchbaseLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CouchbaseLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public CouchbaseLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public CouchbaseLinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CouchbaseLinkedService")); - } else { - innerTypeProperties().validate(); + if (credString() != null) { + credString().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 3b40a06c4b042..ae58e70295f8f 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,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Couchbase server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CouchbaseTable") +@JsonFlatten @Fluent -public final class CouchbaseTableDataset extends Dataset { +public class CouchbaseTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(CouchbaseTableDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the CouchbaseTableDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public CouchbaseTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public CouchbaseTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the CouchbaseTableDataset object itself. - */ - public CouchbaseTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public CouchbaseTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } 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 f88b4300b9024..43899f02cab9c 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 @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CustomActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,66 +18,59 @@ /** Custom activity type. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Custom") +@JsonFlatten @Fluent -public final class CustomActivity extends ExecutionActivity { +public class CustomActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomActivity.class); /* - * Custom activity properties. + * Command for custom activity Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private CustomActivityTypeProperties innerTypeProperties = new CustomActivityTypeProperties(); + @JsonProperty(value = "typeProperties.command", required = true) + private Object command; - /** - * Get the innerTypeProperties property: Custom activity properties. - * - * @return the innerTypeProperties value. + /* + * Resource linked service reference. */ - private CustomActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.resourceLinkedService") + private LinkedServiceReference resourceLinkedService; - /** {@inheritDoc} */ - @Override - public CustomActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public CustomActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Folder path for resource files Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; - /** {@inheritDoc} */ - @Override - public CustomActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Reference objects + */ + @JsonProperty(value = "typeProperties.referenceObjects") + private CustomActivityReferenceObject referenceObjects; - /** {@inheritDoc} */ - @Override - public CustomActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * User defined property bag. There is no restriction on the keys or values + * that can be used. The user specified custom activity has the full + * responsibility to consume and interpret the content defined. + */ + @JsonProperty(value = "typeProperties.extendedProperties") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map extendedProperties; - /** {@inheritDoc} */ - @Override - public CustomActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * The retention time for the files submitted for custom activity. Type: + * double (or Expression with resultType double). + */ + @JsonProperty(value = "typeProperties.retentionTimeInDays") + private Object retentionTimeInDays; - /** {@inheritDoc} */ - @Override - public CustomActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Elevation level and scope for the user, default is nonadmin task. Type: + * string (or Expression with resultType double). + */ + @JsonProperty(value = "typeProperties.autoUserSpecification") + private Object autoUserSpecification; /** * Get the command property: Command for custom activity Type: string (or Expression with resultType string). @@ -84,7 +78,7 @@ public CustomActivity withUserProperties(List userProperties) { * @return the command value. */ public Object command() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().command(); + return this.command; } /** @@ -94,10 +88,7 @@ public Object command() { * @return the CustomActivity object itself. */ public CustomActivity withCommand(Object command) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withCommand(command); + this.command = command; return this; } @@ -107,7 +98,7 @@ public CustomActivity withCommand(Object command) { * @return the resourceLinkedService value. */ public LinkedServiceReference resourceLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().resourceLinkedService(); + return this.resourceLinkedService; } /** @@ -117,10 +108,7 @@ public LinkedServiceReference resourceLinkedService() { * @return the CustomActivity object itself. */ public CustomActivity withResourceLinkedService(LinkedServiceReference resourceLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withResourceLinkedService(resourceLinkedService); + this.resourceLinkedService = resourceLinkedService; return this; } @@ -130,7 +118,7 @@ public CustomActivity withResourceLinkedService(LinkedServiceReference resourceL * @return the folderPath value. */ public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); + return this.folderPath; } /** @@ -140,10 +128,7 @@ public Object folderPath() { * @return the CustomActivity object itself. */ public CustomActivity withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); + this.folderPath = folderPath; return this; } @@ -153,7 +138,7 @@ public CustomActivity withFolderPath(Object folderPath) { * @return the referenceObjects value. */ public CustomActivityReferenceObject referenceObjects() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().referenceObjects(); + return this.referenceObjects; } /** @@ -163,10 +148,7 @@ public CustomActivityReferenceObject referenceObjects() { * @return the CustomActivity object itself. */ public CustomActivity withReferenceObjects(CustomActivityReferenceObject referenceObjects) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withReferenceObjects(referenceObjects); + this.referenceObjects = referenceObjects; return this; } @@ -178,7 +160,7 @@ public CustomActivity withReferenceObjects(CustomActivityReferenceObject referen * @return the extendedProperties value. */ public Map extendedProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().extendedProperties(); + return this.extendedProperties; } /** @@ -190,10 +172,7 @@ public Map extendedProperties() { * @return the CustomActivity object itself. */ public CustomActivity withExtendedProperties(Map extendedProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withExtendedProperties(extendedProperties); + this.extendedProperties = extendedProperties; return this; } @@ -204,7 +183,7 @@ public CustomActivity withExtendedProperties(Map extendedPropert * @return the retentionTimeInDays value. */ public Object retentionTimeInDays() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().retentionTimeInDays(); + return this.retentionTimeInDays; } /** @@ -215,10 +194,7 @@ public Object retentionTimeInDays() { * @return the CustomActivity object itself. */ public CustomActivity withRetentionTimeInDays(Object retentionTimeInDays) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withRetentionTimeInDays(retentionTimeInDays); + this.retentionTimeInDays = retentionTimeInDays; return this; } @@ -229,7 +205,7 @@ public CustomActivity withRetentionTimeInDays(Object retentionTimeInDays) { * @return the autoUserSpecification value. */ public Object autoUserSpecification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUserSpecification(); + return this.autoUserSpecification; } /** @@ -240,10 +216,49 @@ public Object autoUserSpecification() { * @return the CustomActivity object itself. */ public CustomActivity withAutoUserSpecification(Object autoUserSpecification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomActivityTypeProperties(); - } - this.innerTypeProperties().withAutoUserSpecification(autoUserSpecification); + this.autoUserSpecification = autoUserSpecification; + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -255,13 +270,16 @@ public CustomActivity withAutoUserSpecification(Object autoUserSpecification) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (command() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CustomActivity")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property command in model CustomActivity")); + } + if (resourceLinkedService() != null) { + resourceLinkedService().validate(); + } + if (referenceObjects() != null) { + referenceObjects().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java index e48fb624bec2f..e03fd2761e61c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CustomEventsTrigger.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.CustomEventsTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,45 +16,38 @@ /** Trigger that runs every time a custom event is received. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CustomEventsTrigger") +@JsonFlatten @Fluent -public final class CustomEventsTrigger extends MultiplePipelineTrigger { +public class CustomEventsTrigger extends MultiplePipelineTrigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomEventsTrigger.class); /* - * Custom Events Trigger properties. + * The event subject must begin with the pattern provided for trigger to + * fire. At least one of these must be provided: subjectBeginsWith, + * subjectEndsWith. */ - @JsonProperty(value = "typeProperties", required = true) - private CustomEventsTriggerTypeProperties innerTypeProperties = new CustomEventsTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.subjectBeginsWith") + private String subjectBeginsWith; - /** - * Get the innerTypeProperties property: Custom Events Trigger properties. - * - * @return the innerTypeProperties value. + /* + * The event subject must end with the pattern provided for trigger to + * fire. At least one of these must be provided: subjectBeginsWith, + * subjectEndsWith. */ - private CustomEventsTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public CustomEventsTrigger withPipelines(List pipelines) { - super.withPipelines(pipelines); - return this; - } + @JsonProperty(value = "typeProperties.subjectEndsWith") + private String subjectEndsWith; - /** {@inheritDoc} */ - @Override - public CustomEventsTrigger withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The list of event types that cause this trigger to fire. + */ + @JsonProperty(value = "typeProperties.events", required = true) + private List events; - /** {@inheritDoc} */ - @Override - public CustomEventsTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The ARM resource ID of the Azure Event Grid Topic. + */ + @JsonProperty(value = "typeProperties.scope", required = true) + private String scope; /** * Get the subjectBeginsWith property: The event subject must begin with the pattern provided for trigger to fire. @@ -63,7 +56,7 @@ public CustomEventsTrigger withAnnotations(List annotations) { * @return the subjectBeginsWith value. */ public String subjectBeginsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subjectBeginsWith(); + return this.subjectBeginsWith; } /** @@ -74,10 +67,7 @@ public String subjectBeginsWith() { * @return the CustomEventsTrigger object itself. */ public CustomEventsTrigger withSubjectBeginsWith(String subjectBeginsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withSubjectBeginsWith(subjectBeginsWith); + this.subjectBeginsWith = subjectBeginsWith; return this; } @@ -88,7 +78,7 @@ public CustomEventsTrigger withSubjectBeginsWith(String subjectBeginsWith) { * @return the subjectEndsWith value. */ public String subjectEndsWith() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subjectEndsWith(); + return this.subjectEndsWith; } /** @@ -99,10 +89,7 @@ public String subjectEndsWith() { * @return the CustomEventsTrigger object itself. */ public CustomEventsTrigger withSubjectEndsWith(String subjectEndsWith) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withSubjectEndsWith(subjectEndsWith); + this.subjectEndsWith = subjectEndsWith; return this; } @@ -112,7 +99,7 @@ public CustomEventsTrigger withSubjectEndsWith(String subjectEndsWith) { * @return the events value. */ public List events() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().events(); + return this.events; } /** @@ -122,10 +109,7 @@ public List events() { * @return the CustomEventsTrigger object itself. */ public CustomEventsTrigger withEvents(List events) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withEvents(events); + this.events = events; return this; } @@ -135,7 +119,7 @@ public CustomEventsTrigger withEvents(List events) { * @return the scope value. */ public String scope() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scope(); + return this.scope; } /** @@ -145,10 +129,28 @@ public String scope() { * @return the CustomEventsTrigger object itself. */ public CustomEventsTrigger withScope(String scope) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new CustomEventsTriggerTypeProperties(); - } - this.innerTypeProperties().withScope(scope); + this.scope = scope; + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomEventsTrigger withPipelines(List pipelines) { + super.withPipelines(pipelines); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomEventsTrigger withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public CustomEventsTrigger withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -160,13 +162,15 @@ public CustomEventsTrigger withScope(String scope) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (events() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property events in model CustomEventsTrigger")); + } + if (scope() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model CustomEventsTrigger")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property scope in model CustomEventsTrigger")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java index 20ebcbeea48c3..cceda40c1bf53 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlow.java @@ -22,6 +22,7 @@ @JsonTypeName("DataFlow") @JsonSubTypes({ @JsonSubTypes.Type(name = "MappingDataFlow", value = MappingDataFlow.class), + @JsonSubTypes.Type(name = "Flowlet", value = Flowlet.class), @JsonSubTypes.Type(name = "WranglingDataFlow", value = WranglingDataFlow.class) }) @Fluent diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java index 87521ba07a1ab..49aa50d5ab3b0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowDebugPackage.java @@ -31,6 +31,12 @@ public final class DataFlowDebugPackage { @JsonProperty(value = "dataFlow") private DataFlowDebugResource dataFlow; + /* + * List of Data flows + */ + @JsonProperty(value = "dataFlows") + private List dataFlows; + /* * List of datasets. */ @@ -100,6 +106,26 @@ public DataFlowDebugPackage withDataFlow(DataFlowDebugResource dataFlow) { return this; } + /** + * Get the dataFlows property: List of Data flows. + * + * @return the dataFlows value. + */ + public List dataFlows() { + return this.dataFlows; + } + + /** + * Set the dataFlows property: List of Data flows. + * + * @param dataFlows the dataFlows value to set. + * @return the DataFlowDebugPackage object itself. + */ + public DataFlowDebugPackage withDataFlows(List dataFlows) { + this.dataFlows = dataFlows; + return this; + } + /** * Get the datasets property: List of datasets. * @@ -218,6 +244,9 @@ public void validate() { if (dataFlow() != null) { dataFlow().validate(); } + if (dataFlows() != null) { + dataFlows().forEach(e -> e.validate()); + } if (datasets() != null) { datasets().forEach(e -> e.validate()); } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java index 8e336a3c3419b..547cbb2ad59cb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSink.java @@ -106,6 +106,13 @@ public DataFlowSink withDescription(String description) { return this; } + /** {@inheritDoc} */ + @Override + public DataFlowSink withFlowlet(DataFlowReference flowlet) { + super.withFlowlet(flowlet); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java index 14df3a146e38b..e1e76e7b977f6 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowSource.java @@ -106,6 +106,13 @@ public DataFlowSource withDescription(String description) { return this; } + /** {@inheritDoc} */ + @Override + public DataFlowSource withFlowlet(DataFlowReference flowlet) { + super.withFlowlet(flowlet); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java index befd14bec5991..fa65e9455d92b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataLakeAnalyticsUsqlActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DataLakeAnalyticsUsqlActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,67 +18,61 @@ /** Data Lake Analytics U-SQL activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DataLakeAnalyticsU-SQL") +@JsonFlatten @Fluent -public final class DataLakeAnalyticsUsqlActivity extends ExecutionActivity { +public class DataLakeAnalyticsUsqlActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeAnalyticsUsqlActivity.class); /* - * Data Lake Analytics U-SQL activity properties. + * Case-sensitive path to folder that contains the U-SQL script. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DataLakeAnalyticsUsqlActivityTypeProperties innerTypeProperties = - new DataLakeAnalyticsUsqlActivityTypeProperties(); + @JsonProperty(value = "typeProperties.scriptPath", required = true) + private Object scriptPath; - /** - * Get the innerTypeProperties property: Data Lake Analytics U-SQL activity properties. - * - * @return the innerTypeProperties value. + /* + * Script linked service reference. */ - private DataLakeAnalyticsUsqlActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.scriptLinkedService", required = true) + private LinkedServiceReference scriptLinkedService; - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * The maximum number of nodes simultaneously used to run the job. Default + * value is 1. Type: integer (or Expression with resultType integer), + * minimum: 1. + */ + @JsonProperty(value = "typeProperties.degreeOfParallelism") + private Object degreeOfParallelism; - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Determines which jobs out of all that are queued should be selected to + * run first. The lower the number, the higher the priority. Default value + * is 1000. Type: integer (or Expression with resultType integer), minimum: + * 1. + */ + @JsonProperty(value = "typeProperties.priority") + private Object priority; - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Parameters for U-SQL job request. + */ + @JsonProperty(value = "typeProperties.parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Runtime version of the U-SQL engine to use. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.runtimeVersion") + private Object runtimeVersion; - /** {@inheritDoc} */ - @Override - public DataLakeAnalyticsUsqlActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Compilation mode of U-SQL. Must be one of these values : Semantic, Full + * and SingleBox. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.compilationMode") + private Object compilationMode; /** * Get the scriptPath property: Case-sensitive path to folder that contains the U-SQL script. Type: string (or @@ -86,7 +81,7 @@ public DataLakeAnalyticsUsqlActivity withUserProperties(List userP * @return the scriptPath value. */ public Object scriptPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptPath(); + return this.scriptPath; } /** @@ -97,10 +92,7 @@ public Object scriptPath() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withScriptPath(Object scriptPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withScriptPath(scriptPath); + this.scriptPath = scriptPath; return this; } @@ -110,7 +102,7 @@ public DataLakeAnalyticsUsqlActivity withScriptPath(Object scriptPath) { * @return the scriptLinkedService value. */ public LinkedServiceReference scriptLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLinkedService(); + return this.scriptLinkedService; } /** @@ -120,10 +112,7 @@ public LinkedServiceReference scriptLinkedService() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withScriptLinkedService(scriptLinkedService); + this.scriptLinkedService = scriptLinkedService; return this; } @@ -134,7 +123,7 @@ public DataLakeAnalyticsUsqlActivity withScriptLinkedService(LinkedServiceRefere * @return the degreeOfParallelism value. */ public Object degreeOfParallelism() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().degreeOfParallelism(); + return this.degreeOfParallelism; } /** @@ -145,10 +134,7 @@ public Object degreeOfParallelism() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withDegreeOfParallelism(Object degreeOfParallelism) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withDegreeOfParallelism(degreeOfParallelism); + this.degreeOfParallelism = degreeOfParallelism; return this; } @@ -160,7 +146,7 @@ public DataLakeAnalyticsUsqlActivity withDegreeOfParallelism(Object degreeOfPara * @return the priority value. */ public Object priority() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().priority(); + return this.priority; } /** @@ -172,10 +158,7 @@ public Object priority() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withPriority(Object priority) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withPriority(priority); + this.priority = priority; return this; } @@ -185,7 +168,7 @@ public DataLakeAnalyticsUsqlActivity withPriority(Object priority) { * @return the parameters value. */ public Map parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); + return this.parameters; } /** @@ -195,10 +178,7 @@ public Map parameters() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withParameters(Map parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); + this.parameters = parameters; return this; } @@ -209,7 +189,7 @@ public DataLakeAnalyticsUsqlActivity withParameters(Map paramete * @return the runtimeVersion value. */ public Object runtimeVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runtimeVersion(); + return this.runtimeVersion; } /** @@ -220,10 +200,7 @@ public Object runtimeVersion() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withRuntimeVersion(Object runtimeVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withRuntimeVersion(runtimeVersion); + this.runtimeVersion = runtimeVersion; return this; } @@ -234,7 +211,7 @@ public DataLakeAnalyticsUsqlActivity withRuntimeVersion(Object runtimeVersion) { * @return the compilationMode value. */ public Object compilationMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compilationMode(); + return this.compilationMode; } /** @@ -245,10 +222,49 @@ public Object compilationMode() { * @return the DataLakeAnalyticsUsqlActivity object itself. */ public DataLakeAnalyticsUsqlActivity withCompilationMode(Object compilationMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DataLakeAnalyticsUsqlActivityTypeProperties(); - } - this.innerTypeProperties().withCompilationMode(compilationMode); + this.compilationMode = compilationMode; + return this; + } + + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsUsqlActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsUsqlActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsUsqlActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsUsqlActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsUsqlActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public DataLakeAnalyticsUsqlActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -260,13 +276,19 @@ public DataLakeAnalyticsUsqlActivity withCompilationMode(Object compilationMode) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (scriptPath() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property scriptPath in model DataLakeAnalyticsUsqlActivity")); + } + if (scriptLinkedService() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DataLakeAnalyticsUsqlActivity")); + "Missing required property scriptLinkedService in model DataLakeAnalyticsUsqlActivity")); } else { - innerTypeProperties().validate(); + scriptLinkedService().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java index 75b3595ca5eb5..06eaf1d51133e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksNotebookActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksNotebookActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,67 +18,34 @@ /** DatabricksNotebook activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DatabricksNotebook") +@JsonFlatten @Fluent -public final class DatabricksNotebookActivity extends ExecutionActivity { +public class DatabricksNotebookActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabricksNotebookActivity.class); /* - * Databricks Notebook activity properties. + * The absolute path of the notebook to be run in the Databricks Workspace. + * This path must begin with a slash. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DatabricksNotebookActivityTypeProperties innerTypeProperties = - new DatabricksNotebookActivityTypeProperties(); + @JsonProperty(value = "typeProperties.notebookPath", required = true) + private Object notebookPath; - /** - * Get the innerTypeProperties property: Databricks Notebook activity properties. - * - * @return the innerTypeProperties value. + /* + * Base parameters to be used for each run of this job.If the notebook + * takes a parameter that is not specified, the default value from the + * notebook will be used. */ - private DatabricksNotebookActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.baseParameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map baseParameters; - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksNotebookActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * A list of libraries to be installed on the cluster that will execute the + * job. + */ + @JsonProperty(value = "typeProperties.libraries") + private List> libraries; /** * Get the notebookPath property: The absolute path of the notebook to be run in the Databricks Workspace. This path @@ -86,7 +54,7 @@ public DatabricksNotebookActivity withUserProperties(List userProp * @return the notebookPath value. */ public Object notebookPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().notebookPath(); + return this.notebookPath; } /** @@ -97,10 +65,7 @@ public Object notebookPath() { * @return the DatabricksNotebookActivity object itself. */ public DatabricksNotebookActivity withNotebookPath(Object notebookPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties(); - } - this.innerTypeProperties().withNotebookPath(notebookPath); + this.notebookPath = notebookPath; return this; } @@ -111,7 +76,7 @@ public DatabricksNotebookActivity withNotebookPath(Object notebookPath) { * @return the baseParameters value. */ public Map baseParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseParameters(); + return this.baseParameters; } /** @@ -122,10 +87,7 @@ public Map baseParameters() { * @return the DatabricksNotebookActivity object itself. */ public DatabricksNotebookActivity withBaseParameters(Map baseParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties(); - } - this.innerTypeProperties().withBaseParameters(baseParameters); + this.baseParameters = baseParameters; return this; } @@ -135,7 +97,7 @@ public DatabricksNotebookActivity withBaseParameters(Map basePar * @return the libraries value. */ public List> libraries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().libraries(); + return this.libraries; } /** @@ -145,10 +107,49 @@ public List> libraries() { * @return the DatabricksNotebookActivity object itself. */ public DatabricksNotebookActivity withLibraries(List> libraries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksNotebookActivityTypeProperties(); - } - this.innerTypeProperties().withLibraries(libraries); + this.libraries = libraries; + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksNotebookActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksNotebookActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksNotebookActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksNotebookActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksNotebookActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksNotebookActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -160,13 +161,11 @@ public DatabricksNotebookActivity withLibraries(List> librar @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (notebookPath() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DatabricksNotebookActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property notebookPath in model DatabricksNotebookActivity")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java index f37bbd40f2440..57b5d6fa8eeeb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkJarActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkJarActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,67 +17,31 @@ /** DatabricksSparkJar activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DatabricksSparkJar") +@JsonFlatten @Fluent -public final class DatabricksSparkJarActivity extends ExecutionActivity { +public class DatabricksSparkJarActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabricksSparkJarActivity.class); /* - * Databricks SparkJar activity properties. + * The full name of the class containing the main method to be executed. + * This class must be contained in a JAR provided as a library. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DatabricksSparkJarActivityTypeProperties innerTypeProperties = - new DatabricksSparkJarActivityTypeProperties(); + @JsonProperty(value = "typeProperties.mainClassName", required = true) + private Object mainClassName; - /** - * Get the innerTypeProperties property: Databricks SparkJar activity properties. - * - * @return the innerTypeProperties value. + /* + * Parameters that will be passed to the main method. */ - private DatabricksSparkJarActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.parameters") + private List parameters; - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkJarActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * A list of libraries to be installed on the cluster that will execute the + * job. + */ + @JsonProperty(value = "typeProperties.libraries") + private List> libraries; /** * Get the mainClassName property: The full name of the class containing the main method to be executed. This class @@ -86,7 +50,7 @@ public DatabricksSparkJarActivity withUserProperties(List userProp * @return the mainClassName value. */ public Object mainClassName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mainClassName(); + return this.mainClassName; } /** @@ -97,10 +61,7 @@ public Object mainClassName() { * @return the DatabricksSparkJarActivity object itself. */ public DatabricksSparkJarActivity withMainClassName(Object mainClassName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkJarActivityTypeProperties(); - } - this.innerTypeProperties().withMainClassName(mainClassName); + this.mainClassName = mainClassName; return this; } @@ -110,7 +71,7 @@ public DatabricksSparkJarActivity withMainClassName(Object mainClassName) { * @return the parameters value. */ public List parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); + return this.parameters; } /** @@ -120,10 +81,7 @@ public List parameters() { * @return the DatabricksSparkJarActivity object itself. */ public DatabricksSparkJarActivity withParameters(List parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkJarActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); + this.parameters = parameters; return this; } @@ -133,7 +91,7 @@ public DatabricksSparkJarActivity withParameters(List parameters) { * @return the libraries value. */ public List> libraries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().libraries(); + return this.libraries; } /** @@ -143,10 +101,49 @@ public List> libraries() { * @return the DatabricksSparkJarActivity object itself. */ public DatabricksSparkJarActivity withLibraries(List> libraries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkJarActivityTypeProperties(); - } - this.innerTypeProperties().withLibraries(libraries); + this.libraries = libraries; + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkJarActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkJarActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkJarActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkJarActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkJarActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkJarActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -158,13 +155,11 @@ public DatabricksSparkJarActivity withLibraries(List> librar @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (mainClassName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DatabricksSparkJarActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property mainClassName in model DatabricksSparkJarActivity")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java index 64014d9824557..e3c5216d54b80 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DatabricksSparkPythonActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DatabricksSparkPythonActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,67 +17,30 @@ /** DatabricksSparkPython activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DatabricksSparkPython") +@JsonFlatten @Fluent -public final class DatabricksSparkPythonActivity extends ExecutionActivity { +public class DatabricksSparkPythonActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabricksSparkPythonActivity.class); /* - * Databricks SparkPython activity properties. + * The URI of the Python file to be executed. DBFS paths are supported. + * Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DatabricksSparkPythonActivityTypeProperties innerTypeProperties = - new DatabricksSparkPythonActivityTypeProperties(); + @JsonProperty(value = "typeProperties.pythonFile", required = true) + private Object pythonFile; - /** - * Get the innerTypeProperties property: Databricks SparkPython activity properties. - * - * @return the innerTypeProperties value. + /* + * Command line parameters that will be passed to the Python file. */ - private DatabricksSparkPythonActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.parameters") + private List parameters; - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public DatabricksSparkPythonActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * A list of libraries to be installed on the cluster that will execute the + * job. + */ + @JsonProperty(value = "typeProperties.libraries") + private List> libraries; /** * Get the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string @@ -86,7 +49,7 @@ public DatabricksSparkPythonActivity withUserProperties(List userP * @return the pythonFile value. */ public Object pythonFile() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pythonFile(); + return this.pythonFile; } /** @@ -97,10 +60,7 @@ public Object pythonFile() { * @return the DatabricksSparkPythonActivity object itself. */ public DatabricksSparkPythonActivity withPythonFile(Object pythonFile) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkPythonActivityTypeProperties(); - } - this.innerTypeProperties().withPythonFile(pythonFile); + this.pythonFile = pythonFile; return this; } @@ -110,7 +70,7 @@ public DatabricksSparkPythonActivity withPythonFile(Object pythonFile) { * @return the parameters value. */ public List parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); + return this.parameters; } /** @@ -120,10 +80,7 @@ public List parameters() { * @return the DatabricksSparkPythonActivity object itself. */ public DatabricksSparkPythonActivity withParameters(List parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkPythonActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); + this.parameters = parameters; return this; } @@ -133,7 +90,7 @@ public DatabricksSparkPythonActivity withParameters(List parameters) { * @return the libraries value. */ public List> libraries() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().libraries(); + return this.libraries; } /** @@ -143,10 +100,49 @@ public List> libraries() { * @return the DatabricksSparkPythonActivity object itself. */ public DatabricksSparkPythonActivity withLibraries(List> libraries) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DatabricksSparkPythonActivityTypeProperties(); - } - this.innerTypeProperties().withLibraries(libraries); + this.libraries = libraries; + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkPythonActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkPythonActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkPythonActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkPythonActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkPythonActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public DatabricksSparkPythonActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -158,13 +154,11 @@ public DatabricksSparkPythonActivity withLibraries(List> lib @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (pythonFile() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DatabricksSparkPythonActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property pythonFile in model DatabricksSparkPythonActivity")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java index df63ad39675f0..27438756d514d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2LinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Db2LinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,81 @@ /** Linked service for DB2 data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Db2") +@JsonFlatten @Fluent -public final class Db2LinkedService extends LinkedService { +public class Db2LinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(Db2LinkedService.class); /* - * DB2 linked service properties. + * The connection string. It is mutually exclusive with server, database, + * authenticationType, userName, packageCollection and + * certificateCommonName property. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private Db2LinkedServiceTypeProperties innerTypeProperties = new Db2LinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: DB2 linked service properties. - * - * @return the innerTypeProperties value. + /* + * Server name for connection. It is mutually exclusive with + * connectionString property. Type: string (or Expression with resultType + * string). */ - private Db2LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.server") + private Object server; - /** {@inheritDoc} */ - @Override - public Db2LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Database name for connection. It is mutually exclusive with + * connectionString property. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.database") + private Object database; - /** {@inheritDoc} */ - @Override - public Db2LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * AuthenticationType to be used for connection. It is mutually exclusive + * with connectionString property. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private Db2AuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public Db2LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Username for authentication. It is mutually exclusive with + * connectionString property. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public Db2LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Password for authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * Under where packages are created when querying database. It is mutually + * exclusive with connectionString property. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.packageCollection") + private Object packageCollection; + + /* + * Certificate Common Name when TLS is enabled. It is mutually exclusive + * with connectionString property. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.certificateCommonName") + private Object certificateCommonName; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. It is + * mutually exclusive with connectionString property. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. It is mutually exclusive with server, database, @@ -72,7 +101,7 @@ public Db2LinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -84,10 +113,7 @@ public Object connectionString() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -98,7 +124,7 @@ public Db2LinkedService withConnectionString(Object connectionString) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -109,10 +135,7 @@ public Object server() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -123,7 +146,7 @@ public Db2LinkedService withServer(Object server) { * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -134,10 +157,7 @@ public Object database() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; return this; } @@ -148,7 +168,7 @@ public Db2LinkedService withDatabase(Object database) { * @return the authenticationType value. */ public Db2AuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -159,10 +179,7 @@ public Db2AuthenticationType authenticationType() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withAuthenticationType(Db2AuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -173,7 +190,7 @@ public Db2LinkedService withAuthenticationType(Db2AuthenticationType authenticat * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -184,10 +201,7 @@ public Object username() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -197,7 +211,7 @@ public Db2LinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -207,10 +221,7 @@ public SecretBase password() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -221,7 +232,7 @@ public Db2LinkedService withPassword(SecretBase password) { * @return the packageCollection value. */ public Object packageCollection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageCollection(); + return this.packageCollection; } /** @@ -232,10 +243,7 @@ public Object packageCollection() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withPackageCollection(Object packageCollection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPackageCollection(packageCollection); + this.packageCollection = packageCollection; return this; } @@ -246,7 +254,7 @@ public Db2LinkedService withPackageCollection(Object packageCollection) { * @return the certificateCommonName value. */ public Object certificateCommonName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().certificateCommonName(); + return this.certificateCommonName; } /** @@ -257,10 +265,7 @@ public Object certificateCommonName() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withCertificateCommonName(Object certificateCommonName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCertificateCommonName(certificateCommonName); + this.certificateCommonName = certificateCommonName; return this; } @@ -272,7 +277,7 @@ public Db2LinkedService withCertificateCommonName(Object certificateCommonName) * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -284,10 +289,35 @@ public Object encryptedCredential() { * @return the Db2LinkedService object itself. */ public Db2LinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2LinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2LinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2LinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -299,13 +329,8 @@ public Db2LinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model Db2LinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java index 31cbd6641b019..08cf1a36aeb50 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Db2TableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Db2TableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,30 @@ /** The Db2 table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Db2Table") +@JsonFlatten @Fluent -public final class Db2TableDataset extends Dataset { +public class Db2TableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(Db2TableDataset.class); /* - * Db2 table dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private Db2TableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Db2 table dataset properties. - * - * @return the innerTypeProperties value. + /* + * The Db2 schema name. Type: string (or Expression with resultType + * string). */ - private Db2TableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; - /** {@inheritDoc} */ - @Override - public Db2TableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public Db2TableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The Db2 table name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +49,7 @@ public Db2TableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,33 +60,29 @@ public Object tableName() { * @return the Db2TableDataset object itself. */ public Db2TableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2TableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } /** - * Get the schema property: The Db2 schema name. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The Db2 schema name. Type: string (or Expression with resultType + * string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The Db2 schema name. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The Db2 schema name. Type: string (or Expression with resultType + * string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the Db2TableDataset object itself. */ - public Db2TableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2TableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public Db2TableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; return this; } @@ -139,7 +92,7 @@ public Db2TableDataset withSchemaTypePropertiesSchema(Object schema) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -149,10 +102,56 @@ public Object table() { * @return the Db2TableDataset object itself. */ public Db2TableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Db2TableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public Db2TableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +163,5 @@ public Db2TableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java index d11bfc471e945..c1702679509ab 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DeleteActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DeleteActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,66 +16,50 @@ /** Delete activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Delete") +@JsonFlatten @Fluent -public final class DeleteActivity extends ExecutionActivity { +public class DeleteActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(DeleteActivity.class); /* - * Delete activity properties. + * If true, files or sub-folders under current folder path will be deleted + * recursively. Default is false. Type: boolean (or Expression with + * resultType boolean). */ - @JsonProperty(value = "typeProperties", required = true) - private DeleteActivityTypeProperties innerTypeProperties = new DeleteActivityTypeProperties(); + @JsonProperty(value = "typeProperties.recursive") + private Object recursive; - /** - * Get the innerTypeProperties property: Delete activity properties. - * - * @return the innerTypeProperties value. + /* + * The max concurrent connections to connect data source at the same time. */ - private DeleteActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.maxConcurrentConnections") + private Integer maxConcurrentConnections; - /** {@inheritDoc} */ - @Override - public DeleteActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public DeleteActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Whether to record detailed logs of delete-activity execution. Default + * value is false. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableLogging") + private Object enableLogging; - /** {@inheritDoc} */ - @Override - public DeleteActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Log storage settings customer need to provide when enableLogging is + * true. + */ + @JsonProperty(value = "typeProperties.logStorageSettings") + private LogStorageSettings logStorageSettings; - /** {@inheritDoc} */ - @Override - public DeleteActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Delete activity dataset reference. + */ + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; - /** {@inheritDoc} */ - @Override - public DeleteActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Delete activity store settings. + */ + @JsonProperty(value = "typeProperties.storeSettings") + private StoreReadSettings storeSettings; /** * Get the recursive property: If true, files or sub-folders under current folder path will be deleted recursively. @@ -84,7 +68,7 @@ public DeleteActivity withUserProperties(List userProperties) { * @return the recursive value. */ public Object recursive() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().recursive(); + return this.recursive; } /** @@ -95,10 +79,7 @@ public Object recursive() { * @return the DeleteActivity object itself. */ public DeleteActivity withRecursive(Object recursive) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withRecursive(recursive); + this.recursive = recursive; return this; } @@ -109,7 +90,7 @@ public DeleteActivity withRecursive(Object recursive) { * @return the maxConcurrentConnections value. */ public Integer maxConcurrentConnections() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().maxConcurrentConnections(); + return this.maxConcurrentConnections; } /** @@ -120,10 +101,7 @@ public Integer maxConcurrentConnections() { * @return the DeleteActivity object itself. */ public DeleteActivity withMaxConcurrentConnections(Integer maxConcurrentConnections) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withMaxConcurrentConnections(maxConcurrentConnections); + this.maxConcurrentConnections = maxConcurrentConnections; return this; } @@ -134,7 +112,7 @@ public DeleteActivity withMaxConcurrentConnections(Integer maxConcurrentConnecti * @return the enableLogging value. */ public Object enableLogging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableLogging(); + return this.enableLogging; } /** @@ -145,10 +123,7 @@ public Object enableLogging() { * @return the DeleteActivity object itself. */ public DeleteActivity withEnableLogging(Object enableLogging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withEnableLogging(enableLogging); + this.enableLogging = enableLogging; return this; } @@ -158,7 +133,7 @@ public DeleteActivity withEnableLogging(Object enableLogging) { * @return the logStorageSettings value. */ public LogStorageSettings logStorageSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logStorageSettings(); + return this.logStorageSettings; } /** @@ -168,10 +143,7 @@ public LogStorageSettings logStorageSettings() { * @return the DeleteActivity object itself. */ public DeleteActivity withLogStorageSettings(LogStorageSettings logStorageSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withLogStorageSettings(logStorageSettings); + this.logStorageSettings = logStorageSettings; return this; } @@ -181,7 +153,7 @@ public DeleteActivity withLogStorageSettings(LogStorageSettings logStorageSettin * @return the dataset value. */ public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); + return this.dataset; } /** @@ -191,10 +163,7 @@ public DatasetReference dataset() { * @return the DeleteActivity object itself. */ public DeleteActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); + this.dataset = dataset; return this; } @@ -204,7 +173,7 @@ public DeleteActivity withDataset(DatasetReference dataset) { * @return the storeSettings value. */ public StoreReadSettings storeSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storeSettings(); + return this.storeSettings; } /** @@ -214,10 +183,49 @@ public StoreReadSettings storeSettings() { * @return the DeleteActivity object itself. */ public DeleteActivity withStoreSettings(StoreReadSettings storeSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DeleteActivityTypeProperties(); - } - this.innerTypeProperties().withStoreSettings(storeSettings); + this.storeSettings = storeSettings; + return this; + } + + /** {@inheritDoc} */ + @Override + public DeleteActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DeleteActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public DeleteActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public DeleteActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DeleteActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public DeleteActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -229,13 +237,18 @@ public DeleteActivity withStoreSettings(StoreReadSettings storeSettings) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (logStorageSettings() != null) { + logStorageSettings().validate(); + } + if (dataset() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DeleteActivity")); + new IllegalArgumentException("Missing required property dataset in model DeleteActivity")); } else { - innerTypeProperties().validate(); + dataset().validate(); + } + if (storeSettings() != null) { + storeSettings().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java index e9b1e09f16523..00be9d3a6b188 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DelimitedTextDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DelimitedTextDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,82 @@ /** Delimited text dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DelimitedText") +@JsonFlatten @Fluent -public final class DelimitedTextDataset extends Dataset { +public class DelimitedTextDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(DelimitedTextDataset.class); /* - * Delimited text dataset properties. + * The location of the delimited text storage. */ - @JsonProperty(value = "typeProperties") - private DelimitedTextDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; - /** - * Get the innerTypeProperties property: Delimited text dataset properties. - * - * @return the innerTypeProperties value. + /* + * The column delimiter. Type: string (or Expression with resultType + * string). */ - private DelimitedTextDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.columnDelimiter") + private Object columnDelimiter; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The row delimiter. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.rowDelimiter") + private Object rowDelimiter; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } + /* + * The code page name of the preferred encoding. If miss, the default value + * is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name + * column of the table in the following link to set supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encodingName") + private Object encodingName; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + /* + * The data compressionCodec. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.compressionCodec") + private Object compressionCodec; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The data compression method used for DelimitedText. + */ + @JsonProperty(value = "typeProperties.compressionLevel") + private Object compressionLevel; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The quote character. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.quoteChar") + private Object quoteChar; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The escape character. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.escapeChar") + private Object escapeChar; - /** {@inheritDoc} */ - @Override - public DelimitedTextDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * When used as input, treat the first row of data as headers. When used as + * output,write the headers into the output as the first row of data. The + * default value is false. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.firstRowAsHeader") + private Object firstRowAsHeader; + + /* + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.nullValue") + private Object nullValue; /** * Get the location property: The location of the delimited text storage. @@ -91,7 +100,7 @@ public DelimitedTextDataset withFolder(DatasetFolder folder) { * @return the location value. */ public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); + return this.location; } /** @@ -101,10 +110,7 @@ public DatasetLocation location() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); + this.location = location; return this; } @@ -114,7 +120,7 @@ public DelimitedTextDataset withLocation(DatasetLocation location) { * @return the columnDelimiter value. */ public Object columnDelimiter() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().columnDelimiter(); + return this.columnDelimiter; } /** @@ -124,10 +130,7 @@ public Object columnDelimiter() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withColumnDelimiter(Object columnDelimiter) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withColumnDelimiter(columnDelimiter); + this.columnDelimiter = columnDelimiter; return this; } @@ -137,7 +140,7 @@ public DelimitedTextDataset withColumnDelimiter(Object columnDelimiter) { * @return the rowDelimiter value. */ public Object rowDelimiter() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().rowDelimiter(); + return this.rowDelimiter; } /** @@ -147,10 +150,7 @@ public Object rowDelimiter() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withRowDelimiter(Object rowDelimiter) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withRowDelimiter(rowDelimiter); + this.rowDelimiter = rowDelimiter; return this; } @@ -163,7 +163,7 @@ public DelimitedTextDataset withRowDelimiter(Object rowDelimiter) { * @return the encodingName value. */ public Object encodingName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encodingName(); + return this.encodingName; } /** @@ -176,10 +176,7 @@ public Object encodingName() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withEncodingName(Object encodingName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withEncodingName(encodingName); + this.encodingName = encodingName; return this; } @@ -190,7 +187,7 @@ public DelimitedTextDataset withEncodingName(Object encodingName) { * @return the compressionCodec value. */ public Object compressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compressionCodec(); + return this.compressionCodec; } /** @@ -201,10 +198,7 @@ public Object compressionCodec() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withCompressionCodec(Object compressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withCompressionCodec(compressionCodec); + this.compressionCodec = compressionCodec; return this; } @@ -214,7 +208,7 @@ public DelimitedTextDataset withCompressionCodec(Object compressionCodec) { * @return the compressionLevel value. */ public Object compressionLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compressionLevel(); + return this.compressionLevel; } /** @@ -224,10 +218,7 @@ public Object compressionLevel() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withCompressionLevel(Object compressionLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withCompressionLevel(compressionLevel); + this.compressionLevel = compressionLevel; return this; } @@ -237,7 +228,7 @@ public DelimitedTextDataset withCompressionLevel(Object compressionLevel) { * @return the quoteChar value. */ public Object quoteChar() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().quoteChar(); + return this.quoteChar; } /** @@ -247,10 +238,7 @@ public Object quoteChar() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withQuoteChar(Object quoteChar) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withQuoteChar(quoteChar); + this.quoteChar = quoteChar; return this; } @@ -260,7 +248,7 @@ public DelimitedTextDataset withQuoteChar(Object quoteChar) { * @return the escapeChar value. */ public Object escapeChar() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().escapeChar(); + return this.escapeChar; } /** @@ -270,10 +258,7 @@ public Object escapeChar() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withEscapeChar(Object escapeChar) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withEscapeChar(escapeChar); + this.escapeChar = escapeChar; return this; } @@ -285,7 +270,7 @@ public DelimitedTextDataset withEscapeChar(Object escapeChar) { * @return the firstRowAsHeader value. */ public Object firstRowAsHeader() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().firstRowAsHeader(); + return this.firstRowAsHeader; } /** @@ -297,10 +282,7 @@ public Object firstRowAsHeader() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withFirstRowAsHeader(Object firstRowAsHeader) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withFirstRowAsHeader(firstRowAsHeader); + this.firstRowAsHeader = firstRowAsHeader; return this; } @@ -310,7 +292,7 @@ public DelimitedTextDataset withFirstRowAsHeader(Object firstRowAsHeader) { * @return the nullValue value. */ public Object nullValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nullValue(); + return this.nullValue; } /** @@ -320,10 +302,56 @@ public Object nullValue() { * @return the DelimitedTextDataset object itself. */ public DelimitedTextDataset withNullValue(Object nullValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DelimitedTextDatasetTypeProperties(); - } - this.innerTypeProperties().withNullValue(nullValue); + this.nullValue = nullValue; + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public DelimitedTextDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -335,8 +363,8 @@ public DelimitedTextDataset withNullValue(Object nullValue) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java index ee5d634d7474f..8cca44ce007cf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DocumentDbCollectionDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DocumentDbCollectionDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,24 +17,38 @@ /** Microsoft Azure Document Database Collection dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DocumentDbCollection") +@JsonFlatten @Fluent -public final class DocumentDbCollectionDataset extends Dataset { +public class DocumentDbCollectionDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(DocumentDbCollectionDataset.class); /* - * DocumentDB Collection dataset properties. + * Document Database collection name. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DocumentDbCollectionDatasetTypeProperties innerTypeProperties = - new DocumentDbCollectionDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.collectionName", required = true) + private Object collectionName; /** - * Get the innerTypeProperties property: DocumentDB Collection dataset properties. + * Get the collectionName property: Document Database collection name. Type: string (or Expression with resultType + * string). + * + * @return the collectionName value. + */ + public Object collectionName() { + return this.collectionName; + } + + /** + * Set the collectionName property: Document Database collection name. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param collectionName the collectionName value to set. + * @return the DocumentDbCollectionDataset object itself. */ - private DocumentDbCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public DocumentDbCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; } /** {@inheritDoc} */ @@ -86,31 +100,6 @@ public DocumentDbCollectionDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collectionName(); - } - - /** - * Set the collectionName property: Document Database collection name. Type: string (or Expression with resultType - * string). - * - * @param collectionName the collectionName value to set. - * @return the DocumentDbCollectionDataset object itself. - */ - public DocumentDbCollectionDataset withCollectionName(Object collectionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DocumentDbCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollectionName(collectionName); - return this; - } - /** * Validates the instance. * @@ -119,13 +108,11 @@ public DocumentDbCollectionDataset withCollectionName(Object collectionName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (collectionName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DocumentDbCollectionDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property collectionName in model DocumentDbCollectionDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java index cdb4a911f8eb7..434a2f21d9ff7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DrillLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Drill server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Drill") +@JsonFlatten @Fluent -public final class DrillLinkedService extends LinkedService { +public class DrillLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(DrillLinkedService.class); /* - * Drill server linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private DrillLinkedServiceTypeProperties innerTypeProperties = new DrillLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Drill server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private DrillLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; - /** {@inheritDoc} */ - @Override - public DrillLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public DrillLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the DrillLinkedService object itself. */ public DrillLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public DrillLinkedService withConnectionString(Object connectionString) { * @return the pwd value. */ public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); + return this.pwd; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference pwd() { * @return the DrillLinkedService object itself. */ public DrillLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); + this.pwd = pwd; return this; } @@ -119,7 +92,7 @@ public DrillLinkedService withPwd(AzureKeyVaultSecretReference pwd) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the DrillLinkedService object itself. */ public DrillLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public DrillLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DrillLinkedService")); - } else { - innerTypeProperties().validate(); + if (pwd() != null) { + pwd().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java index 775ed149d7da9..464eba6b8ff3c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DrillTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DrillDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Drill server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DrillTable") +@JsonFlatten @Fluent -public final class DrillTableDataset extends Dataset { +public class DrillTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(DrillTableDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private DrillDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Drill. Type: string (or Expression with resultType + * string). */ - private DrillDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public DrillTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public DrillTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Drill. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public DrillTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the DrillTableDataset object itself. */ public DrillTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public DrillTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the DrillTableDataset object itself. */ public DrillTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Drill. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Drill. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Drill. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the DrillTableDataset object itself. */ - public DrillTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DrillDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public DrillTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public DrillTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public DrillTableDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java index 5098a6e3a3b49..6d4e768c3d136 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,56 @@ /** Dynamics AX linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DynamicsAX") +@JsonFlatten @Fluent -public final class DynamicsAXLinkedService extends LinkedService { +public class DynamicsAXLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsAXLinkedService.class); /* - * Dynamics AX linked service properties. + * The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData + * endpoint. */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsAXLinkedServiceTypeProperties innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: Dynamics AX linked service properties. - * - * @return the innerTypeProperties value. + /* + * Specify the application's client ID. Type: string (or Expression with + * resultType string). */ - private DynamicsAXLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Specify the application's key. Mark this field as a SecureString to + * store it securely in Data Factory, or reference a secret stored in Azure + * Key Vault. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specify the tenant information (domain name or tenant ID) under which + * your application resides. Retrieve it by hovering the mouse in the + * top-right corner of the Azure portal. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.tenant", required = true) + private Object tenant; - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specify the resource you are requesting authorization. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.aadResourceId", required = true) + private Object aadResourceId; - /** {@inheritDoc} */ - @Override - public DynamicsAXLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the url property: The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. @@ -70,7 +74,7 @@ public DynamicsAXLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -80,10 +84,7 @@ public Object url() { * @return the DynamicsAXLinkedService object itself. */ public DynamicsAXLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -94,7 +95,7 @@ public DynamicsAXLinkedService withUrl(Object url) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -105,10 +106,7 @@ public Object servicePrincipalId() { * @return the DynamicsAXLinkedService object itself. */ public DynamicsAXLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -120,7 +118,7 @@ public DynamicsAXLinkedService withServicePrincipalId(Object servicePrincipalId) * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -132,10 +130,7 @@ public SecretBase servicePrincipalKey() { * @return the DynamicsAXLinkedService object itself. */ public DynamicsAXLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -147,7 +142,7 @@ public DynamicsAXLinkedService withServicePrincipalKey(SecretBase servicePrincip * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -159,10 +154,7 @@ public Object tenant() { * @return the DynamicsAXLinkedService object itself. */ public DynamicsAXLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -173,7 +165,7 @@ public DynamicsAXLinkedService withTenant(Object tenant) { * @return the aadResourceId value. */ public Object aadResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().aadResourceId(); + return this.aadResourceId; } /** @@ -184,10 +176,7 @@ public Object aadResourceId() { * @return the DynamicsAXLinkedService object itself. */ public DynamicsAXLinkedService withAadResourceId(Object aadResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadResourceId(aadResourceId); + this.aadResourceId = aadResourceId; return this; } @@ -198,7 +187,7 @@ public DynamicsAXLinkedService withAadResourceId(Object aadResourceId) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -209,10 +198,35 @@ public Object encryptedCredential() { * @return the DynamicsAXLinkedService object itself. */ public DynamicsAXLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsAXLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsAXLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsAXLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsAXLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -224,13 +238,35 @@ public DynamicsAXLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property url in model DynamicsAXLinkedService")); + } + if (servicePrincipalId() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsAXLinkedService")); + "Missing required property servicePrincipalId in model DynamicsAXLinkedService")); + } + if (servicePrincipalKey() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property servicePrincipalKey in model DynamicsAXLinkedService")); } else { - innerTypeProperties().validate(); + servicePrincipalKey().validate(); + } + if (tenant() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property tenant in model DynamicsAXLinkedService")); + } + if (aadResourceId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property aadResourceId in model DynamicsAXLinkedService")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java index 5b332fb773457..4ce02eccf0100 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsAXResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsAXResourceDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The path of the Dynamics AX OData entity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DynamicsAXResource") +@JsonFlatten @Fluent -public final class DynamicsAXResourceDataset extends Dataset { +public class DynamicsAXResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsAXResourceDataset.class); /* - * Dynamics AX OData resource dataset properties. + * The path of the Dynamics AX OData entity. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsAXResourceDatasetTypeProperties innerTypeProperties = new DynamicsAXResourceDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.path", required = true) + private Object path; /** - * Get the innerTypeProperties property: Dynamics AX OData resource dataset properties. + * Get the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType + * string). + * + * @return the path value. + */ + public Object path() { + return this.path; + } + + /** + * Set the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param path the path value to set. + * @return the DynamicsAXResourceDataset object itself. */ - private DynamicsAXResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public DynamicsAXResourceDataset withPath(Object path) { + this.path = path; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public DynamicsAXResourceDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The path of the Dynamics AX OData entity. Type: string (or Expression with resultType - * string). - * - * @param path the path value to set. - * @return the DynamicsAXResourceDataset object itself. - */ - public DynamicsAXResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsAXResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - /** * Validates the instance. * @@ -118,13 +108,10 @@ public DynamicsAXResourceDataset withPath(Object path) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (path() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsAXResourceDataset")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property path in model DynamicsAXResourceDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java index b11bb6c596e52..e7c7336d4c88a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmEntityDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmEntityDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Dynamics CRM entity dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DynamicsCrmEntity") +@JsonFlatten @Fluent -public final class DynamicsCrmEntityDataset extends Dataset { +public class DynamicsCrmEntityDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsCrmEntityDataset.class); /* - * Dynamics CRM entity dataset properties. + * The logical name of the entity. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private DynamicsCrmEntityDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; /** - * Get the innerTypeProperties property: Dynamics CRM entity dataset properties. + * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). + * + * @return the entityName value. + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param entityName the entityName value to set. + * @return the DynamicsCrmEntityDataset object itself. */ - private DynamicsCrmEntityDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public DynamicsCrmEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public DynamicsCrmEntityDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entityName(); - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsCrmEntityDataset object itself. - */ - public DynamicsCrmEntityDataset withEntityName(Object entityName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmEntityDatasetTypeProperties(); - } - this.innerTypeProperties().withEntityName(entityName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public DynamicsCrmEntityDataset withEntityName(Object entityName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java index ea1a75df03275..951994c211194 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsCrmLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsCrmLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,109 @@ /** Dynamics CRM linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DynamicsCrm") +@JsonFlatten @Fluent -public final class DynamicsCrmLinkedService extends LinkedService { +public class DynamicsCrmLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsCrmLinkedService.class); /* - * Dynamics CRM linked service properties. + * The deployment type of the Dynamics CRM instance. 'Online' for Dynamics + * CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with + * Ifd. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsCrmLinkedServiceTypeProperties innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private Object deploymentType; - /** - * Get the innerTypeProperties property: Dynamics CRM linked service properties. - * - * @return the innerTypeProperties value. + /* + * The host name of the on-premises Dynamics CRM server. The property is + * required for on-prem and not allowed for online. Type: string (or + * Expression with resultType string). */ - private DynamicsCrmLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.hostName") + private Object hostname; - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The port of on-premises Dynamics CRM server. The property is required + * for on-prem and not allowed for online. Default is 443. Type: integer + * (or Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The URL to the Microsoft Dynamics CRM server. The property is required + * for on-line and not allowed for on-prem. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUri") + private Object serviceUri; - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The organization name of the Dynamics CRM instance. The property is + * required for on-prem and required for online when there are more than + * one Dynamics CRM instances associated with the user. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.organizationName") + private Object organizationName; - /** {@inheritDoc} */ - @Override - public DynamicsCrmLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The authentication type to connect to Dynamics CRM server. 'Office365' + * for online scenario, 'Ifd' for on-premises with Ifd scenario, + * 'AADServicePrincipal' for Server-To-Server authentication in online + * scenario. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private Object authenticationType; + + /* + * User name to access the Dynamics CRM instance. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /* + * Password to access the Dynamics CRM instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The client ID of the application in Azure Active Directory used for + * Server-To-Server authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, + * 'ServicePrincipalCert' for certificate. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredentialType") + private Object servicePrincipalCredentialType; + + /* + * The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + * servicePrincipalCredential can be SecureString or + * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + * 'ServicePrincipalCert', servicePrincipalCredential can only be + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredential") + private SecretBase servicePrincipalCredential; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the deploymentType property: The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM @@ -72,7 +129,7 @@ public DynamicsCrmLinkedService withAnnotations(List annotations) { * @return the deploymentType value. */ public Object deploymentType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().deploymentType(); + return this.deploymentType; } /** @@ -84,10 +141,7 @@ public Object deploymentType() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withDeploymentType(Object deploymentType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeploymentType(deploymentType); + this.deploymentType = deploymentType; return this; } @@ -98,7 +152,7 @@ public DynamicsCrmLinkedService withDeploymentType(Object deploymentType) { * @return the hostname value. */ public Object hostname() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostname(); + return this.hostname; } /** @@ -109,10 +163,7 @@ public Object hostname() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withHostname(Object hostname) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostname(hostname); + this.hostname = hostname; return this; } @@ -123,7 +174,7 @@ public DynamicsCrmLinkedService withHostname(Object hostname) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -134,10 +185,7 @@ public Object port() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -148,7 +196,7 @@ public DynamicsCrmLinkedService withPort(Object port) { * @return the serviceUri value. */ public Object serviceUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUri(); + return this.serviceUri; } /** @@ -159,10 +207,7 @@ public Object serviceUri() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withServiceUri(Object serviceUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUri(serviceUri); + this.serviceUri = serviceUri; return this; } @@ -174,7 +219,7 @@ public DynamicsCrmLinkedService withServiceUri(Object serviceUri) { * @return the organizationName value. */ public Object organizationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().organizationName(); + return this.organizationName; } /** @@ -186,10 +231,7 @@ public Object organizationName() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withOrganizationName(Object organizationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOrganizationName(organizationName); + this.organizationName = organizationName; return this; } @@ -201,7 +243,7 @@ public DynamicsCrmLinkedService withOrganizationName(Object organizationName) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -213,10 +255,7 @@ public Object authenticationType() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -227,7 +266,7 @@ public DynamicsCrmLinkedService withAuthenticationType(Object authenticationType * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -238,10 +277,7 @@ public Object username() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -251,7 +287,7 @@ public DynamicsCrmLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -261,10 +297,7 @@ public SecretBase password() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -275,7 +308,7 @@ public DynamicsCrmLinkedService withPassword(SecretBase password) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -286,10 +319,7 @@ public Object servicePrincipalId() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -301,7 +331,7 @@ public DynamicsCrmLinkedService withServicePrincipalId(Object servicePrincipalId * @return the servicePrincipalCredentialType value. */ public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); + return this.servicePrincipalCredentialType; } /** @@ -313,10 +343,7 @@ public Object servicePrincipalCredentialType() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); + this.servicePrincipalCredentialType = servicePrincipalCredentialType; return this; } @@ -329,7 +356,7 @@ public DynamicsCrmLinkedService withServicePrincipalCredentialType(Object servic * @return the servicePrincipalCredential value. */ public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); + return this.servicePrincipalCredential; } /** @@ -342,10 +369,7 @@ public SecretBase servicePrincipalCredential() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); + this.servicePrincipalCredential = servicePrincipalCredential; return this; } @@ -356,7 +380,7 @@ public DynamicsCrmLinkedService withServicePrincipalCredential(SecretBase servic * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -367,10 +391,35 @@ public Object encryptedCredential() { * @return the DynamicsCrmLinkedService object itself. */ public DynamicsCrmLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsCrmLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsCrmLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsCrmLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsCrmLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsCrmLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -382,13 +431,23 @@ public DynamicsCrmLinkedService withEncryptedCredential(Object encryptedCredenti @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (deploymentType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsCrmLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property deploymentType in model DynamicsCrmLinkedService")); + } + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model DynamicsCrmLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalCredential() != null) { + servicePrincipalCredential().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java index c83f9a43c9997..9a1ac9a528e90 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsEntityDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsEntityDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Dynamics entity dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("DynamicsEntity") +@JsonFlatten @Fluent -public final class DynamicsEntityDataset extends Dataset { +public class DynamicsEntityDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsEntityDataset.class); /* - * Dynamics entity dataset properties. + * The logical name of the entity. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private DynamicsEntityDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; /** - * Get the innerTypeProperties property: Dynamics entity dataset properties. + * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). + * + * @return the entityName value. + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param entityName the entityName value to set. + * @return the DynamicsEntityDataset object itself. */ - private DynamicsEntityDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public DynamicsEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public DynamicsEntityDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @return the entityName value. - */ - public Object entityName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entityName(); - } - - /** - * Set the entityName property: The logical name of the entity. Type: string (or Expression with resultType string). - * - * @param entityName the entityName value to set. - * @return the DynamicsEntityDataset object itself. - */ - public DynamicsEntityDataset withEntityName(Object entityName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsEntityDatasetTypeProperties(); - } - this.innerTypeProperties().withEntityName(entityName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public DynamicsEntityDataset withEntityName(Object entityName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java index 05f1a2d91ff77..9893e33472204 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DynamicsLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.DynamicsLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,109 @@ /** Dynamics linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Dynamics") +@JsonFlatten @Fluent -public final class DynamicsLinkedService extends LinkedService { +public class DynamicsLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicsLinkedService.class); /* - * Dynamics linked service properties. + * The deployment type of the Dynamics instance. 'Online' for Dynamics + * Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private DynamicsLinkedServiceTypeProperties innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private Object deploymentType; - /** - * Get the innerTypeProperties property: Dynamics linked service properties. - * - * @return the innerTypeProperties value. + /* + * The host name of the on-premises Dynamics server. The property is + * required for on-prem and not allowed for online. Type: string (or + * Expression with resultType string). */ - private DynamicsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.hostName") + private Object hostname; - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The port of on-premises Dynamics server. The property is required for + * on-prem and not allowed for online. Default is 443. Type: integer (or + * Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The URL to the Microsoft Dynamics server. The property is required for + * on-line and not allowed for on-prem. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUri") + private Object serviceUri; - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The organization name of the Dynamics instance. The property is required + * for on-prem and required for online when there are more than one + * Dynamics instances associated with the user. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.organizationName") + private Object organizationName; - /** {@inheritDoc} */ - @Override - public DynamicsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The authentication type to connect to Dynamics server. 'Office365' for + * online scenario, 'Ifd' for on-premises with Ifd scenario, + * 'AADServicePrincipal' for Server-To-Server authentication in online + * scenario. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private Object authenticationType; + + /* + * User name to access the Dynamics instance. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /* + * Password to access the Dynamics instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The client ID of the application in Azure Active Directory used for + * Server-To-Server authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * The service principal credential type to use in Server-To-Server + * authentication. 'ServicePrincipalKey' for key/secret, + * 'ServicePrincipalCert' for certificate. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredentialType") + private Object servicePrincipalCredentialType; + + /* + * The credential of the service principal object in Azure Active + * Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', + * servicePrincipalCredential can be SecureString or + * AzureKeyVaultSecretReference. If servicePrincipalCredentialType is + * 'ServicePrincipalCert', servicePrincipalCredential can only be + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.servicePrincipalCredential") + private SecretBase servicePrincipalCredential; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the deploymentType property: The deployment type of the Dynamics instance. 'Online' for Dynamics Online and @@ -71,7 +128,7 @@ public DynamicsLinkedService withAnnotations(List annotations) { * @return the deploymentType value. */ public Object deploymentType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().deploymentType(); + return this.deploymentType; } /** @@ -82,10 +139,7 @@ public Object deploymentType() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withDeploymentType(Object deploymentType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeploymentType(deploymentType); + this.deploymentType = deploymentType; return this; } @@ -96,7 +150,7 @@ public DynamicsLinkedService withDeploymentType(Object deploymentType) { * @return the hostname value. */ public Object hostname() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostname(); + return this.hostname; } /** @@ -107,10 +161,7 @@ public Object hostname() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withHostname(Object hostname) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostname(hostname); + this.hostname = hostname; return this; } @@ -121,7 +172,7 @@ public DynamicsLinkedService withHostname(Object hostname) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -132,10 +183,7 @@ public Object port() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -146,7 +194,7 @@ public DynamicsLinkedService withPort(Object port) { * @return the serviceUri value. */ public Object serviceUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUri(); + return this.serviceUri; } /** @@ -157,10 +205,7 @@ public Object serviceUri() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withServiceUri(Object serviceUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUri(serviceUri); + this.serviceUri = serviceUri; return this; } @@ -172,7 +217,7 @@ public DynamicsLinkedService withServiceUri(Object serviceUri) { * @return the organizationName value. */ public Object organizationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().organizationName(); + return this.organizationName; } /** @@ -184,10 +229,7 @@ public Object organizationName() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withOrganizationName(Object organizationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOrganizationName(organizationName); + this.organizationName = organizationName; return this; } @@ -199,7 +241,7 @@ public DynamicsLinkedService withOrganizationName(Object organizationName) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -211,10 +253,7 @@ public Object authenticationType() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -225,7 +264,7 @@ public DynamicsLinkedService withAuthenticationType(Object authenticationType) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -236,10 +275,7 @@ public Object username() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -249,7 +285,7 @@ public DynamicsLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -259,10 +295,7 @@ public SecretBase password() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -273,7 +306,7 @@ public DynamicsLinkedService withPassword(SecretBase password) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -284,10 +317,7 @@ public Object servicePrincipalId() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -299,7 +329,7 @@ public DynamicsLinkedService withServicePrincipalId(Object servicePrincipalId) { * @return the servicePrincipalCredentialType value. */ public Object servicePrincipalCredentialType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredentialType(); + return this.servicePrincipalCredentialType; } /** @@ -311,10 +341,7 @@ public Object servicePrincipalCredentialType() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withServicePrincipalCredentialType(Object servicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredentialType(servicePrincipalCredentialType); + this.servicePrincipalCredentialType = servicePrincipalCredentialType; return this; } @@ -327,7 +354,7 @@ public DynamicsLinkedService withServicePrincipalCredentialType(Object servicePr * @return the servicePrincipalCredential value. */ public SecretBase servicePrincipalCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalCredential(); + return this.servicePrincipalCredential; } /** @@ -340,10 +367,7 @@ public SecretBase servicePrincipalCredential() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalCredential(servicePrincipalCredential); + this.servicePrincipalCredential = servicePrincipalCredential; return this; } @@ -354,7 +378,7 @@ public DynamicsLinkedService withServicePrincipalCredential(SecretBase servicePr * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -365,10 +389,35 @@ public Object encryptedCredential() { * @return the DynamicsLinkedService object itself. */ public DynamicsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new DynamicsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public DynamicsLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -380,13 +429,23 @@ public DynamicsLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (deploymentType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model DynamicsLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property deploymentType in model DynamicsLinkedService")); + } + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model DynamicsLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalCredential() != null) { + servicePrincipalCredential().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java index 185e310c905fb..fb3e283637ee2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.EloquaLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,59 @@ /** Eloqua server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Eloqua") +@JsonFlatten @Fluent -public final class EloquaLinkedService extends LinkedService { +public class EloquaLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(EloquaLinkedService.class); /* - * Eloqua server linked service properties. + * The endpoint of the Eloqua server. (i.e. eloqua.example.com) */ - @JsonProperty(value = "typeProperties", required = true) - private EloquaLinkedServiceTypeProperties innerTypeProperties = new EloquaLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; - /** - * Get the innerTypeProperties property: Eloqua server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The site name and user name of your Eloqua account in the form: + * sitename/username. (i.e. Eloqua/Alice) */ - private EloquaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The password corresponding to the user name. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public EloquaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the endpoint property: The endpoint of the Eloqua server. (i.e. eloqua.example.com). @@ -70,7 +77,7 @@ public EloquaLinkedService withAnnotations(List annotations) { * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -80,10 +87,7 @@ public Object endpoint() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -94,7 +98,7 @@ public EloquaLinkedService withEndpoint(Object endpoint) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -105,10 +109,7 @@ public Object username() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -118,7 +119,7 @@ public EloquaLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -128,10 +129,7 @@ public SecretBase password() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -142,7 +140,7 @@ public EloquaLinkedService withPassword(SecretBase password) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -153,10 +151,7 @@ public Object useEncryptedEndpoints() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -167,7 +162,7 @@ public EloquaLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoint * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -178,10 +173,7 @@ public Object useHostVerification() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -192,7 +184,7 @@ public EloquaLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -203,10 +195,7 @@ public Object usePeerVerification() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -217,7 +206,7 @@ public EloquaLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -228,10 +217,35 @@ public Object encryptedCredential() { * @return the EloquaLinkedService object itself. */ public EloquaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EloquaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public EloquaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public EloquaLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public EloquaLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public EloquaLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -243,13 +257,18 @@ public EloquaLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (endpoint() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model EloquaLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property endpoint in model EloquaLinkedService")); + } + if (username() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property username in model EloquaLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java index f58dd35d2fd25..2ce4bc61b0dfd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EloquaObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Eloqua server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("EloquaObject") +@JsonFlatten @Fluent -public final class EloquaObjectDataset extends Dataset { +public class EloquaObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(EloquaObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the EloquaObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public EloquaObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public EloquaObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the EloquaObjectDataset object itself. - */ - public EloquaObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public EloquaObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java index 29a7e933474cd..427a79570da83 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/EnvironmentVariableSetup.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.EnvironmentVariableSetupTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,24 +15,22 @@ /** The custom setup of setting environment variable. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("EnvironmentVariableSetup") +@JsonFlatten @Fluent -public final class EnvironmentVariableSetup extends CustomSetupBase { +public class EnvironmentVariableSetup extends CustomSetupBase { @JsonIgnore private final ClientLogger logger = new ClientLogger(EnvironmentVariableSetup.class); /* - * Add environment variable type properties. + * The name of the environment variable. */ - @JsonProperty(value = "typeProperties", required = true) - private EnvironmentVariableSetupTypeProperties innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); + @JsonProperty(value = "typeProperties.variableName", required = true) + private String variableName; - /** - * Get the innerTypeProperties property: Add environment variable type properties. - * - * @return the innerTypeProperties value. + /* + * The value of the environment variable. */ - private EnvironmentVariableSetupTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.variableValue", required = true) + private String variableValue; /** * Get the variableName property: The name of the environment variable. @@ -40,7 +38,7 @@ private EnvironmentVariableSetupTypeProperties innerTypeProperties() { * @return the variableName value. */ public String variableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableName(); + return this.variableName; } /** @@ -50,10 +48,7 @@ public String variableName() { * @return the EnvironmentVariableSetup object itself. */ public EnvironmentVariableSetup withVariableName(String variableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); - } - this.innerTypeProperties().withVariableName(variableName); + this.variableName = variableName; return this; } @@ -63,7 +58,7 @@ public EnvironmentVariableSetup withVariableName(String variableName) { * @return the variableValue value. */ public String variableValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableValue(); + return this.variableValue; } /** @@ -73,10 +68,7 @@ public String variableValue() { * @return the EnvironmentVariableSetup object itself. */ public EnvironmentVariableSetup withVariableValue(String variableValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); - } - this.innerTypeProperties().withVariableValue(variableValue); + this.variableValue = variableValue; return this; } @@ -88,13 +80,17 @@ public EnvironmentVariableSetup withVariableValue(String variableValue) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (variableName() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property variableName in model EnvironmentVariableSetup")); + } + if (variableValue() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model EnvironmentVariableSetup")); - } else { - innerTypeProperties().validate(); + "Missing required property variableValue in model EnvironmentVariableSetup")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java index 11fd0a70358a8..6c3e343649b58 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExcelDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExcelDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,59 @@ /** Excel dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Excel") +@JsonFlatten @Fluent -public final class ExcelDataset extends Dataset { +public class ExcelDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ExcelDataset.class); /* - * Excel dataset properties. + * The location of the excel storage. */ - @JsonProperty(value = "typeProperties") - private ExcelDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; - /** - * Get the innerTypeProperties property: Excel dataset properties. - * - * @return the innerTypeProperties value. + /* + * The sheet name of excel file. Type: string (or Expression with + * resultType string). */ - private ExcelDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.sheetName") + private Object sheetName; - /** {@inheritDoc} */ - @Override - public ExcelDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExcelDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + /* + * The sheet index of excel file and default value is 0. Type: integer (or + * Expression with resultType integer) + */ + @JsonProperty(value = "typeProperties.sheetIndex") + private Object sheetIndex; - /** {@inheritDoc} */ - @Override - public ExcelDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The partial data of one sheet. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.range") + private Object range; - /** {@inheritDoc} */ - @Override - public ExcelDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * When used as input, treat the first row of data as headers. When used as + * output,write the headers into the output as the first row of data. The + * default value is false. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.firstRowAsHeader") + private Object firstRowAsHeader; - /** {@inheritDoc} */ - @Override - public ExcelDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The data compression method used for the json dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; - /** {@inheritDoc} */ - @Override - public ExcelDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.nullValue") + private Object nullValue; /** * Get the location property: The location of the excel storage. @@ -91,7 +77,7 @@ public ExcelDataset withFolder(DatasetFolder folder) { * @return the location value. */ public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); + return this.location; } /** @@ -101,10 +87,7 @@ public DatasetLocation location() { * @return the ExcelDataset object itself. */ public ExcelDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); + this.location = location; return this; } @@ -114,7 +97,7 @@ public ExcelDataset withLocation(DatasetLocation location) { * @return the sheetName value. */ public Object sheetName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sheetName(); + return this.sheetName; } /** @@ -124,10 +107,7 @@ public Object sheetName() { * @return the ExcelDataset object itself. */ public ExcelDataset withSheetName(Object sheetName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withSheetName(sheetName); + this.sheetName = sheetName; return this; } @@ -138,7 +118,7 @@ public ExcelDataset withSheetName(Object sheetName) { * @return the sheetIndex value. */ public Object sheetIndex() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sheetIndex(); + return this.sheetIndex; } /** @@ -149,10 +129,7 @@ public Object sheetIndex() { * @return the ExcelDataset object itself. */ public ExcelDataset withSheetIndex(Object sheetIndex) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withSheetIndex(sheetIndex); + this.sheetIndex = sheetIndex; return this; } @@ -162,7 +139,7 @@ public ExcelDataset withSheetIndex(Object sheetIndex) { * @return the range value. */ public Object range() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().range(); + return this.range; } /** @@ -172,10 +149,7 @@ public Object range() { * @return the ExcelDataset object itself. */ public ExcelDataset withRange(Object range) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withRange(range); + this.range = range; return this; } @@ -187,7 +161,7 @@ public ExcelDataset withRange(Object range) { * @return the firstRowAsHeader value. */ public Object firstRowAsHeader() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().firstRowAsHeader(); + return this.firstRowAsHeader; } /** @@ -199,10 +173,7 @@ public Object firstRowAsHeader() { * @return the ExcelDataset object itself. */ public ExcelDataset withFirstRowAsHeader(Object firstRowAsHeader) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withFirstRowAsHeader(firstRowAsHeader); + this.firstRowAsHeader = firstRowAsHeader; return this; } @@ -212,7 +183,7 @@ public ExcelDataset withFirstRowAsHeader(Object firstRowAsHeader) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -222,10 +193,7 @@ public DatasetCompression compression() { * @return the ExcelDataset object itself. */ public ExcelDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; return this; } @@ -235,7 +203,7 @@ public ExcelDataset withCompression(DatasetCompression compression) { * @return the nullValue value. */ public Object nullValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nullValue(); + return this.nullValue; } /** @@ -245,10 +213,56 @@ public Object nullValue() { * @return the ExcelDataset object itself. */ public ExcelDataset withNullValue(Object nullValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExcelDatasetTypeProperties(); - } - this.innerTypeProperties().withNullValue(nullValue); + this.nullValue = nullValue; + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExcelDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -260,8 +274,11 @@ public ExcelDataset withNullValue(Object nullValue) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); + } + if (compression() != null) { + compression().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java index 625e47caad376..52773feffa89d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecuteDataFlowActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,66 +16,58 @@ /** Execute data flow activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ExecuteDataFlow") +@JsonFlatten @Fluent -public final class ExecuteDataFlowActivity extends ExecutionActivity { +public class ExecuteDataFlowActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecuteDataFlowActivity.class); /* - * Execute data flow activity properties. + * Data flow reference. */ - @JsonProperty(value = "typeProperties", required = true) - private ExecuteDataFlowActivityTypeProperties innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); + @JsonProperty(value = "typeProperties.dataFlow", required = true) + private DataFlowReference dataFlow; - /** - * Get the innerTypeProperties property: Execute data flow activity properties. - * - * @return the innerTypeProperties value. + /* + * Staging info for execute data flow activity. */ - private ExecuteDataFlowActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.staging") + private DataFlowStagingInfo staging; - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * The integration runtime reference. + */ + @JsonProperty(value = "typeProperties.integrationRuntime") + private IntegrationRuntimeReference integrationRuntime; - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Compute properties for data flow activity. + */ + @JsonProperty(value = "typeProperties.compute") + private ExecuteDataFlowActivityTypePropertiesCompute compute; - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Trace level setting used for data flow monitoring output. Supported + * values are: 'coarse', 'fine', and 'none'. Type: string (or Expression + * with resultType string) + */ + @JsonProperty(value = "typeProperties.traceLevel") + private Object traceLevel; - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Continue on error setting used for data flow execution. Enables + * processing to continue if a sink fails. Type: boolean (or Expression + * with resultType boolean) + */ + @JsonProperty(value = "typeProperties.continueOnError") + private Object continueOnError; - /** {@inheritDoc} */ - @Override - public ExecuteDataFlowActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Concurrent run setting used for data flow execution. Allows sinks with + * the same save order to be processed concurrently. Type: boolean (or + * Expression with resultType boolean) + */ + @JsonProperty(value = "typeProperties.runConcurrently") + private Object runConcurrently; /** * Get the dataFlow property: Data flow reference. @@ -83,7 +75,7 @@ public ExecuteDataFlowActivity withUserProperties(List userPropert * @return the dataFlow value. */ public DataFlowReference dataFlow() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataFlow(); + return this.dataFlow; } /** @@ -93,10 +85,7 @@ public DataFlowReference dataFlow() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withDataFlow(DataFlowReference dataFlow) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withDataFlow(dataFlow); + this.dataFlow = dataFlow; return this; } @@ -106,7 +95,7 @@ public ExecuteDataFlowActivity withDataFlow(DataFlowReference dataFlow) { * @return the staging value. */ public DataFlowStagingInfo staging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().staging(); + return this.staging; } /** @@ -116,10 +105,7 @@ public DataFlowStagingInfo staging() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withStaging(DataFlowStagingInfo staging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withStaging(staging); + this.staging = staging; return this; } @@ -129,7 +115,7 @@ public ExecuteDataFlowActivity withStaging(DataFlowStagingInfo staging) { * @return the integrationRuntime value. */ public IntegrationRuntimeReference integrationRuntime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().integrationRuntime(); + return this.integrationRuntime; } /** @@ -139,10 +125,7 @@ public IntegrationRuntimeReference integrationRuntime() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withIntegrationRuntime(IntegrationRuntimeReference integrationRuntime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withIntegrationRuntime(integrationRuntime); + this.integrationRuntime = integrationRuntime; return this; } @@ -152,7 +135,7 @@ public ExecuteDataFlowActivity withIntegrationRuntime(IntegrationRuntimeReferenc * @return the compute value. */ public ExecuteDataFlowActivityTypePropertiesCompute compute() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compute(); + return this.compute; } /** @@ -162,10 +145,7 @@ public ExecuteDataFlowActivityTypePropertiesCompute compute() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withCompute(ExecuteDataFlowActivityTypePropertiesCompute compute) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withCompute(compute); + this.compute = compute; return this; } @@ -176,7 +156,7 @@ public ExecuteDataFlowActivity withCompute(ExecuteDataFlowActivityTypeProperties * @return the traceLevel value. */ public Object traceLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().traceLevel(); + return this.traceLevel; } /** @@ -187,10 +167,7 @@ public Object traceLevel() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withTraceLevel(Object traceLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withTraceLevel(traceLevel); + this.traceLevel = traceLevel; return this; } @@ -201,7 +178,7 @@ public ExecuteDataFlowActivity withTraceLevel(Object traceLevel) { * @return the continueOnError value. */ public Object continueOnError() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().continueOnError(); + return this.continueOnError; } /** @@ -212,10 +189,7 @@ public Object continueOnError() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withContinueOnError(Object continueOnError) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withContinueOnError(continueOnError); + this.continueOnError = continueOnError; return this; } @@ -226,7 +200,7 @@ public ExecuteDataFlowActivity withContinueOnError(Object continueOnError) { * @return the runConcurrently value. */ public Object runConcurrently() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runConcurrently(); + return this.runConcurrently; } /** @@ -237,10 +211,49 @@ public Object runConcurrently() { * @return the ExecuteDataFlowActivity object itself. */ public ExecuteDataFlowActivity withRunConcurrently(Object runConcurrently) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteDataFlowActivityTypeProperties(); - } - this.innerTypeProperties().withRunConcurrently(runConcurrently); + this.runConcurrently = runConcurrently; + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteDataFlowActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteDataFlowActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteDataFlowActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteDataFlowActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteDataFlowActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteDataFlowActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -252,13 +265,22 @@ public ExecuteDataFlowActivity withRunConcurrently(Object runConcurrently) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (dataFlow() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecuteDataFlowActivity")); + "Missing required property dataFlow in model ExecuteDataFlowActivity")); } else { - innerTypeProperties().validate(); + dataFlow().validate(); + } + if (staging() != null) { + staging().validate(); + } + if (integrationRuntime() != null) { + integrationRuntime().validate(); + } + if (compute() != null) { + compute().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivityTypeProperties.java similarity index 95% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivityTypeProperties.java index 2b3ce1d7037b7..b8e3c01083bfd 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecuteDataFlowActivityTypeProperties.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteDataFlowActivityTypeProperties.java @@ -2,14 +2,10 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.datafactory.fluent.models; +package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java index b87cc095a39fd..338640f665fde 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePipelineActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,52 +18,30 @@ /** Execute pipeline activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ExecutePipeline") +@JsonFlatten @Fluent -public final class ExecutePipelineActivity extends ControlActivity { +public class ExecutePipelineActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecutePipelineActivity.class); /* - * Execute pipeline activity properties. + * Pipeline reference. */ - @JsonProperty(value = "typeProperties", required = true) - private ExecutePipelineActivityTypeProperties innerTypeProperties = new ExecutePipelineActivityTypeProperties(); + @JsonProperty(value = "typeProperties.pipeline", required = true) + private PipelineReference pipeline; - /** - * Get the innerTypeProperties property: Execute pipeline activity properties. - * - * @return the innerTypeProperties value. + /* + * Pipeline parameters. */ - private ExecutePipelineActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public ExecutePipelineActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Defines whether activity execution will wait for the dependent pipeline + * execution to finish. Default is false. + */ + @JsonProperty(value = "typeProperties.waitOnCompletion") + private Boolean waitOnCompletion; /** * Get the pipeline property: Pipeline reference. @@ -70,7 +49,7 @@ public ExecutePipelineActivity withUserProperties(List userPropert * @return the pipeline value. */ public PipelineReference pipeline() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pipeline(); + return this.pipeline; } /** @@ -80,10 +59,7 @@ public PipelineReference pipeline() { * @return the ExecutePipelineActivity object itself. */ public ExecutePipelineActivity withPipeline(PipelineReference pipeline) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withPipeline(pipeline); + this.pipeline = pipeline; return this; } @@ -93,7 +69,7 @@ public ExecutePipelineActivity withPipeline(PipelineReference pipeline) { * @return the parameters value. */ public Map parameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parameters(); + return this.parameters; } /** @@ -103,10 +79,7 @@ public Map parameters() { * @return the ExecutePipelineActivity object itself. */ public ExecutePipelineActivity withParameters(Map parameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withParameters(parameters); + this.parameters = parameters; return this; } @@ -117,7 +90,7 @@ public ExecutePipelineActivity withParameters(Map parameters) { * @return the waitOnCompletion value. */ public Boolean waitOnCompletion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().waitOnCompletion(); + return this.waitOnCompletion; } /** @@ -128,10 +101,35 @@ public Boolean waitOnCompletion() { * @return the ExecutePipelineActivity object itself. */ public ExecutePipelineActivity withWaitOnCompletion(Boolean waitOnCompletion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePipelineActivityTypeProperties(); - } - this.innerTypeProperties().withWaitOnCompletion(waitOnCompletion); + this.waitOnCompletion = waitOnCompletion; + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecutePipelineActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecutePipelineActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecutePipelineActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecutePipelineActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -143,13 +141,13 @@ public ExecutePipelineActivity withWaitOnCompletion(Boolean waitOnCompletion) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (pipeline() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecutePipelineActivity")); + "Missing required property pipeline in model ExecutePipelineActivity")); } else { - innerTypeProperties().validate(); + pipeline().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/models/ExecutePowerQueryActivityTypeProperties.java similarity index 71% rename from sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ExecutePowerQueryActivityTypeProperties.java rename to sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePowerQueryActivityTypeProperties.java index 42fc84ab19b15..82ae73c50a40f 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/models/ExecutePowerQueryActivityTypeProperties.java @@ -2,18 +2,14 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.datafactory.fluent.models; +package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.models.DataFlowReference; -import com.azure.resourcemanager.datafactory.models.DataFlowStagingInfo; -import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference; -import com.azure.resourcemanager.datafactory.models.PowerQuerySink; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import java.util.Map; /** Execute power query data flow activity properties. */ @@ -22,14 +18,22 @@ public final class ExecutePowerQueryActivityTypeProperties extends ExecuteDataFl @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecutePowerQueryActivityTypeProperties.class); /* - * List of Power Query activity sinks mapped to a queryName. + * (Deprecated. Please use Queries). List of Power Query activity sinks + * mapped to a queryName. */ @JsonProperty(value = "sinks") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map sinks; + /* + * List of mapping for Power Query mashup query to sink dataset(s). + */ + @JsonProperty(value = "queries") + private List queries; + /** - * Get the sinks property: List of Power Query activity sinks mapped to a queryName. + * Get the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a + * queryName. * * @return the sinks value. */ @@ -38,7 +42,8 @@ public Map sinks() { } /** - * Set the sinks property: List of Power Query activity sinks mapped to a queryName. + * Set the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a + * queryName. * * @param sinks the sinks value to set. * @return the ExecutePowerQueryActivityTypeProperties object itself. @@ -48,6 +53,26 @@ public ExecutePowerQueryActivityTypeProperties withSinks(Map queries() { + return this.queries; + } + + /** + * Set the queries property: List of mapping for Power Query mashup query to sink dataset(s). + * + * @param queries the queries value to set. + * @return the ExecutePowerQueryActivityTypeProperties object itself. + */ + public ExecutePowerQueryActivityTypeProperties withQueries(List queries) { + this.queries = queries; + return this; + } + /** {@inheritDoc} */ @Override public ExecutePowerQueryActivityTypeProperties withDataFlow(DataFlowReference dataFlow) { @@ -116,5 +141,8 @@ public void validate() { } }); } + if (queries() != null) { + queries().forEach(e -> e.validate()); + } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java index e29c8dfdca823..3c5dd68d8bb30 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteSsisPackageActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecuteSsisPackageActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,67 +18,90 @@ /** Execute SSIS package activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ExecuteSSISPackage") +@JsonFlatten @Fluent -public final class ExecuteSsisPackageActivity extends ExecutionActivity { +public class ExecuteSsisPackageActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecuteSsisPackageActivity.class); /* - * Execute SSIS package activity properties. + * SSIS package location. */ - @JsonProperty(value = "typeProperties", required = true) - private ExecuteSsisPackageActivityTypeProperties innerTypeProperties = - new ExecuteSsisPackageActivityTypeProperties(); + @JsonProperty(value = "typeProperties.packageLocation", required = true) + private SsisPackageLocation packageLocation; - /** - * Get the innerTypeProperties property: Execute SSIS package activity properties. - * - * @return the innerTypeProperties value. + /* + * Specifies the runtime to execute SSIS package. The value should be "x86" + * or "x64". Type: string (or Expression with resultType string). */ - private ExecuteSsisPackageActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.runtime") + private Object runtime; - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The logging level of SSIS package execution. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.loggingLevel") + private Object loggingLevel; - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * The environment path to execute the SSIS package. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.environmentPath") + private Object environmentPath; - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withName(String name) { - super.withName(name); - return this; - } + /* + * The package execution credential. + */ + @JsonProperty(value = "typeProperties.executionCredential") + private SsisExecutionCredential executionCredential; - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The integration runtime reference. + */ + @JsonProperty(value = "typeProperties.connectVia", required = true) + private IntegrationRuntimeReference connectVia; - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * The project level parameters to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.projectParameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map projectParameters; - /** {@inheritDoc} */ - @Override - public ExecuteSsisPackageActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * The package level parameters to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.packageParameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map packageParameters; + + /* + * The project level connection managers to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.projectConnectionManagers") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map> projectConnectionManagers; + + /* + * The package level connection managers to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.packageConnectionManagers") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map> packageConnectionManagers; + + /* + * The property overrides to execute the SSIS package. + */ + @JsonProperty(value = "typeProperties.propertyOverrides") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map propertyOverrides; + + /* + * SSIS package execution log location. + */ + @JsonProperty(value = "typeProperties.logLocation") + private SsisLogLocation logLocation; /** * Get the packageLocation property: SSIS package location. @@ -85,7 +109,7 @@ public ExecuteSsisPackageActivity withUserProperties(List userProp * @return the packageLocation value. */ public SsisPackageLocation packageLocation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageLocation(); + return this.packageLocation; } /** @@ -95,10 +119,7 @@ public SsisPackageLocation packageLocation() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withPackageLocation(SsisPackageLocation packageLocation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPackageLocation(packageLocation); + this.packageLocation = packageLocation; return this; } @@ -109,7 +130,7 @@ public ExecuteSsisPackageActivity withPackageLocation(SsisPackageLocation packag * @return the runtime value. */ public Object runtime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runtime(); + return this.runtime; } /** @@ -120,10 +141,7 @@ public Object runtime() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withRuntime(Object runtime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withRuntime(runtime); + this.runtime = runtime; return this; } @@ -134,7 +152,7 @@ public ExecuteSsisPackageActivity withRuntime(Object runtime) { * @return the loggingLevel value. */ public Object loggingLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().loggingLevel(); + return this.loggingLevel; } /** @@ -145,10 +163,7 @@ public Object loggingLevel() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withLoggingLevel(Object loggingLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withLoggingLevel(loggingLevel); + this.loggingLevel = loggingLevel; return this; } @@ -159,7 +174,7 @@ public ExecuteSsisPackageActivity withLoggingLevel(Object loggingLevel) { * @return the environmentPath value. */ public Object environmentPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().environmentPath(); + return this.environmentPath; } /** @@ -170,10 +185,7 @@ public Object environmentPath() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withEnvironmentPath(Object environmentPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withEnvironmentPath(environmentPath); + this.environmentPath = environmentPath; return this; } @@ -183,7 +195,7 @@ public ExecuteSsisPackageActivity withEnvironmentPath(Object environmentPath) { * @return the executionCredential value. */ public SsisExecutionCredential executionCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().executionCredential(); + return this.executionCredential; } /** @@ -193,10 +205,7 @@ public SsisExecutionCredential executionCredential() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withExecutionCredential(SsisExecutionCredential executionCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withExecutionCredential(executionCredential); + this.executionCredential = executionCredential; return this; } @@ -206,7 +215,7 @@ public ExecuteSsisPackageActivity withExecutionCredential(SsisExecutionCredentia * @return the connectVia value. */ public IntegrationRuntimeReference connectVia() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectVia(); + return this.connectVia; } /** @@ -216,10 +225,7 @@ public IntegrationRuntimeReference connectVia() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withConnectVia(IntegrationRuntimeReference connectVia) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withConnectVia(connectVia); + this.connectVia = connectVia; return this; } @@ -229,7 +235,7 @@ public ExecuteSsisPackageActivity withConnectVia(IntegrationRuntimeReference con * @return the projectParameters value. */ public Map projectParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().projectParameters(); + return this.projectParameters; } /** @@ -239,10 +245,7 @@ public Map projectParameters() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withProjectParameters(Map projectParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withProjectParameters(projectParameters); + this.projectParameters = projectParameters; return this; } @@ -252,7 +255,7 @@ public ExecuteSsisPackageActivity withProjectParameters(Map packageParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageParameters(); + return this.packageParameters; } /** @@ -262,10 +265,7 @@ public Map packageParameters() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withPackageParameters(Map packageParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPackageParameters(packageParameters); + this.packageParameters = packageParameters; return this; } @@ -275,7 +275,7 @@ public ExecuteSsisPackageActivity withPackageParameters(Map> projectConnectionManagers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().projectConnectionManagers(); + return this.projectConnectionManagers; } /** @@ -286,10 +286,7 @@ public Map> projectConnectionManager */ public ExecuteSsisPackageActivity withProjectConnectionManagers( Map> projectConnectionManagers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withProjectConnectionManagers(projectConnectionManagers); + this.projectConnectionManagers = projectConnectionManagers; return this; } @@ -299,7 +296,7 @@ public ExecuteSsisPackageActivity withProjectConnectionManagers( * @return the packageConnectionManagers value. */ public Map> packageConnectionManagers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageConnectionManagers(); + return this.packageConnectionManagers; } /** @@ -310,10 +307,7 @@ public Map> packageConnectionManager */ public ExecuteSsisPackageActivity withPackageConnectionManagers( Map> packageConnectionManagers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPackageConnectionManagers(packageConnectionManagers); + this.packageConnectionManagers = packageConnectionManagers; return this; } @@ -323,7 +317,7 @@ public ExecuteSsisPackageActivity withPackageConnectionManagers( * @return the propertyOverrides value. */ public Map propertyOverrides() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().propertyOverrides(); + return this.propertyOverrides; } /** @@ -333,10 +327,7 @@ public Map propertyOverrides() { * @return the ExecuteSsisPackageActivity object itself. */ public ExecuteSsisPackageActivity withPropertyOverrides(Map propertyOverrides) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecuteSsisPackageActivityTypeProperties(); - } - this.innerTypeProperties().withPropertyOverrides(propertyOverrides); + this.propertyOverrides = propertyOverrides; return this; } @@ -346,7 +337,7 @@ public ExecuteSsisPackageActivity withPropertyOverrides(Map dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteSsisPackageActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -371,13 +401,91 @@ public ExecuteSsisPackageActivity withLogLocation(SsisLogLocation logLocation) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (packageLocation() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property packageLocation in model ExecuteSsisPackageActivity")); + } else { + packageLocation().validate(); + } + if (executionCredential() != null) { + executionCredential().validate(); + } + if (connectVia() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecuteSsisPackageActivity")); + "Missing required property connectVia in model ExecuteSsisPackageActivity")); } else { - innerTypeProperties().validate(); + connectVia().validate(); + } + if (projectParameters() != null) { + projectParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (packageParameters() != null) { + packageParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (projectConnectionManagers() != null) { + projectConnectionManagers() + .values() + .forEach( + e -> { + if (e != null) { + e + .values() + .forEach( + e1 -> { + if (e1 != null) { + e1.validate(); + } + }); + } + }); + } + if (packageConnectionManagers() != null) { + packageConnectionManagers() + .values() + .forEach( + e -> { + if (e != null) { + e + .values() + .forEach( + e1 -> { + if (e1 != null) { + e1.validate(); + } + }); + } + }); + } + if (propertyOverrides() != null) { + propertyOverrides() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (logLocation() != null) { + logLocation().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java index 07388f1832daf..89987eed973ff 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecuteWranglingDataflowActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ExecutePowerQueryActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,99 +18,96 @@ /** Execute power query activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ExecuteWranglingDataflow") +@JsonFlatten @Fluent -public final class ExecuteWranglingDataflowActivity extends Activity { +public class ExecuteWranglingDataflowActivity extends Activity { @JsonIgnore private final ClientLogger logger = new ClientLogger(ExecuteWranglingDataflowActivity.class); - /* - * Execute power query activity properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ExecutePowerQueryActivityTypeProperties innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - /* * Activity policy. */ @JsonProperty(value = "policy") private ActivityPolicy policy; - /** - * Get the innerTypeProperties property: Execute power query activity properties. - * - * @return the innerTypeProperties value. + /* + * Data flow reference. */ - private ExecutePowerQueryActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.dataFlow", required = true) + private DataFlowReference dataFlow; - /** - * Get the policy property: Activity policy. - * - * @return the policy value. + /* + * Staging info for execute data flow activity. */ - public ActivityPolicy policy() { - return this.policy; - } + @JsonProperty(value = "typeProperties.staging") + private DataFlowStagingInfo staging; - /** - * Set the policy property: Activity policy. - * - * @param policy the policy value to set. - * @return the ExecuteWranglingDataflowActivity object itself. + /* + * The integration runtime reference. */ - public ExecuteWranglingDataflowActivity withPolicy(ActivityPolicy policy) { - this.policy = policy; - return this; - } + @JsonProperty(value = "typeProperties.integrationRuntime") + private IntegrationRuntimeReference integrationRuntime; - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Compute properties for data flow activity. + */ + @JsonProperty(value = "typeProperties.compute") + private ExecuteDataFlowActivityTypePropertiesCompute compute; - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Trace level setting used for data flow monitoring output. Supported + * values are: 'coarse', 'fine', and 'none'. Type: string (or Expression + * with resultType string) + */ + @JsonProperty(value = "typeProperties.traceLevel") + private Object traceLevel; - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Continue on error setting used for data flow execution. Enables + * processing to continue if a sink fails. Type: boolean (or Expression + * with resultType boolean) + */ + @JsonProperty(value = "typeProperties.continueOnError") + private Object continueOnError; - /** {@inheritDoc} */ - @Override - public ExecuteWranglingDataflowActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Concurrent run setting used for data flow execution. Allows sinks with + * the same save order to be processed concurrently. Type: boolean (or + * Expression with resultType boolean) + */ + @JsonProperty(value = "typeProperties.runConcurrently") + private Object runConcurrently; + + /* + * (Deprecated. Please use Queries). List of Power Query activity sinks + * mapped to a queryName. + */ + @JsonProperty(value = "typeProperties.sinks") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map sinks; + + /* + * List of mapping for Power Query mashup query to sink dataset(s). + */ + @JsonProperty(value = "typeProperties.queries") + private List queries; /** - * Get the sinks property: List of Power Query activity sinks mapped to a queryName. + * Get the policy property: Activity policy. * - * @return the sinks value. + * @return the policy value. */ - public Map sinks() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sinks(); + public ActivityPolicy policy() { + return this.policy; } /** - * Set the sinks property: List of Power Query activity sinks mapped to a queryName. + * Set the policy property: Activity policy. * - * @param sinks the sinks value to set. + * @param policy the policy value to set. * @return the ExecuteWranglingDataflowActivity object itself. */ - public ExecuteWranglingDataflowActivity withSinks(Map sinks) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withSinks(sinks); + public ExecuteWranglingDataflowActivity withPolicy(ActivityPolicy policy) { + this.policy = policy; return this; } @@ -119,7 +117,7 @@ public ExecuteWranglingDataflowActivity withSinks(Map si * @return the dataFlow value. */ public DataFlowReference dataFlow() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataFlow(); + return this.dataFlow; } /** @@ -129,10 +127,7 @@ public DataFlowReference dataFlow() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withDataFlow(DataFlowReference dataFlow) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withDataFlow(dataFlow); + this.dataFlow = dataFlow; return this; } @@ -142,7 +137,7 @@ public ExecuteWranglingDataflowActivity withDataFlow(DataFlowReference dataFlow) * @return the staging value. */ public DataFlowStagingInfo staging() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().staging(); + return this.staging; } /** @@ -152,10 +147,7 @@ public DataFlowStagingInfo staging() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withStaging(DataFlowStagingInfo staging) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withStaging(staging); + this.staging = staging; return this; } @@ -165,7 +157,7 @@ public ExecuteWranglingDataflowActivity withStaging(DataFlowStagingInfo staging) * @return the integrationRuntime value. */ public IntegrationRuntimeReference integrationRuntime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().integrationRuntime(); + return this.integrationRuntime; } /** @@ -175,10 +167,7 @@ public IntegrationRuntimeReference integrationRuntime() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withIntegrationRuntime(IntegrationRuntimeReference integrationRuntime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withIntegrationRuntime(integrationRuntime); + this.integrationRuntime = integrationRuntime; return this; } @@ -188,7 +177,7 @@ public ExecuteWranglingDataflowActivity withIntegrationRuntime(IntegrationRuntim * @return the compute value. */ public ExecuteDataFlowActivityTypePropertiesCompute compute() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compute(); + return this.compute; } /** @@ -198,10 +187,7 @@ public ExecuteDataFlowActivityTypePropertiesCompute compute() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withCompute(ExecuteDataFlowActivityTypePropertiesCompute compute) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withCompute(compute); + this.compute = compute; return this; } @@ -212,7 +198,7 @@ public ExecuteWranglingDataflowActivity withCompute(ExecuteDataFlowActivityTypeP * @return the traceLevel value. */ public Object traceLevel() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().traceLevel(); + return this.traceLevel; } /** @@ -223,10 +209,7 @@ public Object traceLevel() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withTraceLevel(Object traceLevel) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withTraceLevel(traceLevel); + this.traceLevel = traceLevel; return this; } @@ -237,7 +220,7 @@ public ExecuteWranglingDataflowActivity withTraceLevel(Object traceLevel) { * @return the continueOnError value. */ public Object continueOnError() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().continueOnError(); + return this.continueOnError; } /** @@ -248,10 +231,7 @@ public Object continueOnError() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withContinueOnError(Object continueOnError) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withContinueOnError(continueOnError); + this.continueOnError = continueOnError; return this; } @@ -262,7 +242,7 @@ public ExecuteWranglingDataflowActivity withContinueOnError(Object continueOnErr * @return the runConcurrently value. */ public Object runConcurrently() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().runConcurrently(); + return this.runConcurrently; } /** @@ -273,10 +253,77 @@ public Object runConcurrently() { * @return the ExecuteWranglingDataflowActivity object itself. */ public ExecuteWranglingDataflowActivity withRunConcurrently(Object runConcurrently) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ExecutePowerQueryActivityTypeProperties(); - } - this.innerTypeProperties().withRunConcurrently(runConcurrently); + this.runConcurrently = runConcurrently; + return this; + } + + /** + * Get the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a + * queryName. + * + * @return the sinks value. + */ + public Map sinks() { + return this.sinks; + } + + /** + * Set the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a + * queryName. + * + * @param sinks the sinks value to set. + * @return the ExecuteWranglingDataflowActivity object itself. + */ + public ExecuteWranglingDataflowActivity withSinks(Map sinks) { + this.sinks = sinks; + return this; + } + + /** + * Get the queries property: List of mapping for Power Query mashup query to sink dataset(s). + * + * @return the queries value. + */ + public List queries() { + return this.queries; + } + + /** + * Set the queries property: List of mapping for Power Query mashup query to sink dataset(s). + * + * @param queries the queries value to set. + * @return the ExecuteWranglingDataflowActivity object itself. + */ + public ExecuteWranglingDataflowActivity withQueries(List queries) { + this.queries = queries; + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteWranglingDataflowActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteWranglingDataflowActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteWranglingDataflowActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ExecuteWranglingDataflowActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -288,16 +335,38 @@ public ExecuteWranglingDataflowActivity withRunConcurrently(Object runConcurrent @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (policy() != null) { + policy().validate(); + } + if (dataFlow() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model ExecuteWranglingDataflowActivity")); + "Missing required property dataFlow in model ExecuteWranglingDataflowActivity")); } else { - innerTypeProperties().validate(); + dataFlow().validate(); } - if (policy() != null) { - policy().validate(); + if (staging() != null) { + staging().validate(); + } + if (integrationRuntime() != null) { + integrationRuntime().validate(); + } + if (compute() != null) { + compute().validate(); + } + if (sinks() != null) { + sinks() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (queries() != null) { + queries().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java index c0ea926d45ea2..5fd7ac5875883 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Factory.java @@ -55,20 +55,6 @@ public interface Factory { */ FactoryIdentity identity(); - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the additionalProperties property: Factory resource type. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - /** * Gets the provisioningState property: Factory provisioning state, example Succeeded. * @@ -118,6 +104,20 @@ public interface Factory { */ PublicNetworkAccess publicNetworkAccess(); + /** + * Gets the etag property: Etag identifies change in the resource. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the additionalProperties property: Factory resource type. + * + * @return the additionalProperties value. + */ + Map additionalProperties(); + /** * Gets the region of the resource. * @@ -186,11 +186,11 @@ interface WithResourceGroup { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithAdditionalProperties, DefinitionStages.WithRepoConfiguration, DefinitionStages.WithGlobalParameters, DefinitionStages.WithEncryption, DefinitionStages.WithPublicNetworkAccess, + DefinitionStages.WithAdditionalProperties, DefinitionStages.WithIfMatch { /** * Executes the create request. @@ -227,16 +227,6 @@ interface WithIdentity { */ WithCreate withIdentity(FactoryIdentity identity); } - /** The stage of the Factory definition allowing to specify additionalProperties. */ - interface WithAdditionalProperties { - /** - * Specifies the additionalProperties property: Factory resource type.. - * - * @param additionalProperties Factory resource type. - * @return the next definition stage. - */ - WithCreate withAdditionalProperties(Map additionalProperties); - } /** The stage of the Factory definition allowing to specify repoConfiguration. */ interface WithRepoConfiguration { /** @@ -278,6 +268,16 @@ interface WithPublicNetworkAccess { */ WithCreate withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); } + /** The stage of the Factory definition allowing to specify additionalProperties. */ + interface WithAdditionalProperties { + /** + * Specifies the additionalProperties property: Factory resource type.. + * + * @param additionalProperties Factory resource type. + * @return the next definition stage. + */ + WithCreate withAdditionalProperties(Map additionalProperties); + } /** The stage of the Factory definition allowing to specify ifMatch. */ interface WithIfMatch { /** @@ -299,7 +299,7 @@ interface WithIfMatch { Factory.Update update(); /** The template for Factory update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity { + interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithPublicNetworkAccess { /** * Executes the update request. * @@ -337,6 +337,17 @@ interface WithIdentity { */ Update withIdentity(FactoryIdentity identity); } + /** The stage of the Factory update allowing to specify publicNetworkAccess. */ + interface WithPublicNetworkAccess { + /** + * Specifies the publicNetworkAccess property: Whether or not public network access is allowed for the data + * factory.. + * + * @param publicNetworkAccess Whether or not public network access is allowed for the data factory. + * @return the next definition stage. + */ + Update withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); + } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java index 472ea3c0b5503..ee779d40c7d57 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FactoryUpdateParameters.java @@ -29,6 +29,12 @@ public final class FactoryUpdateParameters { @JsonProperty(value = "identity") private FactoryIdentity identity; + /* + * Whether or not public network access is allowed for the data factory. + */ + @JsonProperty(value = "publicNetworkAccess") + private PublicNetworkAccess publicNetworkAccess; + /** * Get the tags property: The resource tags. * @@ -69,6 +75,26 @@ public FactoryUpdateParameters withIdentity(FactoryIdentity identity) { return this; } + /** + * Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. + * + * @return the publicNetworkAccess value. + */ + public PublicNetworkAccess publicNetworkAccess() { + return this.publicNetworkAccess; + } + + /** + * Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the FactoryUpdateParameters object itself. + */ + public FactoryUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java index dcb33bace92b7..efe74762e5791 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileServerLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FileServerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,38 @@ /** File system linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("FileServer") +@JsonFlatten @Fluent -public final class FileServerLinkedService extends LinkedService { +public class FileServerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(FileServerLinkedService.class); /* - * File system linked service properties. + * Host name of the server. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private FileServerLinkedServiceTypeProperties innerTypeProperties = new FileServerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: File system linked service properties. - * - * @return the innerTypeProperties value. + /* + * User ID to logon the server. Type: string (or Expression with resultType + * string). */ - private FileServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.userId") + private Object userId; - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password to logon the server. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public FileServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: Host name of the server. Type: string (or Expression with resultType string). @@ -70,7 +56,7 @@ public FileServerLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +66,7 @@ public Object host() { * @return the FileServerLinkedService object itself. */ public FileServerLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -93,7 +76,7 @@ public FileServerLinkedService withHost(Object host) { * @return the userId value. */ public Object userId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().userId(); + return this.userId; } /** @@ -103,10 +86,7 @@ public Object userId() { * @return the FileServerLinkedService object itself. */ public FileServerLinkedService withUserId(Object userId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUserId(userId); + this.userId = userId; return this; } @@ -116,7 +96,7 @@ public FileServerLinkedService withUserId(Object userId) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -126,10 +106,7 @@ public SecretBase password() { * @return the FileServerLinkedService object itself. */ public FileServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -140,7 +117,7 @@ public FileServerLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -151,10 +128,35 @@ public Object encryptedCredential() { * @return the FileServerLinkedService object itself. */ public FileServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public FileServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileServerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileServerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileServerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -166,13 +168,13 @@ public FileServerLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FileServerLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model FileServerLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java index dc78b16697fe0..9287cfe4b9fa8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FileShareDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FileShareDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,58 @@ /** An on-premises file system dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("FileShare") +@JsonFlatten @Fluent -public final class FileShareDataset extends Dataset { +public class FileShareDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(FileShareDataset.class); /* - * On-premises file system dataset properties. + * The path of the on-premises file system. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties") - private FileShareDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; - /** - * Get the innerTypeProperties property: On-premises file system dataset properties. - * - * @return the innerTypeProperties value. + /* + * The name of the on-premises file system. Type: string (or Expression + * with resultType string). */ - private FileShareDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FileShareDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; - /** {@inheritDoc} */ - @Override - public FileShareDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + /* + * The start of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeStart") + private Object modifiedDatetimeStart; - /** {@inheritDoc} */ - @Override - public FileShareDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The end of file's modified datetime. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.modifiedDatetimeEnd") + private Object modifiedDatetimeEnd; - /** {@inheritDoc} */ - @Override - public FileShareDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The format of the files. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; - /** {@inheritDoc} */ - @Override - public FileShareDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specify a filter to be used to select a subset of files in the + * folderPath rather than all files. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.fileFilter") + private Object fileFilter; - /** {@inheritDoc} */ - @Override - public FileShareDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the file system. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the folderPath property: The path of the on-premises file system. Type: string (or Expression with resultType @@ -92,7 +77,7 @@ public FileShareDataset withFolder(DatasetFolder folder) { * @return the folderPath value. */ public Object folderPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath(); + return this.folderPath; } /** @@ -103,10 +88,7 @@ public Object folderPath() { * @return the FileShareDataset object itself. */ public FileShareDataset withFolderPath(Object folderPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFolderPath(folderPath); + this.folderPath = folderPath; return this; } @@ -117,7 +99,7 @@ public FileShareDataset withFolderPath(Object folderPath) { * @return the fileName value. */ public Object fileName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName(); + return this.fileName; } /** @@ -128,10 +110,7 @@ public Object fileName() { * @return the FileShareDataset object itself. */ public FileShareDataset withFileName(Object fileName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFileName(fileName); + this.fileName = fileName; return this; } @@ -142,7 +121,7 @@ public FileShareDataset withFileName(Object fileName) { * @return the modifiedDatetimeStart value. */ public Object modifiedDatetimeStart() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeStart(); + return this.modifiedDatetimeStart; } /** @@ -153,10 +132,7 @@ public Object modifiedDatetimeStart() { * @return the FileShareDataset object itself. */ public FileShareDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeStart(modifiedDatetimeStart); + this.modifiedDatetimeStart = modifiedDatetimeStart; return this; } @@ -167,7 +143,7 @@ public FileShareDataset withModifiedDatetimeStart(Object modifiedDatetimeStart) * @return the modifiedDatetimeEnd value. */ public Object modifiedDatetimeEnd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().modifiedDatetimeEnd(); + return this.modifiedDatetimeEnd; } /** @@ -178,10 +154,7 @@ public Object modifiedDatetimeEnd() { * @return the FileShareDataset object itself. */ public FileShareDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withModifiedDatetimeEnd(modifiedDatetimeEnd); + this.modifiedDatetimeEnd = modifiedDatetimeEnd; return this; } @@ -191,7 +164,7 @@ public FileShareDataset withModifiedDatetimeEnd(Object modifiedDatetimeEnd) { * @return the format value. */ public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); + return this.format; } /** @@ -201,10 +174,7 @@ public DatasetStorageFormat format() { * @return the FileShareDataset object itself. */ public FileShareDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); + this.format = format; return this; } @@ -215,7 +185,7 @@ public FileShareDataset withFormat(DatasetStorageFormat format) { * @return the fileFilter value. */ public Object fileFilter() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileFilter(); + return this.fileFilter; } /** @@ -226,10 +196,7 @@ public Object fileFilter() { * @return the FileShareDataset object itself. */ public FileShareDataset withFileFilter(Object fileFilter) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withFileFilter(fileFilter); + this.fileFilter = fileFilter; return this; } @@ -239,7 +206,7 @@ public FileShareDataset withFileFilter(Object fileFilter) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -249,10 +216,56 @@ public DatasetCompression compression() { * @return the FileShareDataset object itself. */ public FileShareDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FileShareDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public FileShareDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -264,8 +277,11 @@ public FileShareDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (format() != null) { + format().validate(); + } + if (compression() != null) { + compression().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java index 28522cff5df84..988181fdfdc81 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FilterActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FilterActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,52 +16,22 @@ /** Filter and return results from input array based on the conditions. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Filter") +@JsonFlatten @Fluent -public final class FilterActivity extends ControlActivity { +public class FilterActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(FilterActivity.class); /* - * Filter activity properties. + * Input array on which filter should be applied. */ - @JsonProperty(value = "typeProperties", required = true) - private FilterActivityTypeProperties innerTypeProperties = new FilterActivityTypeProperties(); + @JsonProperty(value = "typeProperties.items", required = true) + private Expression items; - /** - * Get the innerTypeProperties property: Filter activity properties. - * - * @return the innerTypeProperties value. + /* + * Condition to be used for filtering the input. */ - private FilterActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public FilterActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + @JsonProperty(value = "typeProperties.condition", required = true) + private Expression condition; /** * Get the items property: Input array on which filter should be applied. @@ -69,7 +39,7 @@ public FilterActivity withUserProperties(List userProperties) { * @return the items value. */ public Expression items() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().items(); + return this.items; } /** @@ -79,10 +49,7 @@ public Expression items() { * @return the FilterActivity object itself. */ public FilterActivity withItems(Expression items) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FilterActivityTypeProperties(); - } - this.innerTypeProperties().withItems(items); + this.items = items; return this; } @@ -92,7 +59,7 @@ public FilterActivity withItems(Expression items) { * @return the condition value. */ public Expression condition() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().condition(); + return this.condition; } /** @@ -102,10 +69,35 @@ public Expression condition() { * @return the FilterActivity object itself. */ public FilterActivity withCondition(Expression condition) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FilterActivityTypeProperties(); - } - this.innerTypeProperties().withCondition(condition); + this.condition = condition; + return this; + } + + /** {@inheritDoc} */ + @Override + public FilterActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public FilterActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public FilterActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public FilterActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -117,13 +109,19 @@ public FilterActivity withCondition(Expression condition) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (items() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property items in model FilterActivity")); + } else { + items().validate(); + } + if (condition() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FilterActivity")); + new IllegalArgumentException("Missing required property condition in model FilterActivity")); } else { - innerTypeProperties().validate(); + condition().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java new file mode 100644 index 0000000000000..6e6f1da6bc7f2 --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Flowlet.java @@ -0,0 +1,257 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** Data flow flowlet. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Flowlet") +@JsonFlatten +@Fluent +public class Flowlet extends DataFlow { + @JsonIgnore private final ClientLogger logger = new ClientLogger(Flowlet.class); + + /* + * List of sources in Flowlet. + */ + @JsonProperty(value = "typeProperties.sources") + private List sources; + + /* + * List of sinks in Flowlet. + */ + @JsonProperty(value = "typeProperties.sinks") + private List sinks; + + /* + * List of transformations in Flowlet. + */ + @JsonProperty(value = "typeProperties.transformations") + private List transformations; + + /* + * Flowlet script. + */ + @JsonProperty(value = "typeProperties.script") + private String script; + + /* + * Flowlet script lines. + */ + @JsonProperty(value = "typeProperties.scriptLines") + private List scriptLines; + + /* + * Any object + */ + @JsonProperty(value = "typeProperties.additionalProperties") + private Object additionalPropertiesProperty; + + /* + * Data flow flowlet + */ + @JsonIgnore private Map additionalProperties; + + /** + * Get the sources property: List of sources in Flowlet. + * + * @return the sources value. + */ + public List sources() { + return this.sources; + } + + /** + * Set the sources property: List of sources in Flowlet. + * + * @param sources the sources value to set. + * @return the Flowlet object itself. + */ + public Flowlet withSources(List sources) { + this.sources = sources; + return this; + } + + /** + * Get the sinks property: List of sinks in Flowlet. + * + * @return the sinks value. + */ + public List sinks() { + return this.sinks; + } + + /** + * Set the sinks property: List of sinks in Flowlet. + * + * @param sinks the sinks value to set. + * @return the Flowlet object itself. + */ + public Flowlet withSinks(List sinks) { + this.sinks = sinks; + return this; + } + + /** + * Get the transformations property: List of transformations in Flowlet. + * + * @return the transformations value. + */ + public List transformations() { + return this.transformations; + } + + /** + * Set the transformations property: List of transformations in Flowlet. + * + * @param transformations the transformations value to set. + * @return the Flowlet object itself. + */ + public Flowlet withTransformations(List transformations) { + this.transformations = transformations; + return this; + } + + /** + * Get the script property: Flowlet script. + * + * @return the script value. + */ + public String script() { + return this.script; + } + + /** + * Set the script property: Flowlet script. + * + * @param script the script value to set. + * @return the Flowlet object itself. + */ + public Flowlet withScript(String script) { + this.script = script; + return this; + } + + /** + * Get the scriptLines property: Flowlet script lines. + * + * @return the scriptLines value. + */ + public List scriptLines() { + return this.scriptLines; + } + + /** + * Set the scriptLines property: Flowlet script lines. + * + * @param scriptLines the scriptLines value to set. + * @return the Flowlet object itself. + */ + public Flowlet withScriptLines(List scriptLines) { + this.scriptLines = scriptLines; + return this; + } + + /** + * Get the additionalPropertiesProperty property: Any object. + * + * @return the additionalPropertiesProperty value. + */ + public Object additionalPropertiesProperty() { + return this.additionalPropertiesProperty; + } + + /** + * Set the additionalPropertiesProperty property: Any object. + * + * @param additionalPropertiesProperty the additionalPropertiesProperty value to set. + * @return the Flowlet object itself. + */ + public Flowlet withAdditionalPropertiesProperty(Object additionalPropertiesProperty) { + this.additionalPropertiesProperty = additionalPropertiesProperty; + return this; + } + + /** + * Get the additionalProperties property: Data flow flowlet. + * + * @return the additionalProperties value. + */ + @JsonAnyGetter + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Data flow flowlet. + * + * @param additionalProperties the additionalProperties value to set. + * @return the Flowlet object itself. + */ + public Flowlet withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); + } + additionalProperties.put(key.replace("\\.", "."), value); + } + + /** {@inheritDoc} */ + @Override + public Flowlet withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public Flowlet withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public Flowlet withFolder(DataFlowFolder folder) { + super.withFolder(folder); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (sources() != null) { + sources().forEach(e -> e.validate()); + } + if (sinks() != null) { + sinks().forEach(e -> e.validate()); + } + if (transformations() != null) { + transformations().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java index f81315c597299..4484321a75953 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ForEachActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ForEachActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,52 +16,35 @@ /** This activity is used for iterating over a collection and execute given activities. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ForEach") +@JsonFlatten @Fluent -public final class ForEachActivity extends ControlActivity { +public class ForEachActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(ForEachActivity.class); /* - * ForEach activity properties. + * Should the loop be executed in sequence or in parallel (max 50) */ - @JsonProperty(value = "typeProperties", required = true) - private ForEachActivityTypeProperties innerTypeProperties = new ForEachActivityTypeProperties(); + @JsonProperty(value = "typeProperties.isSequential") + private Boolean isSequential; - /** - * Get the innerTypeProperties property: ForEach activity properties. - * - * @return the innerTypeProperties value. + /* + * Batch count to be used for controlling the number of parallel execution + * (when isSequential is set to false). */ - private ForEachActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ForEachActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ForEachActivity withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.batchCount") + private Integer batchCount; - /** {@inheritDoc} */ - @Override - public ForEachActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Collection to iterate. + */ + @JsonProperty(value = "typeProperties.items", required = true) + private Expression items; - /** {@inheritDoc} */ - @Override - public ForEachActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * List of activities to execute . + */ + @JsonProperty(value = "typeProperties.activities", required = true) + private List activities; /** * Get the isSequential property: Should the loop be executed in sequence or in parallel (max 50). @@ -69,7 +52,7 @@ public ForEachActivity withUserProperties(List userProperties) { * @return the isSequential value. */ public Boolean isSequential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().isSequential(); + return this.isSequential; } /** @@ -79,10 +62,7 @@ public Boolean isSequential() { * @return the ForEachActivity object itself. */ public ForEachActivity withIsSequential(Boolean isSequential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withIsSequential(isSequential); + this.isSequential = isSequential; return this; } @@ -93,7 +73,7 @@ public ForEachActivity withIsSequential(Boolean isSequential) { * @return the batchCount value. */ public Integer batchCount() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().batchCount(); + return this.batchCount; } /** @@ -104,10 +84,7 @@ public Integer batchCount() { * @return the ForEachActivity object itself. */ public ForEachActivity withBatchCount(Integer batchCount) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withBatchCount(batchCount); + this.batchCount = batchCount; return this; } @@ -117,7 +94,7 @@ public ForEachActivity withBatchCount(Integer batchCount) { * @return the items value. */ public Expression items() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().items(); + return this.items; } /** @@ -127,10 +104,7 @@ public Expression items() { * @return the ForEachActivity object itself. */ public ForEachActivity withItems(Expression items) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withItems(items); + this.items = items; return this; } @@ -140,7 +114,7 @@ public ForEachActivity withItems(Expression items) { * @return the activities value. */ public List activities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().activities(); + return this.activities; } /** @@ -150,10 +124,35 @@ public List activities() { * @return the ForEachActivity object itself. */ public ForEachActivity withActivities(List activities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ForEachActivityTypeProperties(); - } - this.innerTypeProperties().withActivities(activities); + this.activities = activities; + return this; + } + + /** {@inheritDoc} */ + @Override + public ForEachActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public ForEachActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ForEachActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ForEachActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -165,13 +164,19 @@ public ForEachActivity withActivities(List activities) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (items() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property items in model ForEachActivity")); + } else { + items().validate(); + } + if (activities() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ForEachActivity")); + new IllegalArgumentException("Missing required property activities in model ForEachActivity")); } else { - innerTypeProperties().validate(); + activities().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java index 95651ad739d62..42c148b7575e3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/FtpServerLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.FtpServerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,67 @@ /** A FTP server Linked Service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("FtpServer") +@JsonFlatten @Fluent -public final class FtpServerLinkedService extends LinkedService { +public class FtpServerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(FtpServerLinkedService.class); /* - * Properties specific to this linked service type. + * Host name of the FTP server. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private FtpServerLinkedServiceTypeProperties innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. + /* + * The TCP port number that the FTP server uses to listen for client + * connections. Default value is 21. Type: integer (or Expression with + * resultType integer), minimum: 0. */ - private FtpServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The authentication type to be used to connect to the FTP server. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private FtpAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Username to logon the FTP server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password to logon the FTP server. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public FtpServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * If true, connect to the FTP server over SSL/TLS channel. Default value + * is true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * If true, validate the FTP server SSL certificate when connect over + * SSL/TLS channel. Default value is true. Type: boolean (or Expression + * with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableServerCertificateValidation") + private Object enableServerCertificateValidation; /** * Get the host property: Host name of the FTP server. Type: string (or Expression with resultType string). @@ -70,7 +85,7 @@ public FtpServerLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +95,7 @@ public Object host() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +106,7 @@ public FtpServerLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +117,7 @@ public Object port() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -118,7 +127,7 @@ public FtpServerLinkedService withPort(Object port) { * @return the authenticationType value. */ public FtpAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -128,10 +137,7 @@ public FtpAuthenticationType authenticationType() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withAuthenticationType(FtpAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -141,7 +147,7 @@ public FtpServerLinkedService withAuthenticationType(FtpAuthenticationType authe * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -151,10 +157,7 @@ public Object username() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -164,7 +167,7 @@ public FtpServerLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -174,10 +177,7 @@ public SecretBase password() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -188,7 +188,7 @@ public FtpServerLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -199,10 +199,7 @@ public Object encryptedCredential() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -213,7 +210,7 @@ public FtpServerLinkedService withEncryptedCredential(Object encryptedCredential * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -224,10 +221,7 @@ public Object enableSsl() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -238,9 +232,7 @@ public FtpServerLinkedService withEnableSsl(Object enableSsl) { * @return the enableServerCertificateValidation value. */ public Object enableServerCertificateValidation() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().enableServerCertificateValidation(); + return this.enableServerCertificateValidation; } /** @@ -251,10 +243,35 @@ public Object enableServerCertificateValidation() { * @return the FtpServerLinkedService object itself. */ public FtpServerLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new FtpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableServerCertificateValidation(enableServerCertificateValidation); + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + + /** {@inheritDoc} */ + @Override + public FtpServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public FtpServerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public FtpServerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public FtpServerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -266,13 +283,13 @@ public FtpServerLinkedService withEnableServerCertificateValidation(Object enabl @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model FtpServerLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model FtpServerLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java index 40725a49311c6..40ed5a3c66d54 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GetMetadataActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GetMetadataActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,66 +16,34 @@ /** Activity to get metadata of dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GetMetadata") +@JsonFlatten @Fluent -public final class GetMetadataActivity extends ExecutionActivity { +public class GetMetadataActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(GetMetadataActivity.class); /* - * GetMetadata activity properties. + * GetMetadata activity dataset reference. */ - @JsonProperty(value = "typeProperties", required = true) - private GetMetadataActivityTypeProperties innerTypeProperties = new GetMetadataActivityTypeProperties(); + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; - /** - * Get the innerTypeProperties property: GetMetadata activity properties. - * - * @return the innerTypeProperties value. + /* + * Fields of metadata to get from dataset. */ - private GetMetadataActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.fieldList") + private List fieldList; - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * GetMetadata activity store settings. + */ + @JsonProperty(value = "typeProperties.storeSettings") + private StoreReadSettings storeSettings; - /** {@inheritDoc} */ - @Override - public GetMetadataActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * GetMetadata activity format settings. + */ + @JsonProperty(value = "typeProperties.formatSettings") + private FormatReadSettings formatSettings; /** * Get the dataset property: GetMetadata activity dataset reference. @@ -83,7 +51,7 @@ public GetMetadataActivity withUserProperties(List userProperties) * @return the dataset value. */ public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); + return this.dataset; } /** @@ -93,10 +61,7 @@ public DatasetReference dataset() { * @return the GetMetadataActivity object itself. */ public GetMetadataActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); + this.dataset = dataset; return this; } @@ -106,7 +71,7 @@ public GetMetadataActivity withDataset(DatasetReference dataset) { * @return the fieldList value. */ public List fieldList() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fieldList(); + return this.fieldList; } /** @@ -116,10 +81,7 @@ public List fieldList() { * @return the GetMetadataActivity object itself. */ public GetMetadataActivity withFieldList(List fieldList) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withFieldList(fieldList); + this.fieldList = fieldList; return this; } @@ -129,7 +91,7 @@ public GetMetadataActivity withFieldList(List fieldList) { * @return the storeSettings value. */ public StoreReadSettings storeSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storeSettings(); + return this.storeSettings; } /** @@ -139,10 +101,7 @@ public StoreReadSettings storeSettings() { * @return the GetMetadataActivity object itself. */ public GetMetadataActivity withStoreSettings(StoreReadSettings storeSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withStoreSettings(storeSettings); + this.storeSettings = storeSettings; return this; } @@ -152,7 +111,7 @@ public GetMetadataActivity withStoreSettings(StoreReadSettings storeSettings) { * @return the formatSettings value. */ public FormatReadSettings formatSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().formatSettings(); + return this.formatSettings; } /** @@ -162,10 +121,49 @@ public FormatReadSettings formatSettings() { * @return the GetMetadataActivity object itself. */ public GetMetadataActivity withFormatSettings(FormatReadSettings formatSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GetMetadataActivityTypeProperties(); - } - this.innerTypeProperties().withFormatSettings(formatSettings); + this.formatSettings = formatSettings; + return this; + } + + /** {@inheritDoc} */ + @Override + public GetMetadataActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public GetMetadataActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public GetMetadataActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public GetMetadataActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GetMetadataActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public GetMetadataActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -177,13 +175,18 @@ public GetMetadataActivity withFormatSettings(FormatReadSettings formatSettings) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (dataset() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GetMetadataActivity")); + new IllegalArgumentException("Missing required property dataset in model GetMetadataActivity")); } else { - innerTypeProperties().validate(); + dataset().validate(); + } + if (storeSettings() != null) { + storeSettings().validate(); + } + if (formatSettings() != null) { + formatSettings().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java index 80b17deff6725..176f31abe871f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleAdWordsLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,90 @@ /** Google AdWords service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GoogleAdWords") +@JsonFlatten @Fluent -public final class GoogleAdWordsLinkedService extends LinkedService { +public class GoogleAdWordsLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleAdWordsLinkedService.class); /* - * Google AdWords service linked service properties. + * The Client customer ID of the AdWords account that you want to fetch + * report data for. */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleAdWordsLinkedServiceTypeProperties innerTypeProperties = - new GoogleAdWordsLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.clientCustomerID", required = true) + private Object clientCustomerId; - /** - * Get the innerTypeProperties property: Google AdWords service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The developer token associated with the manager account that you use to + * grant access to the AdWords API. */ - private GoogleAdWordsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.developerToken", required = true) + private SecretBase developerToken; - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The OAuth 2.0 authentication mechanism used for authentication. + * ServiceAuthentication can only be used on self-hosted IR. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private GoogleAdWordsAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The refresh token obtained from Google for authorizing access to AdWords + * for UserAuthentication. + */ + @JsonProperty(value = "typeProperties.refreshToken") + private SecretBase refreshToken; - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The client id of the google application used to acquire the refresh + * token. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; - /** {@inheritDoc} */ - @Override - public GoogleAdWordsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The client secret of the google application used to acquire the refresh + * token. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; + + /* + * The service account email ID that is used for ServiceAuthentication and + * can only be used on self-hosted IR. + */ + @JsonProperty(value = "typeProperties.email") + private Object email; + + /* + * The full path to the .p12 key file that is used to authenticate the + * service account email address and can only be used on self-hosted IR. + */ + @JsonProperty(value = "typeProperties.keyFilePath") + private Object keyFilePath; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report @@ -72,7 +109,7 @@ public GoogleAdWordsLinkedService withAnnotations(List annotations) { * @return the clientCustomerId value. */ public Object clientCustomerId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientCustomerId(); + return this.clientCustomerId; } /** @@ -83,10 +120,7 @@ public Object clientCustomerId() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withClientCustomerId(Object clientCustomerId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientCustomerId(clientCustomerId); + this.clientCustomerId = clientCustomerId; return this; } @@ -97,7 +131,7 @@ public GoogleAdWordsLinkedService withClientCustomerId(Object clientCustomerId) * @return the developerToken value. */ public SecretBase developerToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().developerToken(); + return this.developerToken; } /** @@ -108,10 +142,7 @@ public SecretBase developerToken() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withDeveloperToken(SecretBase developerToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDeveloperToken(developerToken); + this.developerToken = developerToken; return this; } @@ -122,7 +153,7 @@ public GoogleAdWordsLinkedService withDeveloperToken(SecretBase developerToken) * @return the authenticationType value. */ public GoogleAdWordsAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -133,10 +164,7 @@ public GoogleAdWordsAuthenticationType authenticationType() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withAuthenticationType(GoogleAdWordsAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -147,7 +175,7 @@ public GoogleAdWordsLinkedService withAuthenticationType(GoogleAdWordsAuthentica * @return the refreshToken value. */ public SecretBase refreshToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().refreshToken(); + return this.refreshToken; } /** @@ -158,10 +186,7 @@ public SecretBase refreshToken() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withRefreshToken(SecretBase refreshToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRefreshToken(refreshToken); + this.refreshToken = refreshToken; return this; } @@ -172,7 +197,7 @@ public GoogleAdWordsLinkedService withRefreshToken(SecretBase refreshToken) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -183,10 +208,7 @@ public Object clientId() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -196,7 +218,7 @@ public GoogleAdWordsLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -206,10 +228,7 @@ public SecretBase clientSecret() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -220,7 +239,7 @@ public GoogleAdWordsLinkedService withClientSecret(SecretBase clientSecret) { * @return the email value. */ public Object email() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().email(); + return this.email; } /** @@ -231,10 +250,7 @@ public Object email() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withEmail(Object email) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEmail(email); + this.email = email; return this; } @@ -245,7 +261,7 @@ public GoogleAdWordsLinkedService withEmail(Object email) { * @return the keyFilePath value. */ public Object keyFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().keyFilePath(); + return this.keyFilePath; } /** @@ -256,10 +272,7 @@ public Object keyFilePath() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withKeyFilePath(Object keyFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withKeyFilePath(keyFilePath); + this.keyFilePath = keyFilePath; return this; } @@ -271,7 +284,7 @@ public GoogleAdWordsLinkedService withKeyFilePath(Object keyFilePath) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -283,10 +296,7 @@ public Object trustedCertPath() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -297,7 +307,7 @@ public GoogleAdWordsLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -308,10 +318,7 @@ public Object useSystemTrustStore() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -322,7 +329,7 @@ public GoogleAdWordsLinkedService withUseSystemTrustStore(Object useSystemTrustS * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -333,10 +340,35 @@ public Object encryptedCredential() { * @return the GoogleAdWordsLinkedService object itself. */ public GoogleAdWordsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleAdWordsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleAdWordsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleAdWordsLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleAdWordsLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleAdWordsLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -348,13 +380,31 @@ public GoogleAdWordsLinkedService withEncryptedCredential(Object encryptedCreden @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (clientCustomerId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property clientCustomerId in model GoogleAdWordsLinkedService")); + } + if (developerToken() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleAdWordsLinkedService")); + "Missing required property developerToken in model GoogleAdWordsLinkedService")); } else { - innerTypeProperties().validate(); + developerToken().validate(); + } + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model GoogleAdWordsLinkedService")); + } + if (refreshToken() != null) { + refreshToken().validate(); + } + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java index 6728560974b20..9ad82278f64c2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleAdWordsObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Google AdWords service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GoogleAdWordsObject") +@JsonFlatten @Fluent -public final class GoogleAdWordsObjectDataset extends Dataset { +public class GoogleAdWordsObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleAdWordsObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the GoogleAdWordsObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public GoogleAdWordsObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public GoogleAdWordsObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the GoogleAdWordsObjectDataset object itself. - */ - public GoogleAdWordsObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public GoogleAdWordsObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java index 5fa3c97d1704a..d47ab68d185b2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,96 @@ /** Google BigQuery service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GoogleBigQuery") +@JsonFlatten @Fluent -public final class GoogleBigQueryLinkedService extends LinkedService { +public class GoogleBigQueryLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleBigQueryLinkedService.class); /* - * Google BigQuery service linked service properties. + * The default BigQuery project to query against. */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleBigQueryLinkedServiceTypeProperties innerTypeProperties = - new GoogleBigQueryLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.project", required = true) + private Object project; - /** - * Get the innerTypeProperties property: Google BigQuery service linked service properties. - * - * @return the innerTypeProperties value. + /* + * A comma-separated list of public BigQuery projects to access. */ - private GoogleBigQueryLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.additionalProjects") + private Object additionalProjects; - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Whether to request access to Google Drive. Allowing Google Drive access + * enables support for federated tables that combine BigQuery data with + * data from Google Drive. The default value is false. + */ + @JsonProperty(value = "typeProperties.requestGoogleDriveScope") + private Object requestGoogleDriveScope; - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The OAuth 2.0 authentication mechanism used for authentication. + * ServiceAuthentication can only be used on self-hosted IR. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private GoogleBigQueryAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The refresh token obtained from Google for authorizing access to + * BigQuery for UserAuthentication. + */ + @JsonProperty(value = "typeProperties.refreshToken") + private SecretBase refreshToken; - /** {@inheritDoc} */ - @Override - public GoogleBigQueryLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The client id of the google application used to acquire the refresh + * token. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; + + /* + * The client secret of the google application used to acquire the refresh + * token. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; + + /* + * The service account email ID that is used for ServiceAuthentication and + * can only be used on self-hosted IR. + */ + @JsonProperty(value = "typeProperties.email") + private Object email; + + /* + * The full path to the .p12 key file that is used to authenticate the + * service account email address and can only be used on self-hosted IR. + */ + @JsonProperty(value = "typeProperties.keyFilePath") + private Object keyFilePath; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the project property: The default BigQuery project to query against. @@ -71,7 +114,7 @@ public GoogleBigQueryLinkedService withAnnotations(List annotations) { * @return the project value. */ public Object project() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().project(); + return this.project; } /** @@ -81,10 +124,7 @@ public Object project() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withProject(Object project) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withProject(project); + this.project = project; return this; } @@ -94,7 +134,7 @@ public GoogleBigQueryLinkedService withProject(Object project) { * @return the additionalProjects value. */ public Object additionalProjects() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalProjects(); + return this.additionalProjects; } /** @@ -104,10 +144,7 @@ public Object additionalProjects() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withAdditionalProjects(Object additionalProjects) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAdditionalProjects(additionalProjects); + this.additionalProjects = additionalProjects; return this; } @@ -119,7 +156,7 @@ public GoogleBigQueryLinkedService withAdditionalProjects(Object additionalProje * @return the requestGoogleDriveScope value. */ public Object requestGoogleDriveScope() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestGoogleDriveScope(); + return this.requestGoogleDriveScope; } /** @@ -131,10 +168,7 @@ public Object requestGoogleDriveScope() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withRequestGoogleDriveScope(Object requestGoogleDriveScope) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRequestGoogleDriveScope(requestGoogleDriveScope); + this.requestGoogleDriveScope = requestGoogleDriveScope; return this; } @@ -145,7 +179,7 @@ public GoogleBigQueryLinkedService withRequestGoogleDriveScope(Object requestGoo * @return the authenticationType value. */ public GoogleBigQueryAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -156,10 +190,7 @@ public GoogleBigQueryAuthenticationType authenticationType() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withAuthenticationType(GoogleBigQueryAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -170,7 +201,7 @@ public GoogleBigQueryLinkedService withAuthenticationType(GoogleBigQueryAuthenti * @return the refreshToken value. */ public SecretBase refreshToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().refreshToken(); + return this.refreshToken; } /** @@ -181,10 +212,7 @@ public SecretBase refreshToken() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withRefreshToken(SecretBase refreshToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRefreshToken(refreshToken); + this.refreshToken = refreshToken; return this; } @@ -195,7 +223,7 @@ public GoogleBigQueryLinkedService withRefreshToken(SecretBase refreshToken) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -206,10 +234,7 @@ public Object clientId() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -219,7 +244,7 @@ public GoogleBigQueryLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -229,10 +254,7 @@ public SecretBase clientSecret() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -243,7 +265,7 @@ public GoogleBigQueryLinkedService withClientSecret(SecretBase clientSecret) { * @return the email value. */ public Object email() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().email(); + return this.email; } /** @@ -254,10 +276,7 @@ public Object email() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withEmail(Object email) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEmail(email); + this.email = email; return this; } @@ -268,7 +287,7 @@ public GoogleBigQueryLinkedService withEmail(Object email) { * @return the keyFilePath value. */ public Object keyFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().keyFilePath(); + return this.keyFilePath; } /** @@ -279,10 +298,7 @@ public Object keyFilePath() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withKeyFilePath(Object keyFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withKeyFilePath(keyFilePath); + this.keyFilePath = keyFilePath; return this; } @@ -294,7 +310,7 @@ public GoogleBigQueryLinkedService withKeyFilePath(Object keyFilePath) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -306,10 +322,7 @@ public Object trustedCertPath() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -320,7 +333,7 @@ public GoogleBigQueryLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -331,10 +344,7 @@ public Object useSystemTrustStore() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -345,7 +355,7 @@ public GoogleBigQueryLinkedService withUseSystemTrustStore(Object useSystemTrust * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -356,10 +366,35 @@ public Object encryptedCredential() { * @return the GoogleBigQueryLinkedService object itself. */ public GoogleBigQueryLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -371,13 +406,23 @@ public GoogleBigQueryLinkedService withEncryptedCredential(Object encryptedCrede @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (project() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleBigQueryLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property project in model GoogleBigQueryLinkedService")); + } + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model GoogleBigQueryLinkedService")); + } + if (refreshToken() != null) { + refreshToken().validate(); + } + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java index 85083cc2e8c10..83a1483b053e2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleBigQueryObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleBigQueryDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Google BigQuery service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GoogleBigQueryObject") +@JsonFlatten @Fluent -public final class GoogleBigQueryObjectDataset extends Dataset { +public class GoogleBigQueryObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleBigQueryObjectDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using database + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private GoogleBigQueryDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Google BigQuery. Type: string (or Expression with + * resultType string). */ - private GoogleBigQueryDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleBigQueryObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The database name of the Google BigQuery. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.dataset") + private Object dataset; /** * Get the tableName property: This property will be retired. Please consider using database + table properties @@ -92,7 +50,7 @@ public GoogleBigQueryObjectDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the GoogleBigQueryObjectDataset object itself. */ public GoogleBigQueryObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -117,7 +72,7 @@ public GoogleBigQueryObjectDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -128,10 +83,7 @@ public Object table() { * @return the GoogleBigQueryObjectDataset object itself. */ public GoogleBigQueryObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } @@ -142,7 +94,7 @@ public GoogleBigQueryObjectDataset withTable(Object table) { * @return the dataset value. */ public Object dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); + return this.dataset; } /** @@ -153,10 +105,56 @@ public Object dataset() { * @return the GoogleBigQueryObjectDataset object itself. */ public GoogleBigQueryObjectDataset withDataset(Object dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleBigQueryDatasetTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); + this.dataset = dataset; + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleBigQueryObjectDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public GoogleBigQueryObjectDataset withDataset(Object dataset) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java index 121f7532320f5..be079fefcbc56 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GoogleCloudStorageLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GoogleCloudStorageLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,42 @@ /** Linked service for Google Cloud Storage. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GoogleCloudStorage") +@JsonFlatten @Fluent -public final class GoogleCloudStorageLinkedService extends LinkedService { +public class GoogleCloudStorageLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(GoogleCloudStorageLinkedService.class); /* - * Google Cloud Storage linked service properties. + * The access key identifier of the Google Cloud Storage Identity and + * Access Management (IAM) user. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private GoogleCloudStorageLinkedServiceTypeProperties innerTypeProperties = - new GoogleCloudStorageLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.accessKeyId") + private Object accessKeyId; - /** - * Get the innerTypeProperties property: Google Cloud Storage linked service properties. - * - * @return the innerTypeProperties value. + /* + * The secret access key of the Google Cloud Storage Identity and Access + * Management (IAM) user. */ - private GoogleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.secretAccessKey") + private SecretBase secretAccessKey; - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * This value specifies the endpoint to access with the Google Cloud + * Storage Connector. This is an optional property; change it only if you + * want to try a different service endpoint or want to switch between https + * and http. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUrl") + private Object serviceUrl; - /** {@inheritDoc} */ - @Override - public GoogleCloudStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the accessKeyId property: The access key identifier of the Google Cloud Storage Identity and Access @@ -72,7 +61,7 @@ public GoogleCloudStorageLinkedService withAnnotations(List annotations) * @return the accessKeyId value. */ public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); + return this.accessKeyId; } /** @@ -83,10 +72,7 @@ public Object accessKeyId() { * @return the GoogleCloudStorageLinkedService object itself. */ public GoogleCloudStorageLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); + this.accessKeyId = accessKeyId; return this; } @@ -97,7 +83,7 @@ public GoogleCloudStorageLinkedService withAccessKeyId(Object accessKeyId) { * @return the secretAccessKey value. */ public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); + return this.secretAccessKey; } /** @@ -108,10 +94,7 @@ public SecretBase secretAccessKey() { * @return the GoogleCloudStorageLinkedService object itself. */ public GoogleCloudStorageLinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); + this.secretAccessKey = secretAccessKey; return this; } @@ -123,7 +106,7 @@ public GoogleCloudStorageLinkedService withSecretAccessKey(SecretBase secretAcce * @return the serviceUrl value. */ public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); + return this.serviceUrl; } /** @@ -135,10 +118,7 @@ public Object serviceUrl() { * @return the GoogleCloudStorageLinkedService object itself. */ public GoogleCloudStorageLinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); + this.serviceUrl = serviceUrl; return this; } @@ -149,7 +129,7 @@ public GoogleCloudStorageLinkedService withServiceUrl(Object serviceUrl) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -160,10 +140,35 @@ public Object encryptedCredential() { * @return the GoogleCloudStorageLinkedService object itself. */ public GoogleCloudStorageLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GoogleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleCloudStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleCloudStorageLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleCloudStorageLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public GoogleCloudStorageLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -175,13 +180,8 @@ public GoogleCloudStorageLinkedService withEncryptedCredential(Object encryptedC @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GoogleCloudStorageLinkedService")); - } else { - innerTypeProperties().validate(); + if (secretAccessKey() != null) { + secretAccessKey().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java index fb5d36b84da90..41c551f257775 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Greenplum Database linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Greenplum") +@JsonFlatten @Fluent -public final class GreenplumLinkedService extends LinkedService { +public class GreenplumLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(GreenplumLinkedService.class); /* - * Greenplum Database linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private GreenplumLinkedServiceTypeProperties innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Greenplum Database linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private GreenplumLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public GreenplumLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the GreenplumLinkedService object itself. */ public GreenplumLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public GreenplumLinkedService withConnectionString(Object connectionString) { * @return the pwd value. */ public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); + return this.pwd; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference pwd() { * @return the GreenplumLinkedService object itself. */ public GreenplumLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); + this.pwd = pwd; return this; } @@ -119,7 +92,7 @@ public GreenplumLinkedService withPwd(AzureKeyVaultSecretReference pwd) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the GreenplumLinkedService object itself. */ public GreenplumLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public GreenplumLinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model GreenplumLinkedService")); - } else { - innerTypeProperties().validate(); + if (pwd() != null) { + pwd().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java index 7cd3fc67586bc..987bebfc7e256 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/GreenplumTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GreenplumDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Greenplum Database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("GreenplumTable") +@JsonFlatten @Fluent -public final class GreenplumTableDataset extends Dataset { +public class GreenplumTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(GreenplumTableDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private GreenplumDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of Greenplum. Type: string (or Expression with resultType + * string). */ - private GreenplumDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public GreenplumTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of Greenplum. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public GreenplumTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the GreenplumTableDataset object itself. */ public GreenplumTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public GreenplumTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the GreenplumTableDataset object itself. */ public GreenplumTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of Greenplum. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of Greenplum. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of Greenplum. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the GreenplumTableDataset object itself. */ - public GreenplumTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GreenplumDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public GreenplumTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public GreenplumTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public GreenplumTableDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java index 5b27557a5a9dd..11ed2312a4866 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HBaseLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,87 @@ /** HBase server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HBase") +@JsonFlatten @Fluent -public final class HBaseLinkedService extends LinkedService { +public class HBaseLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HBaseLinkedService.class); /* - * HBase server linked service properties. + * The IP address or host name of the HBase server. (i.e. 192.168.222.160) */ - @JsonProperty(value = "typeProperties", required = true) - private HBaseLinkedServiceTypeProperties innerTypeProperties = new HBaseLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: HBase server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The TCP port that the HBase instance uses to listen for client + * connections. The default value is 9090. */ - private HBaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The partial URL corresponding to the HBase server. (i.e. + * /gateway/sandbox/hbase/version) + */ + @JsonProperty(value = "typeProperties.httpPath") + private Object httpPath; - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The authentication mechanism to use to connect to the HBase server. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private HBaseAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The user name used to connect to the HBase instance. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public HBaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The password corresponding to the user name. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to require a CA-issued SSL certificate name to match + * the host name of the server when connecting over SSL. The default value + * is false. + */ + @JsonProperty(value = "typeProperties.allowHostNameCNMismatch") + private Object allowHostnameCNMismatch; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The IP address or host name of the HBase server. (i.e. 192.168.222.160). @@ -70,7 +105,7 @@ public HBaseLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +115,7 @@ public Object host() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +126,7 @@ public HBaseLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +137,7 @@ public Object port() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -119,7 +148,7 @@ public HBaseLinkedService withPort(Object port) { * @return the httpPath value. */ public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); + return this.httpPath; } /** @@ -130,10 +159,7 @@ public Object httpPath() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); + this.httpPath = httpPath; return this; } @@ -143,7 +169,7 @@ public HBaseLinkedService withHttpPath(Object httpPath) { * @return the authenticationType value. */ public HBaseAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -153,10 +179,7 @@ public HBaseAuthenticationType authenticationType() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withAuthenticationType(HBaseAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -166,7 +189,7 @@ public HBaseLinkedService withAuthenticationType(HBaseAuthenticationType authent * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -176,10 +199,7 @@ public Object username() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -189,7 +209,7 @@ public HBaseLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -199,10 +219,7 @@ public SecretBase password() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -213,7 +230,7 @@ public HBaseLinkedService withPassword(SecretBase password) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -224,10 +241,7 @@ public Object enableSsl() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -239,7 +253,7 @@ public HBaseLinkedService withEnableSsl(Object enableSsl) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -251,10 +265,7 @@ public Object trustedCertPath() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -265,7 +276,7 @@ public HBaseLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the allowHostnameCNMismatch value. */ public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); + return this.allowHostnameCNMismatch; } /** @@ -276,10 +287,7 @@ public Object allowHostnameCNMismatch() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); + this.allowHostnameCNMismatch = allowHostnameCNMismatch; return this; } @@ -290,7 +298,7 @@ public HBaseLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMism * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -301,10 +309,7 @@ public Object allowSelfSignedServerCert() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -315,7 +320,7 @@ public HBaseLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedSe * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -326,10 +331,35 @@ public Object encryptedCredential() { * @return the HBaseLinkedService object itself. */ public HBaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HBaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public HBaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HBaseLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HBaseLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HBaseLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -341,13 +371,19 @@ public HBaseLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property host in model HBaseLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HBaseLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model HBaseLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java index 2c555b33ad622..219876ab8fed2 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HBaseObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** HBase server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HBaseObject") +@JsonFlatten @Fluent -public final class HBaseObjectDataset extends Dataset { +public class HBaseObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(HBaseObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the HBaseObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public HBaseObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public HBaseObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the HBaseObjectDataset object itself. - */ - public HBaseObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public HBaseObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java index 0ba4f5cc7f48f..bdcfc7ce4b186 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightHiveActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightHiveActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,66 +18,60 @@ /** HDInsight Hive activity type. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsightHive") +@JsonFlatten @Fluent -public final class HDInsightHiveActivity extends ExecutionActivity { +public class HDInsightHiveActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightHiveActivity.class); /* - * HDInsight Hive activity properties. + * Storage linked service references. */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightHiveActivityTypeProperties innerTypeProperties = new HDInsightHiveActivityTypeProperties(); + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; - /** - * Get the innerTypeProperties property: HDInsight Hive activity properties. - * - * @return the innerTypeProperties value. + /* + * User specified arguments to HDInsightActivity. */ - private HDInsightHiveActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.arguments") + private List arguments; - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * Debug info option. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Script path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.scriptPath") + private Object scriptPath; - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Script linked service reference. + */ + @JsonProperty(value = "typeProperties.scriptLinkedService") + private LinkedServiceReference scriptLinkedService; - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Allows user to specify defines for Hive job request. + */ + @JsonProperty(value = "typeProperties.defines") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map defines; - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * User specified arguments under hivevar namespace. + */ + @JsonProperty(value = "typeProperties.variables") + private List variables; - /** {@inheritDoc} */ - @Override - public HDInsightHiveActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Query timeout value (in minutes). Effective when the HDInsight cluster + * is with ESP (Enterprise Security Package) + */ + @JsonProperty(value = "typeProperties.queryTimeout") + private Integer queryTimeout; /** * Get the storageLinkedServices property: Storage linked service references. @@ -84,7 +79,7 @@ public HDInsightHiveActivity withUserProperties(List userPropertie * @return the storageLinkedServices value. */ public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); + return this.storageLinkedServices; } /** @@ -94,10 +89,7 @@ public List storageLinkedServices() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); + this.storageLinkedServices = storageLinkedServices; return this; } @@ -107,7 +99,7 @@ public HDInsightHiveActivity withStorageLinkedServices(List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); + return this.arguments; } /** @@ -117,10 +109,7 @@ public List arguments() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); + this.arguments = arguments; return this; } @@ -130,7 +119,7 @@ public HDInsightHiveActivity withArguments(List arguments) { * @return the getDebugInfo value. */ public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); + return this.getDebugInfo; } /** @@ -140,10 +129,7 @@ public HDInsightActivityDebugInfoOption getDebugInfo() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); + this.getDebugInfo = getDebugInfo; return this; } @@ -153,7 +139,7 @@ public HDInsightHiveActivity withGetDebugInfo(HDInsightActivityDebugInfoOption g * @return the scriptPath value. */ public Object scriptPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptPath(); + return this.scriptPath; } /** @@ -163,10 +149,7 @@ public Object scriptPath() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withScriptPath(Object scriptPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withScriptPath(scriptPath); + this.scriptPath = scriptPath; return this; } @@ -176,7 +159,7 @@ public HDInsightHiveActivity withScriptPath(Object scriptPath) { * @return the scriptLinkedService value. */ public LinkedServiceReference scriptLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptLinkedService(); + return this.scriptLinkedService; } /** @@ -186,10 +169,7 @@ public LinkedServiceReference scriptLinkedService() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withScriptLinkedService(scriptLinkedService); + this.scriptLinkedService = scriptLinkedService; return this; } @@ -199,7 +179,7 @@ public HDInsightHiveActivity withScriptLinkedService(LinkedServiceReference scri * @return the defines value. */ public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); + return this.defines; } /** @@ -209,10 +189,7 @@ public Map defines() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); + this.defines = defines; return this; } @@ -222,7 +199,7 @@ public HDInsightHiveActivity withDefines(Map defines) { * @return the variables value. */ public List variables() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variables(); + return this.variables; } /** @@ -232,10 +209,7 @@ public List variables() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withVariables(List variables) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withVariables(variables); + this.variables = variables; return this; } @@ -246,7 +220,7 @@ public HDInsightHiveActivity withVariables(List variables) { * @return the queryTimeout value. */ public Integer queryTimeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().queryTimeout(); + return this.queryTimeout; } /** @@ -257,10 +231,49 @@ public Integer queryTimeout() { * @return the HDInsightHiveActivity object itself. */ public HDInsightHiveActivity withQueryTimeout(Integer queryTimeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightHiveActivityTypeProperties(); - } - this.innerTypeProperties().withQueryTimeout(queryTimeout); + this.queryTimeout = queryTimeout; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightHiveActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightHiveActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightHiveActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightHiveActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightHiveActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightHiveActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -272,13 +285,11 @@ public HDInsightHiveActivity withQueryTimeout(Integer queryTimeout) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightHiveActivity")); - } else { - innerTypeProperties().validate(); + if (storageLinkedServices() != null) { + storageLinkedServices().forEach(e -> e.validate()); + } + if (scriptLinkedService() != null) { + scriptLinkedService().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java index e999656f84d73..0d115e671bb47 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,65 @@ /** HDInsight linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsight") +@JsonFlatten @Fluent -public final class HDInsightLinkedService extends LinkedService { +public class HDInsightLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightLinkedService.class); /* - * HDInsight linked service properties. + * HDInsight cluster URI. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightLinkedServiceTypeProperties innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.clusterUri", required = true) + private Object clusterUri; - /** - * Get the innerTypeProperties property: HDInsight linked service properties. - * - * @return the innerTypeProperties value. + /* + * HDInsight cluster user name. Type: string (or Expression with resultType + * string). */ - private HDInsightLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * HDInsight cluster password. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The Azure Storage linked service reference. + */ + @JsonProperty(value = "typeProperties.linkedServiceName") + private LinkedServiceReference linkedServiceName; - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * A reference to the Azure SQL linked service that points to the HCatalog + * database. + */ + @JsonProperty(value = "typeProperties.hcatalogLinkedServiceName") + private LinkedServiceReference hcatalogLinkedServiceName; - /** {@inheritDoc} */ - @Override - public HDInsightLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * Specify if the HDInsight is created with ESP (Enterprise Security + * Package). Type: Boolean. + */ + @JsonProperty(value = "typeProperties.isEspEnabled") + private Object isEspEnabled; + + /* + * Specify the FileSystem if the main storage for the HDInsight is ADLS + * Gen2. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.fileSystem") + private Object fileSystem; /** * Get the clusterUri property: HDInsight cluster URI. Type: string (or Expression with resultType string). @@ -70,7 +83,7 @@ public HDInsightLinkedService withAnnotations(List annotations) { * @return the clusterUri value. */ public Object clusterUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterUri(); + return this.clusterUri; } /** @@ -80,10 +93,7 @@ public Object clusterUri() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withClusterUri(Object clusterUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterUri(clusterUri); + this.clusterUri = clusterUri; return this; } @@ -93,7 +103,7 @@ public HDInsightLinkedService withClusterUri(Object clusterUri) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -103,10 +113,7 @@ public Object username() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -116,7 +123,7 @@ public HDInsightLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -126,10 +133,7 @@ public SecretBase password() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -139,7 +143,7 @@ public HDInsightLinkedService withPassword(SecretBase password) { * @return the linkedServiceName value. */ public LinkedServiceReference linkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServiceName(); + return this.linkedServiceName; } /** @@ -149,10 +153,7 @@ public LinkedServiceReference linkedServiceName() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLinkedServiceName(linkedServiceName); + this.linkedServiceName = linkedServiceName; return this; } @@ -163,7 +164,7 @@ public HDInsightLinkedService withLinkedServiceName(LinkedServiceReference linke * @return the hcatalogLinkedServiceName value. */ public LinkedServiceReference hcatalogLinkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hcatalogLinkedServiceName(); + return this.hcatalogLinkedServiceName; } /** @@ -174,10 +175,7 @@ public LinkedServiceReference hcatalogLinkedServiceName() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withHcatalogLinkedServiceName(LinkedServiceReference hcatalogLinkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHcatalogLinkedServiceName(hcatalogLinkedServiceName); + this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; return this; } @@ -188,7 +186,7 @@ public HDInsightLinkedService withHcatalogLinkedServiceName(LinkedServiceReferen * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -199,10 +197,7 @@ public Object encryptedCredential() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -213,7 +208,7 @@ public HDInsightLinkedService withEncryptedCredential(Object encryptedCredential * @return the isEspEnabled value. */ public Object isEspEnabled() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().isEspEnabled(); + return this.isEspEnabled; } /** @@ -224,10 +219,7 @@ public Object isEspEnabled() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withIsEspEnabled(Object isEspEnabled) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withIsEspEnabled(isEspEnabled); + this.isEspEnabled = isEspEnabled; return this; } @@ -238,7 +230,7 @@ public HDInsightLinkedService withIsEspEnabled(Object isEspEnabled) { * @return the fileSystem value. */ public Object fileSystem() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileSystem(); + return this.fileSystem; } /** @@ -249,10 +241,35 @@ public Object fileSystem() { * @return the HDInsightLinkedService object itself. */ public HDInsightLinkedService withFileSystem(Object fileSystem) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withFileSystem(fileSystem); + this.fileSystem = fileSystem; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -264,13 +281,20 @@ public HDInsightLinkedService withFileSystem(Object fileSystem) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (clusterUri() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property clusterUri in model HDInsightLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (linkedServiceName() != null) { + linkedServiceName().validate(); + } + if (hcatalogLinkedServiceName() != null) { + hcatalogLinkedServiceName().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java index 5360c730ad006..7863c6888dd26 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightMapReduceActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightMapReduceActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,67 +18,59 @@ /** HDInsight MapReduce activity type. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsightMapReduce") +@JsonFlatten @Fluent -public final class HDInsightMapReduceActivity extends ExecutionActivity { +public class HDInsightMapReduceActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightMapReduceActivity.class); /* - * HDInsight MapReduce activity properties. + * Storage linked service references. */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightMapReduceActivityTypeProperties innerTypeProperties = - new HDInsightMapReduceActivityTypeProperties(); + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; - /** - * Get the innerTypeProperties property: HDInsight MapReduce activity properties. - * - * @return the innerTypeProperties value. + /* + * User specified arguments to HDInsightActivity. */ - private HDInsightMapReduceActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.arguments") + private List arguments; - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * Debug info option. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Class name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.className", required = true) + private Object className; - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Jar path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.jarFilePath", required = true) + private Object jarFilePath; - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Jar linked service reference. + */ + @JsonProperty(value = "typeProperties.jarLinkedService") + private LinkedServiceReference jarLinkedService; - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Jar libs. + */ + @JsonProperty(value = "typeProperties.jarLibs") + private List jarLibs; - /** {@inheritDoc} */ - @Override - public HDInsightMapReduceActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Allows user to specify defines for the MapReduce job request. + */ + @JsonProperty(value = "typeProperties.defines") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map defines; /** * Get the storageLinkedServices property: Storage linked service references. @@ -85,7 +78,7 @@ public HDInsightMapReduceActivity withUserProperties(List userProp * @return the storageLinkedServices value. */ public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); + return this.storageLinkedServices; } /** @@ -95,10 +88,7 @@ public List storageLinkedServices() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); + this.storageLinkedServices = storageLinkedServices; return this; } @@ -108,7 +98,7 @@ public HDInsightMapReduceActivity withStorageLinkedServices(List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); + return this.arguments; } /** @@ -118,10 +108,7 @@ public List arguments() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); + this.arguments = arguments; return this; } @@ -131,7 +118,7 @@ public HDInsightMapReduceActivity withArguments(List arguments) { * @return the getDebugInfo value. */ public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); + return this.getDebugInfo; } /** @@ -141,10 +128,7 @@ public HDInsightActivityDebugInfoOption getDebugInfo() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); + this.getDebugInfo = getDebugInfo; return this; } @@ -154,7 +138,7 @@ public HDInsightMapReduceActivity withGetDebugInfo(HDInsightActivityDebugInfoOpt * @return the className value. */ public Object className() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().className(); + return this.className; } /** @@ -164,10 +148,7 @@ public Object className() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withClassName(Object className) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withClassName(className); + this.className = className; return this; } @@ -177,7 +158,7 @@ public HDInsightMapReduceActivity withClassName(Object className) { * @return the jarFilePath value. */ public Object jarFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarFilePath(); + return this.jarFilePath; } /** @@ -187,10 +168,7 @@ public Object jarFilePath() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withJarFilePath(Object jarFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withJarFilePath(jarFilePath); + this.jarFilePath = jarFilePath; return this; } @@ -200,7 +178,7 @@ public HDInsightMapReduceActivity withJarFilePath(Object jarFilePath) { * @return the jarLinkedService value. */ public LinkedServiceReference jarLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarLinkedService(); + return this.jarLinkedService; } /** @@ -210,10 +188,7 @@ public LinkedServiceReference jarLinkedService() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withJarLinkedService(LinkedServiceReference jarLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withJarLinkedService(jarLinkedService); + this.jarLinkedService = jarLinkedService; return this; } @@ -223,7 +198,7 @@ public HDInsightMapReduceActivity withJarLinkedService(LinkedServiceReference ja * @return the jarLibs value. */ public List jarLibs() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().jarLibs(); + return this.jarLibs; } /** @@ -233,10 +208,7 @@ public List jarLibs() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withJarLibs(List jarLibs) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withJarLibs(jarLibs); + this.jarLibs = jarLibs; return this; } @@ -246,7 +218,7 @@ public HDInsightMapReduceActivity withJarLibs(List jarLibs) { * @return the defines value. */ public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); + return this.defines; } /** @@ -256,10 +228,49 @@ public Map defines() { * @return the HDInsightMapReduceActivity object itself. */ public HDInsightMapReduceActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightMapReduceActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); + this.defines = defines; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightMapReduceActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightMapReduceActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightMapReduceActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightMapReduceActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightMapReduceActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightMapReduceActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -271,13 +282,23 @@ public HDInsightMapReduceActivity withDefines(Map defines) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (storageLinkedServices() != null) { + storageLinkedServices().forEach(e -> e.validate()); + } + if (className() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property className in model HDInsightMapReduceActivity")); + } + if (jarFilePath() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightMapReduceActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property jarFilePath in model HDInsightMapReduceActivity")); + } + if (jarLinkedService() != null) { + jarLinkedService().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java index 60f6e5192741c..05ef126eb2c24 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightOnDemandLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightOnDemandLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,247 @@ /** HDInsight ondemand linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsightOnDemand") +@JsonFlatten @Fluent -public final class HDInsightOnDemandLinkedService extends LinkedService { +public class HDInsightOnDemandLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightOnDemandLinkedService.class); /* - * HDInsight ondemand linked service properties. + * Number of worker/data nodes in the cluster. Suggestion value: 4. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightOnDemandLinkedServiceTypeProperties innerTypeProperties = - new HDInsightOnDemandLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.clusterSize", required = true) + private Object clusterSize; - /** - * Get the innerTypeProperties property: HDInsight ondemand linked service properties. - * - * @return the innerTypeProperties value. + /* + * The allowed idle time for the on-demand HDInsight cluster. Specifies how + * long the on-demand HDInsight cluster stays alive after completion of an + * activity run if there are no other active jobs in the cluster. The + * minimum value is 5 mins. Type: string (or Expression with resultType + * string). */ - private HDInsightOnDemandLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.timeToLive", required = true) + private Object timeToLive; - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Version of the HDInsight cluster.  Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.version", required = true) + private Object version; - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Azure Storage linked service to be used by the on-demand cluster for + * storing and processing data. + */ + @JsonProperty(value = "typeProperties.linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The customer’s subscription to host the cluster. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.hostSubscriptionId", required = true) + private Object hostSubscriptionId; - /** {@inheritDoc} */ - @Override - public HDInsightOnDemandLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The service principal id for the hostSubscriptionId. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * The key for the service principal id. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /* + * The Tenant id/name to which the service principal belongs. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tenant", required = true) + private Object tenant; + + /* + * The resource group where the cluster belongs. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clusterResourceGroup", required = true) + private Object clusterResourceGroup; + + /* + * The prefix of cluster name, postfix will be distinct with timestamp. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clusterNamePrefix") + private Object clusterNamePrefix; + + /* + * The username to access the cluster. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.clusterUserName") + private Object clusterUsername; + + /* + * The password to access the cluster. + */ + @JsonProperty(value = "typeProperties.clusterPassword") + private SecretBase clusterPassword; + + /* + * The username to SSH remotely connect to cluster’s node (for Linux). + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clusterSshUserName") + private Object clusterSshUsername; + + /* + * The password to SSH remotely connect cluster’s node (for Linux). + */ + @JsonProperty(value = "typeProperties.clusterSshPassword") + private SecretBase clusterSshPassword; + + /* + * Specifies additional storage accounts for the HDInsight linked service + * so that the Data Factory service can register them on your behalf. + */ + @JsonProperty(value = "typeProperties.additionalLinkedServiceNames") + private List additionalLinkedServiceNames; + + /* + * The name of Azure SQL linked service that point to the HCatalog + * database. The on-demand HDInsight cluster is created by using the Azure + * SQL database as the metastore. + */ + @JsonProperty(value = "typeProperties.hcatalogLinkedServiceName") + private LinkedServiceReference hcatalogLinkedServiceName; + + /* + * The cluster type. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clusterType") + private Object clusterType; + + /* + * The version of spark if the cluster type is 'spark'. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sparkVersion") + private Object sparkVersion; + + /* + * Specifies the core configuration parameters (as in core-site.xml) for + * the HDInsight cluster to be created. + */ + @JsonProperty(value = "typeProperties.coreConfiguration") + private Object coreConfiguration; + + /* + * Specifies the HBase configuration parameters (hbase-site.xml) for the + * HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.hBaseConfiguration") + private Object hBaseConfiguration; + + /* + * Specifies the HDFS configuration parameters (hdfs-site.xml) for the + * HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.hdfsConfiguration") + private Object hdfsConfiguration; + + /* + * Specifies the hive configuration parameters (hive-site.xml) for the + * HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.hiveConfiguration") + private Object hiveConfiguration; + + /* + * Specifies the MapReduce configuration parameters (mapred-site.xml) for + * the HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.mapReduceConfiguration") + private Object mapReduceConfiguration; + + /* + * Specifies the Oozie configuration parameters (oozie-site.xml) for the + * HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.oozieConfiguration") + private Object oozieConfiguration; + + /* + * Specifies the Storm configuration parameters (storm-site.xml) for the + * HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.stormConfiguration") + private Object stormConfiguration; + + /* + * Specifies the Yarn configuration parameters (yarn-site.xml) for the + * HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.yarnConfiguration") + private Object yarnConfiguration; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * Specifies the size of the head node for the HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.headNodeSize") + private Object headNodeSize; + + /* + * Specifies the size of the data node for the HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.dataNodeSize") + private Object dataNodeSize; + + /* + * Specifies the size of the Zoo Keeper node for the HDInsight cluster. + */ + @JsonProperty(value = "typeProperties.zookeeperNodeSize") + private Object zookeeperNodeSize; + + /* + * Custom script actions to run on HDI ondemand cluster once it's up. + * Please refer to + * https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. + */ + @JsonProperty(value = "typeProperties.scriptActions") + private List scriptActions; + + /* + * The ARM resource ID for the vNet to which the cluster should be joined + * after creation. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.virtualNetworkId") + private Object virtualNetworkId; + + /* + * The ARM resource ID for the subnet in the vNet. If virtualNetworkId was + * specified, then this property is required. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.subnetName") + private Object subnetName; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or @@ -72,7 +266,7 @@ public HDInsightOnDemandLinkedService withAnnotations(List annotations) * @return the clusterSize value. */ public Object clusterSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterSize(); + return this.clusterSize; } /** @@ -83,10 +277,7 @@ public Object clusterSize() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterSize(Object clusterSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterSize(clusterSize); + this.clusterSize = clusterSize; return this; } @@ -98,7 +289,7 @@ public HDInsightOnDemandLinkedService withClusterSize(Object clusterSize) { * @return the timeToLive value. */ public Object timeToLive() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeToLive(); + return this.timeToLive; } /** @@ -110,10 +301,7 @@ public Object timeToLive() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withTimeToLive(Object timeToLive) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTimeToLive(timeToLive); + this.timeToLive = timeToLive; return this; } @@ -123,7 +311,7 @@ public HDInsightOnDemandLinkedService withTimeToLive(Object timeToLive) { * @return the version value. */ public Object version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); + return this.version; } /** @@ -133,10 +321,7 @@ public Object version() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withVersion(Object version) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withVersion(version); + this.version = version; return this; } @@ -147,7 +332,7 @@ public HDInsightOnDemandLinkedService withVersion(Object version) { * @return the linkedServiceName value. */ public LinkedServiceReference linkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServiceName(); + return this.linkedServiceName; } /** @@ -158,10 +343,7 @@ public LinkedServiceReference linkedServiceName() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLinkedServiceName(linkedServiceName); + this.linkedServiceName = linkedServiceName; return this; } @@ -172,7 +354,7 @@ public HDInsightOnDemandLinkedService withLinkedServiceName(LinkedServiceReferen * @return the hostSubscriptionId value. */ public Object hostSubscriptionId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostSubscriptionId(); + return this.hostSubscriptionId; } /** @@ -183,10 +365,7 @@ public Object hostSubscriptionId() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withHostSubscriptionId(Object hostSubscriptionId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostSubscriptionId(hostSubscriptionId); + this.hostSubscriptionId = hostSubscriptionId; return this; } @@ -197,7 +376,7 @@ public HDInsightOnDemandLinkedService withHostSubscriptionId(Object hostSubscrip * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -208,10 +387,7 @@ public Object servicePrincipalId() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -221,7 +397,7 @@ public HDInsightOnDemandLinkedService withServicePrincipalId(Object servicePrinc * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -231,10 +407,7 @@ public SecretBase servicePrincipalKey() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -245,7 +418,7 @@ public HDInsightOnDemandLinkedService withServicePrincipalKey(SecretBase service * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -256,10 +429,7 @@ public Object tenant() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -270,7 +440,7 @@ public HDInsightOnDemandLinkedService withTenant(Object tenant) { * @return the clusterResourceGroup value. */ public Object clusterResourceGroup() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterResourceGroup(); + return this.clusterResourceGroup; } /** @@ -281,10 +451,7 @@ public Object clusterResourceGroup() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterResourceGroup(Object clusterResourceGroup) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterResourceGroup(clusterResourceGroup); + this.clusterResourceGroup = clusterResourceGroup; return this; } @@ -295,7 +462,7 @@ public HDInsightOnDemandLinkedService withClusterResourceGroup(Object clusterRes * @return the clusterNamePrefix value. */ public Object clusterNamePrefix() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterNamePrefix(); + return this.clusterNamePrefix; } /** @@ -306,10 +473,7 @@ public Object clusterNamePrefix() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterNamePrefix(Object clusterNamePrefix) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterNamePrefix(clusterNamePrefix); + this.clusterNamePrefix = clusterNamePrefix; return this; } @@ -320,7 +484,7 @@ public HDInsightOnDemandLinkedService withClusterNamePrefix(Object clusterNamePr * @return the clusterUsername value. */ public Object clusterUsername() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterUsername(); + return this.clusterUsername; } /** @@ -331,10 +495,7 @@ public Object clusterUsername() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterUsername(Object clusterUsername) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterUsername(clusterUsername); + this.clusterUsername = clusterUsername; return this; } @@ -344,7 +505,7 @@ public HDInsightOnDemandLinkedService withClusterUsername(Object clusterUsername * @return the clusterPassword value. */ public SecretBase clusterPassword() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterPassword(); + return this.clusterPassword; } /** @@ -354,10 +515,7 @@ public SecretBase clusterPassword() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterPassword(SecretBase clusterPassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterPassword(clusterPassword); + this.clusterPassword = clusterPassword; return this; } @@ -368,7 +526,7 @@ public HDInsightOnDemandLinkedService withClusterPassword(SecretBase clusterPass * @return the clusterSshUsername value. */ public Object clusterSshUsername() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterSshUsername(); + return this.clusterSshUsername; } /** @@ -379,10 +537,7 @@ public Object clusterSshUsername() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterSshUsername(Object clusterSshUsername) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterSshUsername(clusterSshUsername); + this.clusterSshUsername = clusterSshUsername; return this; } @@ -392,7 +547,7 @@ public HDInsightOnDemandLinkedService withClusterSshUsername(Object clusterSshUs * @return the clusterSshPassword value. */ public SecretBase clusterSshPassword() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterSshPassword(); + return this.clusterSshPassword; } /** @@ -402,10 +557,7 @@ public SecretBase clusterSshPassword() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterSshPassword(SecretBase clusterSshPassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterSshPassword(clusterSshPassword); + this.clusterSshPassword = clusterSshPassword; return this; } @@ -416,7 +568,7 @@ public HDInsightOnDemandLinkedService withClusterSshPassword(SecretBase clusterS * @return the additionalLinkedServiceNames value. */ public List additionalLinkedServiceNames() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalLinkedServiceNames(); + return this.additionalLinkedServiceNames; } /** @@ -428,10 +580,7 @@ public List additionalLinkedServiceNames() { */ public HDInsightOnDemandLinkedService withAdditionalLinkedServiceNames( List additionalLinkedServiceNames) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAdditionalLinkedServiceNames(additionalLinkedServiceNames); + this.additionalLinkedServiceNames = additionalLinkedServiceNames; return this; } @@ -442,7 +591,7 @@ public HDInsightOnDemandLinkedService withAdditionalLinkedServiceNames( * @return the hcatalogLinkedServiceName value. */ public LinkedServiceReference hcatalogLinkedServiceName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hcatalogLinkedServiceName(); + return this.hcatalogLinkedServiceName; } /** @@ -454,10 +603,7 @@ public LinkedServiceReference hcatalogLinkedServiceName() { */ public HDInsightOnDemandLinkedService withHcatalogLinkedServiceName( LinkedServiceReference hcatalogLinkedServiceName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHcatalogLinkedServiceName(hcatalogLinkedServiceName); + this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; return this; } @@ -467,7 +613,7 @@ public HDInsightOnDemandLinkedService withHcatalogLinkedServiceName( * @return the clusterType value. */ public Object clusterType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clusterType(); + return this.clusterType; } /** @@ -477,10 +623,7 @@ public Object clusterType() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withClusterType(Object clusterType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClusterType(clusterType); + this.clusterType = clusterType; return this; } @@ -491,7 +634,7 @@ public HDInsightOnDemandLinkedService withClusterType(Object clusterType) { * @return the sparkVersion value. */ public Object sparkVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkVersion(); + return this.sparkVersion; } /** @@ -502,10 +645,7 @@ public Object sparkVersion() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withSparkVersion(Object sparkVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSparkVersion(sparkVersion); + this.sparkVersion = sparkVersion; return this; } @@ -516,7 +656,7 @@ public HDInsightOnDemandLinkedService withSparkVersion(Object sparkVersion) { * @return the coreConfiguration value. */ public Object coreConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().coreConfiguration(); + return this.coreConfiguration; } /** @@ -527,10 +667,7 @@ public Object coreConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withCoreConfiguration(Object coreConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCoreConfiguration(coreConfiguration); + this.coreConfiguration = coreConfiguration; return this; } @@ -541,7 +678,7 @@ public HDInsightOnDemandLinkedService withCoreConfiguration(Object coreConfigura * @return the hBaseConfiguration value. */ public Object hBaseConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hBaseConfiguration(); + return this.hBaseConfiguration; } /** @@ -552,10 +689,7 @@ public Object hBaseConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withHBaseConfiguration(Object hBaseConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHBaseConfiguration(hBaseConfiguration); + this.hBaseConfiguration = hBaseConfiguration; return this; } @@ -566,7 +700,7 @@ public HDInsightOnDemandLinkedService withHBaseConfiguration(Object hBaseConfigu * @return the hdfsConfiguration value. */ public Object hdfsConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hdfsConfiguration(); + return this.hdfsConfiguration; } /** @@ -577,10 +711,7 @@ public Object hdfsConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withHdfsConfiguration(Object hdfsConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHdfsConfiguration(hdfsConfiguration); + this.hdfsConfiguration = hdfsConfiguration; return this; } @@ -591,7 +722,7 @@ public HDInsightOnDemandLinkedService withHdfsConfiguration(Object hdfsConfigura * @return the hiveConfiguration value. */ public Object hiveConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hiveConfiguration(); + return this.hiveConfiguration; } /** @@ -602,10 +733,7 @@ public Object hiveConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withHiveConfiguration(Object hiveConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHiveConfiguration(hiveConfiguration); + this.hiveConfiguration = hiveConfiguration; return this; } @@ -616,7 +744,7 @@ public HDInsightOnDemandLinkedService withHiveConfiguration(Object hiveConfigura * @return the mapReduceConfiguration value. */ public Object mapReduceConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mapReduceConfiguration(); + return this.mapReduceConfiguration; } /** @@ -627,10 +755,7 @@ public Object mapReduceConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withMapReduceConfiguration(Object mapReduceConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMapReduceConfiguration(mapReduceConfiguration); + this.mapReduceConfiguration = mapReduceConfiguration; return this; } @@ -641,7 +766,7 @@ public HDInsightOnDemandLinkedService withMapReduceConfiguration(Object mapReduc * @return the oozieConfiguration value. */ public Object oozieConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().oozieConfiguration(); + return this.oozieConfiguration; } /** @@ -652,10 +777,7 @@ public Object oozieConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withOozieConfiguration(Object oozieConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOozieConfiguration(oozieConfiguration); + this.oozieConfiguration = oozieConfiguration; return this; } @@ -666,7 +788,7 @@ public HDInsightOnDemandLinkedService withOozieConfiguration(Object oozieConfigu * @return the stormConfiguration value. */ public Object stormConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().stormConfiguration(); + return this.stormConfiguration; } /** @@ -677,10 +799,7 @@ public Object stormConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withStormConfiguration(Object stormConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withStormConfiguration(stormConfiguration); + this.stormConfiguration = stormConfiguration; return this; } @@ -691,7 +810,7 @@ public HDInsightOnDemandLinkedService withStormConfiguration(Object stormConfigu * @return the yarnConfiguration value. */ public Object yarnConfiguration() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().yarnConfiguration(); + return this.yarnConfiguration; } /** @@ -702,10 +821,7 @@ public Object yarnConfiguration() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withYarnConfiguration(Object yarnConfiguration) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withYarnConfiguration(yarnConfiguration); + this.yarnConfiguration = yarnConfiguration; return this; } @@ -716,7 +832,7 @@ public HDInsightOnDemandLinkedService withYarnConfiguration(Object yarnConfigura * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -727,10 +843,7 @@ public Object encryptedCredential() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -740,7 +853,7 @@ public HDInsightOnDemandLinkedService withEncryptedCredential(Object encryptedCr * @return the headNodeSize value. */ public Object headNodeSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headNodeSize(); + return this.headNodeSize; } /** @@ -750,10 +863,7 @@ public Object headNodeSize() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withHeadNodeSize(Object headNodeSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHeadNodeSize(headNodeSize); + this.headNodeSize = headNodeSize; return this; } @@ -763,7 +873,7 @@ public HDInsightOnDemandLinkedService withHeadNodeSize(Object headNodeSize) { * @return the dataNodeSize value. */ public Object dataNodeSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataNodeSize(); + return this.dataNodeSize; } /** @@ -773,10 +883,7 @@ public Object dataNodeSize() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withDataNodeSize(Object dataNodeSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDataNodeSize(dataNodeSize); + this.dataNodeSize = dataNodeSize; return this; } @@ -786,7 +893,7 @@ public HDInsightOnDemandLinkedService withDataNodeSize(Object dataNodeSize) { * @return the zookeeperNodeSize value. */ public Object zookeeperNodeSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().zookeeperNodeSize(); + return this.zookeeperNodeSize; } /** @@ -796,10 +903,7 @@ public Object zookeeperNodeSize() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withZookeeperNodeSize(Object zookeeperNodeSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withZookeeperNodeSize(zookeeperNodeSize); + this.zookeeperNodeSize = zookeeperNodeSize; return this; } @@ -811,7 +915,7 @@ public HDInsightOnDemandLinkedService withZookeeperNodeSize(Object zookeeperNode * @return the scriptActions value. */ public List scriptActions() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptActions(); + return this.scriptActions; } /** @@ -823,10 +927,7 @@ public List scriptActions() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withScriptActions(List scriptActions) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withScriptActions(scriptActions); + this.scriptActions = scriptActions; return this; } @@ -837,7 +938,7 @@ public HDInsightOnDemandLinkedService withScriptActions(List scrip * @return the virtualNetworkId value. */ public Object virtualNetworkId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().virtualNetworkId(); + return this.virtualNetworkId; } /** @@ -848,10 +949,7 @@ public Object virtualNetworkId() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withVirtualNetworkId(Object virtualNetworkId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withVirtualNetworkId(virtualNetworkId); + this.virtualNetworkId = virtualNetworkId; return this; } @@ -862,7 +960,7 @@ public HDInsightOnDemandLinkedService withVirtualNetworkId(Object virtualNetwork * @return the subnetName value. */ public Object subnetName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().subnetName(); + return this.subnetName; } /** @@ -873,10 +971,7 @@ public Object subnetName() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withSubnetName(Object subnetName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSubnetName(subnetName); + this.subnetName = subnetName; return this; } @@ -886,7 +981,7 @@ public HDInsightOnDemandLinkedService withSubnetName(Object subnetName) { * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -896,10 +991,35 @@ public CredentialReference credential() { * @return the HDInsightOnDemandLinkedService object itself. */ public HDInsightOnDemandLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightOnDemandLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightOnDemandLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightOnDemandLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightOnDemandLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightOnDemandLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -911,13 +1031,70 @@ public HDInsightOnDemandLinkedService withCredential(CredentialReference credent @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (clusterSize() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property clusterSize in model HDInsightOnDemandLinkedService")); + } + if (timeToLive() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property timeToLive in model HDInsightOnDemandLinkedService")); + } + if (version() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property version in model HDInsightOnDemandLinkedService")); + } + if (linkedServiceName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightOnDemandLinkedService")); + "Missing required property linkedServiceName in model HDInsightOnDemandLinkedService")); } else { - innerTypeProperties().validate(); + linkedServiceName().validate(); + } + if (hostSubscriptionId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property hostSubscriptionId in model HDInsightOnDemandLinkedService")); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (tenant() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property tenant in model HDInsightOnDemandLinkedService")); + } + if (clusterResourceGroup() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property clusterResourceGroup in model HDInsightOnDemandLinkedService")); + } + if (clusterPassword() != null) { + clusterPassword().validate(); + } + if (clusterSshPassword() != null) { + clusterSshPassword().validate(); + } + if (additionalLinkedServiceNames() != null) { + additionalLinkedServiceNames().forEach(e -> e.validate()); + } + if (hcatalogLinkedServiceName() != null) { + hcatalogLinkedServiceName().validate(); + } + if (scriptActions() != null) { + scriptActions().forEach(e -> e.validate()); + } + if (credential() != null) { + credential().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java index 3a0bae17d75fe..a918f1150165a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightPigActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightPigActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,66 +18,48 @@ /** HDInsight Pig activity type. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsightPig") +@JsonFlatten @Fluent -public final class HDInsightPigActivity extends ExecutionActivity { +public class HDInsightPigActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightPigActivity.class); /* - * HDInsight Pig activity properties. + * Storage linked service references. */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightPigActivityTypeProperties innerTypeProperties = new HDInsightPigActivityTypeProperties(); + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; - /** - * Get the innerTypeProperties property: HDInsight Pig activity properties. - * - * @return the innerTypeProperties value. + /* + * User specified arguments to HDInsightActivity. Type: array (or + * Expression with resultType array). */ - private HDInsightPigActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.arguments") + private Object arguments; - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Debug info option. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Script path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.scriptPath") + private Object scriptPath; - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Script linked service reference. + */ + @JsonProperty(value = "typeProperties.scriptLinkedService") + private LinkedServiceReference scriptLinkedService; - /** {@inheritDoc} */ - @Override - public HDInsightPigActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Allows user to specify defines for Pig job request. + */ + @JsonProperty(value = "typeProperties.defines") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map defines; /** * Get the storageLinkedServices property: Storage linked service references. @@ -84,7 +67,7 @@ public HDInsightPigActivity withUserProperties(List userProperties * @return the storageLinkedServices value. */ public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); + return this.storageLinkedServices; } /** @@ -94,10 +77,7 @@ public List storageLinkedServices() { * @return the HDInsightPigActivity object itself. */ public HDInsightPigActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); + this.storageLinkedServices = storageLinkedServices; return this; } @@ -108,7 +88,7 @@ public HDInsightPigActivity withStorageLinkedServices(List defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); + return this.defines; } /** @@ -211,10 +179,49 @@ public Map defines() { * @return the HDInsightPigActivity object itself. */ public HDInsightPigActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightPigActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); + this.defines = defines; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightPigActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightPigActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightPigActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightPigActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightPigActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightPigActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -226,13 +233,11 @@ public HDInsightPigActivity withDefines(Map defines) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightPigActivity")); - } else { - innerTypeProperties().validate(); + if (storageLinkedServices() != null) { + storageLinkedServices().forEach(e -> e.validate()); + } + if (scriptLinkedService() != null) { + scriptLinkedService().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java index 02bbd5898e345..c177fc27ce120 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightSparkActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightSparkActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,66 +18,63 @@ /** HDInsight Spark activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsightSpark") +@JsonFlatten @Fluent -public final class HDInsightSparkActivity extends ExecutionActivity { +public class HDInsightSparkActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightSparkActivity.class); /* - * HDInsight spark activity properties. + * The root path in 'sparkJobLinkedService' for all the job’s files. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightSparkActivityTypeProperties innerTypeProperties = new HDInsightSparkActivityTypeProperties(); + @JsonProperty(value = "typeProperties.rootPath", required = true) + private Object rootPath; - /** - * Get the innerTypeProperties property: HDInsight spark activity properties. - * - * @return the innerTypeProperties value. + /* + * The relative path to the root folder of the code/package to be executed. + * Type: string (or Expression with resultType string). */ - private HDInsightSparkActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.entryFilePath", required = true) + private Object entryFilePath; - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The user-specified arguments to HDInsightSparkActivity. + */ + @JsonProperty(value = "typeProperties.arguments") + private List arguments; - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Debug info option. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withName(String name) { - super.withName(name); - return this; - } + /* + * The storage linked service for uploading the entry file and + * dependencies, and for receiving logs. + */ + @JsonProperty(value = "typeProperties.sparkJobLinkedService") + private LinkedServiceReference sparkJobLinkedService; - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The application's Java/Spark main class. + */ + @JsonProperty(value = "typeProperties.className") + private String className; - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * The user to impersonate that will execute the job. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.proxyUser") + private Object proxyUser; - /** {@inheritDoc} */ - @Override - public HDInsightSparkActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Spark configuration property. + */ + @JsonProperty(value = "typeProperties.sparkConfig") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map sparkConfig; /** * Get the rootPath property: The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or @@ -85,7 +83,7 @@ public HDInsightSparkActivity withUserProperties(List userProperti * @return the rootPath value. */ public Object rootPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().rootPath(); + return this.rootPath; } /** @@ -96,10 +94,7 @@ public Object rootPath() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withRootPath(Object rootPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withRootPath(rootPath); + this.rootPath = rootPath; return this; } @@ -110,7 +105,7 @@ public HDInsightSparkActivity withRootPath(Object rootPath) { * @return the entryFilePath value. */ public Object entryFilePath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().entryFilePath(); + return this.entryFilePath; } /** @@ -121,10 +116,7 @@ public Object entryFilePath() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withEntryFilePath(Object entryFilePath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withEntryFilePath(entryFilePath); + this.entryFilePath = entryFilePath; return this; } @@ -134,7 +126,7 @@ public HDInsightSparkActivity withEntryFilePath(Object entryFilePath) { * @return the arguments value. */ public List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); + return this.arguments; } /** @@ -144,10 +136,7 @@ public List arguments() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); + this.arguments = arguments; return this; } @@ -157,7 +146,7 @@ public HDInsightSparkActivity withArguments(List arguments) { * @return the getDebugInfo value. */ public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); + return this.getDebugInfo; } /** @@ -167,10 +156,7 @@ public HDInsightActivityDebugInfoOption getDebugInfo() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); + this.getDebugInfo = getDebugInfo; return this; } @@ -181,7 +167,7 @@ public HDInsightSparkActivity withGetDebugInfo(HDInsightActivityDebugInfoOption * @return the sparkJobLinkedService value. */ public LinkedServiceReference sparkJobLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkJobLinkedService(); + return this.sparkJobLinkedService; } /** @@ -192,10 +178,7 @@ public LinkedServiceReference sparkJobLinkedService() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withSparkJobLinkedService(LinkedServiceReference sparkJobLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withSparkJobLinkedService(sparkJobLinkedService); + this.sparkJobLinkedService = sparkJobLinkedService; return this; } @@ -205,7 +188,7 @@ public HDInsightSparkActivity withSparkJobLinkedService(LinkedServiceReference s * @return the className value. */ public String className() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().className(); + return this.className; } /** @@ -215,10 +198,7 @@ public String className() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withClassName(String className) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withClassName(className); + this.className = className; return this; } @@ -229,7 +209,7 @@ public HDInsightSparkActivity withClassName(String className) { * @return the proxyUser value. */ public Object proxyUser() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().proxyUser(); + return this.proxyUser; } /** @@ -240,10 +220,7 @@ public Object proxyUser() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withProxyUser(Object proxyUser) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withProxyUser(proxyUser); + this.proxyUser = proxyUser; return this; } @@ -253,7 +230,7 @@ public HDInsightSparkActivity withProxyUser(Object proxyUser) { * @return the sparkConfig value. */ public Map sparkConfig() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sparkConfig(); + return this.sparkConfig; } /** @@ -263,10 +240,49 @@ public Map sparkConfig() { * @return the HDInsightSparkActivity object itself. */ public HDInsightSparkActivity withSparkConfig(Map sparkConfig) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightSparkActivityTypeProperties(); - } - this.innerTypeProperties().withSparkConfig(sparkConfig); + this.sparkConfig = sparkConfig; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightSparkActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightSparkActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightSparkActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightSparkActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightSparkActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightSparkActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -278,13 +294,19 @@ public HDInsightSparkActivity withSparkConfig(Map sparkConfig) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (rootPath() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property rootPath in model HDInsightSparkActivity")); + } + if (entryFilePath() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightSparkActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property entryFilePath in model HDInsightSparkActivity")); + } + if (sparkJobLinkedService() != null) { + sparkJobLinkedService().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java index d79aa13cbdf71..3e508ae36ed0f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HDInsightStreamingActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HDInsightStreamingActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,67 +18,86 @@ /** HDInsight streaming activity type. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HDInsightStreaming") +@JsonFlatten @Fluent -public final class HDInsightStreamingActivity extends ExecutionActivity { +public class HDInsightStreamingActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(HDInsightStreamingActivity.class); /* - * HDInsight streaming activity properties. + * Storage linked service references. */ - @JsonProperty(value = "typeProperties", required = true) - private HDInsightStreamingActivityTypeProperties innerTypeProperties = - new HDInsightStreamingActivityTypeProperties(); + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; - /** - * Get the innerTypeProperties property: HDInsight streaming activity properties. - * - * @return the innerTypeProperties value. + /* + * User specified arguments to HDInsightActivity. */ - private HDInsightStreamingActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.arguments") + private List arguments; - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * Debug info option. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Mapper executable name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.mapper", required = true) + private Object mapper; - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Reducer executable name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.reducer", required = true) + private Object reducer; - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Input blob path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.input", required = true) + private Object input; - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Output blob path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.output", required = true) + private Object output; - /** {@inheritDoc} */ - @Override - public HDInsightStreamingActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Paths to streaming job files. Can be directories. + */ + @JsonProperty(value = "typeProperties.filePaths", required = true) + private List filePaths; + + /* + * Linked service reference where the files are located. + */ + @JsonProperty(value = "typeProperties.fileLinkedService") + private LinkedServiceReference fileLinkedService; + + /* + * Combiner executable name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.combiner") + private Object combiner; + + /* + * Command line environment values. + */ + @JsonProperty(value = "typeProperties.commandEnvironment") + private List commandEnvironment; + + /* + * Allows user to specify defines for streaming job request. + */ + @JsonProperty(value = "typeProperties.defines") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map defines; /** * Get the storageLinkedServices property: Storage linked service references. @@ -85,7 +105,7 @@ public HDInsightStreamingActivity withUserProperties(List userProp * @return the storageLinkedServices value. */ public List storageLinkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storageLinkedServices(); + return this.storageLinkedServices; } /** @@ -95,10 +115,7 @@ public List storageLinkedServices() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withStorageLinkedServices(List storageLinkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withStorageLinkedServices(storageLinkedServices); + this.storageLinkedServices = storageLinkedServices; return this; } @@ -108,7 +125,7 @@ public HDInsightStreamingActivity withStorageLinkedServices(List arguments() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().arguments(); + return this.arguments; } /** @@ -118,10 +135,7 @@ public List arguments() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withArguments(List arguments) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withArguments(arguments); + this.arguments = arguments; return this; } @@ -131,7 +145,7 @@ public HDInsightStreamingActivity withArguments(List arguments) { * @return the getDebugInfo value. */ public HDInsightActivityDebugInfoOption getDebugInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().getDebugInfo(); + return this.getDebugInfo; } /** @@ -141,10 +155,7 @@ public HDInsightActivityDebugInfoOption getDebugInfo() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withGetDebugInfo(getDebugInfo); + this.getDebugInfo = getDebugInfo; return this; } @@ -154,7 +165,7 @@ public HDInsightStreamingActivity withGetDebugInfo(HDInsightActivityDebugInfoOpt * @return the mapper value. */ public Object mapper() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().mapper(); + return this.mapper; } /** @@ -164,10 +175,7 @@ public Object mapper() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withMapper(Object mapper) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withMapper(mapper); + this.mapper = mapper; return this; } @@ -177,7 +185,7 @@ public HDInsightStreamingActivity withMapper(Object mapper) { * @return the reducer value. */ public Object reducer() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().reducer(); + return this.reducer; } /** @@ -187,10 +195,7 @@ public Object reducer() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withReducer(Object reducer) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withReducer(reducer); + this.reducer = reducer; return this; } @@ -200,7 +205,7 @@ public HDInsightStreamingActivity withReducer(Object reducer) { * @return the input value. */ public Object input() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().input(); + return this.input; } /** @@ -210,10 +215,7 @@ public Object input() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withInput(Object input) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withInput(input); + this.input = input; return this; } @@ -223,7 +225,7 @@ public HDInsightStreamingActivity withInput(Object input) { * @return the output value. */ public Object output() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().output(); + return this.output; } /** @@ -233,10 +235,7 @@ public Object output() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withOutput(Object output) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withOutput(output); + this.output = output; return this; } @@ -246,7 +245,7 @@ public HDInsightStreamingActivity withOutput(Object output) { * @return the filePaths value. */ public List filePaths() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().filePaths(); + return this.filePaths; } /** @@ -256,10 +255,7 @@ public List filePaths() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withFilePaths(List filePaths) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withFilePaths(filePaths); + this.filePaths = filePaths; return this; } @@ -269,7 +265,7 @@ public HDInsightStreamingActivity withFilePaths(List filePaths) { * @return the fileLinkedService value. */ public LinkedServiceReference fileLinkedService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileLinkedService(); + return this.fileLinkedService; } /** @@ -279,10 +275,7 @@ public LinkedServiceReference fileLinkedService() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withFileLinkedService(LinkedServiceReference fileLinkedService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withFileLinkedService(fileLinkedService); + this.fileLinkedService = fileLinkedService; return this; } @@ -292,7 +285,7 @@ public HDInsightStreamingActivity withFileLinkedService(LinkedServiceReference f * @return the combiner value. */ public Object combiner() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().combiner(); + return this.combiner; } /** @@ -302,10 +295,7 @@ public Object combiner() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withCombiner(Object combiner) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withCombiner(combiner); + this.combiner = combiner; return this; } @@ -315,7 +305,7 @@ public HDInsightStreamingActivity withCombiner(Object combiner) { * @return the commandEnvironment value. */ public List commandEnvironment() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().commandEnvironment(); + return this.commandEnvironment; } /** @@ -325,10 +315,7 @@ public List commandEnvironment() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withCommandEnvironment(List commandEnvironment) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withCommandEnvironment(commandEnvironment); + this.commandEnvironment = commandEnvironment; return this; } @@ -338,7 +325,7 @@ public HDInsightStreamingActivity withCommandEnvironment(List commandEnv * @return the defines value. */ public Map defines() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defines(); + return this.defines; } /** @@ -348,10 +335,49 @@ public Map defines() { * @return the HDInsightStreamingActivity object itself. */ public HDInsightStreamingActivity withDefines(Map defines) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HDInsightStreamingActivityTypeProperties(); - } - this.innerTypeProperties().withDefines(defines); + this.defines = defines; + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightStreamingActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightStreamingActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightStreamingActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightStreamingActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightStreamingActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public HDInsightStreamingActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -363,13 +389,41 @@ public HDInsightStreamingActivity withDefines(Map defines) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (storageLinkedServices() != null) { + storageLinkedServices().forEach(e -> e.validate()); + } + if (mapper() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HDInsightStreamingActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property mapper in model HDInsightStreamingActivity")); + } + if (reducer() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property reducer in model HDInsightStreamingActivity")); + } + if (input() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property input in model HDInsightStreamingActivity")); + } + if (output() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property output in model HDInsightStreamingActivity")); + } + if (filePaths() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property filePaths in model HDInsightStreamingActivity")); + } + if (fileLinkedService() != null) { + fileLinkedService().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java index f28e0504d2ae2..e0c5d57647864 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HdfsLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HdfsLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,47 @@ /** Hadoop Distributed File System (HDFS) linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Hdfs") +@JsonFlatten @Fluent -public final class HdfsLinkedService extends LinkedService { +public class HdfsLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HdfsLinkedService.class); /* - * HDFS linked service properties. + * The URL of the HDFS service endpoint, e.g. + * http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private HdfsLinkedServiceTypeProperties innerTypeProperties = new HdfsLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: HDFS linked service properties. - * - * @return the innerTypeProperties value. + /* + * Type of authentication used to connect to the HDFS. Possible values are: + * Anonymous and Windows. Type: string (or Expression with resultType + * string). */ - private HdfsLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * User name for Windows authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public HdfsLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Password for Windows authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; /** * Get the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: @@ -71,7 +66,7 @@ public HdfsLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -82,10 +77,7 @@ public Object url() { * @return the HdfsLinkedService object itself. */ public HdfsLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -96,7 +88,7 @@ public HdfsLinkedService withUrl(Object url) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -107,10 +99,7 @@ public Object authenticationType() { * @return the HdfsLinkedService object itself. */ public HdfsLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -121,7 +110,7 @@ public HdfsLinkedService withAuthenticationType(Object authenticationType) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -132,10 +121,7 @@ public Object encryptedCredential() { * @return the HdfsLinkedService object itself. */ public HdfsLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -146,7 +132,7 @@ public HdfsLinkedService withEncryptedCredential(Object encryptedCredential) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -157,10 +143,7 @@ public Object username() { * @return the HdfsLinkedService object itself. */ public HdfsLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -170,7 +153,7 @@ public HdfsLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -180,10 +163,35 @@ public SecretBase password() { * @return the HdfsLinkedService object itself. */ public HdfsLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HdfsLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; + return this; + } + + /** {@inheritDoc} */ + @Override + public HdfsLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HdfsLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HdfsLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HdfsLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -195,13 +203,13 @@ public HdfsLinkedService withPassword(SecretBase password) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HdfsLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property url in model HdfsLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java index e9b503c524eea..57d2607e6e740 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HiveLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,125 @@ /** Hive Server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Hive") +@JsonFlatten @Fluent -public final class HiveLinkedService extends LinkedService { +public class HiveLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveLinkedService.class); /* - * Hive Server linked service properties. + * IP address or host name of the Hive server, separated by ';' for + * multiple hosts (only when serviceDiscoveryMode is enable). */ - @JsonProperty(value = "typeProperties", required = true) - private HiveLinkedServiceTypeProperties innerTypeProperties = new HiveLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Hive Server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The TCP port that the Hive server uses to listen for client connections. */ - private HiveLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public HiveLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The type of Hive server. + */ + @JsonProperty(value = "typeProperties.serverType") + private HiveServerType serverType; - /** {@inheritDoc} */ - @Override - public HiveLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The transport protocol to use in the Thrift layer. + */ + @JsonProperty(value = "typeProperties.thriftTransportProtocol") + private HiveThriftTransportProtocol thriftTransportProtocol; - /** {@inheritDoc} */ - @Override - public HiveLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The authentication method used to access the Hive server. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private HiveAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public HiveLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * true to indicate using the ZooKeeper service, false not. + */ + @JsonProperty(value = "typeProperties.serviceDiscoveryMode") + private Object serviceDiscoveryMode; + + /* + * The namespace on ZooKeeper under which Hive Server 2 nodes are added. + */ + @JsonProperty(value = "typeProperties.zooKeeperNameSpace") + private Object zooKeeperNameSpace; + + /* + * Specifies whether the driver uses native HiveQL queries,or converts them + * into an equivalent form in HiveQL. + */ + @JsonProperty(value = "typeProperties.useNativeQuery") + private Object useNativeQuery; + + /* + * The user name that you use to access Hive Server. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /* + * The password corresponding to the user name that you provided in the + * Username field + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The partial URL corresponding to the Hive server. + */ + @JsonProperty(value = "typeProperties.httpPath") + private Object httpPath; + + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * Specifies whether to require a CA-issued SSL certificate name to match + * the host name of the server when connecting over SSL. The default value + * is false. + */ + @JsonProperty(value = "typeProperties.allowHostNameCNMismatch") + private Object allowHostnameCNMismatch; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: IP address or host name of the Hive server, separated by ';' for multiple hosts (only when @@ -71,7 +144,7 @@ public HiveLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -82,10 +155,7 @@ public Object host() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -95,7 +165,7 @@ public HiveLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +175,7 @@ public Object port() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -118,7 +185,7 @@ public HiveLinkedService withPort(Object port) { * @return the serverType value. */ public HiveServerType serverType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serverType(); + return this.serverType; } /** @@ -128,10 +195,7 @@ public HiveServerType serverType() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withServerType(HiveServerType serverType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServerType(serverType); + this.serverType = serverType; return this; } @@ -141,7 +205,7 @@ public HiveLinkedService withServerType(HiveServerType serverType) { * @return the thriftTransportProtocol value. */ public HiveThriftTransportProtocol thriftTransportProtocol() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().thriftTransportProtocol(); + return this.thriftTransportProtocol; } /** @@ -151,10 +215,7 @@ public HiveThriftTransportProtocol thriftTransportProtocol() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withThriftTransportProtocol(HiveThriftTransportProtocol thriftTransportProtocol) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withThriftTransportProtocol(thriftTransportProtocol); + this.thriftTransportProtocol = thriftTransportProtocol; return this; } @@ -164,7 +225,7 @@ public HiveLinkedService withThriftTransportProtocol(HiveThriftTransportProtocol * @return the authenticationType value. */ public HiveAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -174,10 +235,7 @@ public HiveAuthenticationType authenticationType() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withAuthenticationType(HiveAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -187,7 +245,7 @@ public HiveLinkedService withAuthenticationType(HiveAuthenticationType authentic * @return the serviceDiscoveryMode value. */ public Object serviceDiscoveryMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceDiscoveryMode(); + return this.serviceDiscoveryMode; } /** @@ -197,10 +255,7 @@ public Object serviceDiscoveryMode() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withServiceDiscoveryMode(Object serviceDiscoveryMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceDiscoveryMode(serviceDiscoveryMode); + this.serviceDiscoveryMode = serviceDiscoveryMode; return this; } @@ -210,7 +265,7 @@ public HiveLinkedService withServiceDiscoveryMode(Object serviceDiscoveryMode) { * @return the zooKeeperNameSpace value. */ public Object zooKeeperNameSpace() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().zooKeeperNameSpace(); + return this.zooKeeperNameSpace; } /** @@ -220,10 +275,7 @@ public Object zooKeeperNameSpace() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withZooKeeperNameSpace(Object zooKeeperNameSpace) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withZooKeeperNameSpace(zooKeeperNameSpace); + this.zooKeeperNameSpace = zooKeeperNameSpace; return this; } @@ -234,7 +286,7 @@ public HiveLinkedService withZooKeeperNameSpace(Object zooKeeperNameSpace) { * @return the useNativeQuery value. */ public Object useNativeQuery() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useNativeQuery(); + return this.useNativeQuery; } /** @@ -245,10 +297,7 @@ public Object useNativeQuery() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withUseNativeQuery(Object useNativeQuery) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseNativeQuery(useNativeQuery); + this.useNativeQuery = useNativeQuery; return this; } @@ -258,7 +307,7 @@ public HiveLinkedService withUseNativeQuery(Object useNativeQuery) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -268,10 +317,7 @@ public Object username() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -281,7 +327,7 @@ public HiveLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -291,10 +337,7 @@ public SecretBase password() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -304,7 +347,7 @@ public HiveLinkedService withPassword(SecretBase password) { * @return the httpPath value. */ public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); + return this.httpPath; } /** @@ -314,10 +357,7 @@ public Object httpPath() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); + this.httpPath = httpPath; return this; } @@ -328,7 +368,7 @@ public HiveLinkedService withHttpPath(Object httpPath) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -339,10 +379,7 @@ public Object enableSsl() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -354,7 +391,7 @@ public HiveLinkedService withEnableSsl(Object enableSsl) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -366,10 +403,7 @@ public Object trustedCertPath() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -380,7 +414,7 @@ public HiveLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -391,10 +425,7 @@ public Object useSystemTrustStore() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -405,7 +436,7 @@ public HiveLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { * @return the allowHostnameCNMismatch value. */ public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); + return this.allowHostnameCNMismatch; } /** @@ -416,10 +447,7 @@ public Object allowHostnameCNMismatch() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); + this.allowHostnameCNMismatch = allowHostnameCNMismatch; return this; } @@ -430,7 +458,7 @@ public HiveLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMisma * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -441,10 +469,7 @@ public Object allowSelfSignedServerCert() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -455,7 +480,7 @@ public HiveLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedSer * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -466,10 +491,35 @@ public Object encryptedCredential() { * @return the HiveLinkedService object itself. */ public HiveLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -481,13 +531,19 @@ public HiveLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property host in model HiveLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model HiveLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model HiveLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java index 71e3c0dd8e8b0..2faf57556afe8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HiveObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HiveDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Hive Server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HiveObject") +@JsonFlatten @Fluent -public final class HiveObjectDataset extends Dataset { +public class HiveObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(HiveObjectDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private HiveDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Hive. Type: string (or Expression with resultType + * string). */ - private HiveDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public HiveObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Hive. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public HiveObjectDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the HiveObjectDataset object itself. */ public HiveObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public HiveObjectDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the HiveObjectDataset object itself. */ public HiveObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Hive. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Hive. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Hive. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the HiveObjectDataset object itself. */ - public HiveObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HiveDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public HiveObjectDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public HiveObjectDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public HiveObjectDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java index 5939362a2f9fa..ab5f70b781144 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HttpDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,53 @@ /** A file in an HTTP web server. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HttpFile") +@JsonFlatten @Fluent -public final class HttpDataset extends Dataset { +public class HttpDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(HttpDataset.class); /* - * Properties specific to this dataset type. + * The relative URL based on the URL in the HttpLinkedService refers to an + * HTTP file Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private HttpDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.relativeUrl") + private Object relativeUrl; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The HTTP method for the HTTP request. Type: string (or Expression with + * resultType string). */ - private HttpDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.requestMethod") + private Object requestMethod; - /** {@inheritDoc} */ - @Override - public HttpDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public HttpDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * The body for the HTTP request. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.requestBody") + private Object requestBody; - /** {@inheritDoc} */ - @Override - public HttpDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The headers for the HTTP Request. e.g. + * request-header-name-1:request-header-value-1 + * ... + * request-header-name-n:request-header-value-n Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.additionalHeaders") + private Object additionalHeaders; - /** {@inheritDoc} */ - @Override - public HttpDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The format of files. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; - /** {@inheritDoc} */ - @Override - public HttpDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used on files. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the relativeUrl property: The relative URL based on the URL in the HttpLinkedService refers to an HTTP file @@ -92,7 +72,7 @@ public HttpDataset withFolder(DatasetFolder folder) { * @return the relativeUrl value. */ public Object relativeUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().relativeUrl(); + return this.relativeUrl; } /** @@ -103,10 +83,7 @@ public Object relativeUrl() { * @return the HttpDataset object itself. */ public HttpDataset withRelativeUrl(Object relativeUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withRelativeUrl(relativeUrl); + this.relativeUrl = relativeUrl; return this; } @@ -117,7 +94,7 @@ public HttpDataset withRelativeUrl(Object relativeUrl) { * @return the requestMethod value. */ public Object requestMethod() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestMethod(); + return this.requestMethod; } /** @@ -128,10 +105,7 @@ public Object requestMethod() { * @return the HttpDataset object itself. */ public HttpDataset withRequestMethod(Object requestMethod) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestMethod(requestMethod); + this.requestMethod = requestMethod; return this; } @@ -141,7 +115,7 @@ public HttpDataset withRequestMethod(Object requestMethod) { * @return the requestBody value. */ public Object requestBody() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestBody(); + return this.requestBody; } /** @@ -151,10 +125,7 @@ public Object requestBody() { * @return the HttpDataset object itself. */ public HttpDataset withRequestBody(Object requestBody) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestBody(requestBody); + this.requestBody = requestBody; return this; } @@ -166,7 +137,7 @@ public HttpDataset withRequestBody(Object requestBody) { * @return the additionalHeaders value. */ public Object additionalHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalHeaders(); + return this.additionalHeaders; } /** @@ -178,10 +149,7 @@ public Object additionalHeaders() { * @return the HttpDataset object itself. */ public HttpDataset withAdditionalHeaders(Object additionalHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withAdditionalHeaders(additionalHeaders); + this.additionalHeaders = additionalHeaders; return this; } @@ -191,7 +159,7 @@ public HttpDataset withAdditionalHeaders(Object additionalHeaders) { * @return the format value. */ public DatasetStorageFormat format() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format(); + return this.format; } /** @@ -201,10 +169,7 @@ public DatasetStorageFormat format() { * @return the HttpDataset object itself. */ public HttpDataset withFormat(DatasetStorageFormat format) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withFormat(format); + this.format = format; return this; } @@ -214,7 +179,7 @@ public HttpDataset withFormat(DatasetStorageFormat format) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -224,10 +189,56 @@ public DatasetCompression compression() { * @return the HttpDataset object itself. */ public HttpDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -239,8 +250,11 @@ public HttpDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (format() != null) { + format().validate(); + } + if (compression() != null) { + compression().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java index 9962cf643da0b..404a75f5bd6f7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HttpLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HttpLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,78 @@ /** Linked service for an HTTP source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HttpServer") +@JsonFlatten @Fluent -public final class HttpLinkedService extends LinkedService { +public class HttpLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HttpLinkedService.class); /* - * Properties specific to this linked service type. + * The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private HttpLinkedServiceTypeProperties innerTypeProperties = new HttpLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. + /* + * The authentication type to be used to connect to the HTTP server. */ - private HttpLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private HttpAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public HttpLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * User name for Basic, Digest, or Windows authentication. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public HttpLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Password for Basic, Digest, Windows, or ClientCertificate with + * EmbeddedCertData authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public HttpLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The additional HTTP headers in the request to RESTful API used for + * authorization. Type: object (or Expression with resultType object). + */ + @JsonProperty(value = "typeProperties.authHeaders") + private Object authHeaders; - /** {@inheritDoc} */ - @Override - public HttpLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Base64 encoded certificate data for ClientCertificate authentication. + * For on-premises copy with ClientCertificate authentication, either + * CertThumbprint or EmbeddedCertData/Password should be specified. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.embeddedCertData") + private Object embeddedCertData; + + /* + * Thumbprint of certificate for ClientCertificate authentication. Only + * valid for on-premises copy. For on-premises copy with ClientCertificate + * authentication, either CertThumbprint or EmbeddedCertData/Password + * should be specified. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.certThumbprint") + private Object certThumbprint; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * If true, validate the HTTPS server SSL certificate. Default value is + * true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.enableServerCertificateValidation") + private Object enableServerCertificateValidation; /** * Get the url property: The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or @@ -71,7 +97,7 @@ public HttpLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -82,10 +108,7 @@ public Object url() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -95,7 +118,7 @@ public HttpLinkedService withUrl(Object url) { * @return the authenticationType value. */ public HttpAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -105,10 +128,7 @@ public HttpAuthenticationType authenticationType() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withAuthenticationType(HttpAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -119,7 +139,7 @@ public HttpLinkedService withAuthenticationType(HttpAuthenticationType authentic * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -130,10 +150,7 @@ public Object username() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -144,7 +161,7 @@ public HttpLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -155,10 +172,7 @@ public SecretBase password() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -169,7 +183,7 @@ public HttpLinkedService withPassword(SecretBase password) { * @return the authHeaders value. */ public Object authHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authHeaders(); + return this.authHeaders; } /** @@ -180,10 +194,7 @@ public Object authHeaders() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withAuthHeaders(Object authHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthHeaders(authHeaders); + this.authHeaders = authHeaders; return this; } @@ -195,7 +206,7 @@ public HttpLinkedService withAuthHeaders(Object authHeaders) { * @return the embeddedCertData value. */ public Object embeddedCertData() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().embeddedCertData(); + return this.embeddedCertData; } /** @@ -207,10 +218,7 @@ public Object embeddedCertData() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withEmbeddedCertData(Object embeddedCertData) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEmbeddedCertData(embeddedCertData); + this.embeddedCertData = embeddedCertData; return this; } @@ -222,7 +230,7 @@ public HttpLinkedService withEmbeddedCertData(Object embeddedCertData) { * @return the certThumbprint value. */ public Object certThumbprint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().certThumbprint(); + return this.certThumbprint; } /** @@ -234,10 +242,7 @@ public Object certThumbprint() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withCertThumbprint(Object certThumbprint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCertThumbprint(certThumbprint); + this.certThumbprint = certThumbprint; return this; } @@ -248,7 +253,7 @@ public HttpLinkedService withCertThumbprint(Object certThumbprint) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -259,10 +264,7 @@ public Object encryptedCredential() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -273,9 +275,7 @@ public HttpLinkedService withEncryptedCredential(Object encryptedCredential) { * @return the enableServerCertificateValidation value. */ public Object enableServerCertificateValidation() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().enableServerCertificateValidation(); + return this.enableServerCertificateValidation; } /** @@ -286,10 +286,35 @@ public Object enableServerCertificateValidation() { * @return the HttpLinkedService object itself. */ public HttpLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HttpLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableServerCertificateValidation(enableServerCertificateValidation); + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HttpLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -301,13 +326,13 @@ public HttpLinkedService withEnableServerCertificateValidation(Object enableServ @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HttpLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property url in model HttpLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java index 5b003d3aabb22..985ae0846b2fc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.HubspotLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,66 @@ /** Hubspot Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Hubspot") +@JsonFlatten @Fluent -public final class HubspotLinkedService extends LinkedService { +public class HubspotLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(HubspotLinkedService.class); /* - * Hubspot Service linked service properties. + * The client ID associated with your Hubspot application. */ - @JsonProperty(value = "typeProperties", required = true) - private HubspotLinkedServiceTypeProperties innerTypeProperties = new HubspotLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; - /** - * Get the innerTypeProperties property: Hubspot Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The client secret associated with your Hubspot application. */ - private HubspotLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The access token obtained when initially authenticating your OAuth + * integration. + */ + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The refresh token obtained when initially authenticating your OAuth + * integration. + */ + @JsonProperty(value = "typeProperties.refreshToken") + private SecretBase refreshToken; - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public HubspotLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the clientId property: The client ID associated with your Hubspot application. @@ -70,7 +84,7 @@ public HubspotLinkedService withAnnotations(List annotations) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -80,10 +94,7 @@ public Object clientId() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -93,7 +104,7 @@ public HubspotLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -103,10 +114,7 @@ public SecretBase clientSecret() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -116,7 +124,7 @@ public HubspotLinkedService withClientSecret(SecretBase clientSecret) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -126,10 +134,7 @@ public SecretBase accessToken() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -139,7 +144,7 @@ public HubspotLinkedService withAccessToken(SecretBase accessToken) { * @return the refreshToken value. */ public SecretBase refreshToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().refreshToken(); + return this.refreshToken; } /** @@ -149,10 +154,7 @@ public SecretBase refreshToken() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withRefreshToken(SecretBase refreshToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRefreshToken(refreshToken); + this.refreshToken = refreshToken; return this; } @@ -163,7 +165,7 @@ public HubspotLinkedService withRefreshToken(SecretBase refreshToken) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -174,10 +176,7 @@ public Object useEncryptedEndpoints() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -188,7 +187,7 @@ public HubspotLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoin * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -199,10 +198,7 @@ public Object useHostVerification() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -213,7 +209,7 @@ public HubspotLinkedService withUseHostVerification(Object useHostVerification) * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -224,10 +220,7 @@ public Object usePeerVerification() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -238,7 +231,7 @@ public HubspotLinkedService withUsePeerVerification(Object usePeerVerification) * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -249,10 +242,35 @@ public Object encryptedCredential() { * @return the HubspotLinkedService object itself. */ public HubspotLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new HubspotLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public HubspotLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public HubspotLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public HubspotLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public HubspotLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -264,13 +282,19 @@ public HubspotLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (clientId() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model HubspotLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property clientId in model HubspotLinkedService")); + } + if (clientSecret() != null) { + clientSecret().validate(); + } + if (accessToken() != null) { + accessToken().validate(); + } + if (refreshToken() != null) { + refreshToken().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java index cb01eb9ce1d30..e4d86042b4175 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/HubspotObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Hubspot Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("HubspotObject") +@JsonFlatten @Fluent -public final class HubspotObjectDataset extends Dataset { +public class HubspotObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(HubspotObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the HubspotObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public HubspotObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public HubspotObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the HubspotObjectDataset object itself. - */ - public HubspotObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public HubspotObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java index f0886d92eaad5..c9209f8bc7204 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/IfConditionActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.IfConditionActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,52 +19,34 @@ */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("IfCondition") +@JsonFlatten @Fluent -public final class IfConditionActivity extends ControlActivity { +public class IfConditionActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(IfConditionActivity.class); /* - * IfCondition activity properties. + * An expression that would evaluate to Boolean. This is used to determine + * the block of activities (ifTrueActivities or ifFalseActivities) that + * will be executed. */ - @JsonProperty(value = "typeProperties", required = true) - private IfConditionActivityTypeProperties innerTypeProperties = new IfConditionActivityTypeProperties(); + @JsonProperty(value = "typeProperties.expression", required = true) + private Expression expression; - /** - * Get the innerTypeProperties property: IfCondition activity properties. - * - * @return the innerTypeProperties value. + /* + * List of activities to execute if expression is evaluated to true. This + * is an optional property and if not provided, the activity will exit + * without any action. */ - private IfConditionActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.ifTrueActivities") + private List ifTrueActivities; - /** {@inheritDoc} */ - @Override - public IfConditionActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public IfConditionActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * List of activities to execute if expression is evaluated to false. This + * is an optional property and if not provided, the activity will exit + * without any action. + */ + @JsonProperty(value = "typeProperties.ifFalseActivities") + private List ifFalseActivities; /** * Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of @@ -73,7 +55,7 @@ public IfConditionActivity withUserProperties(List userProperties) * @return the expression value. */ public Expression expression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().expression(); + return this.expression; } /** @@ -84,10 +66,7 @@ public Expression expression() { * @return the IfConditionActivity object itself. */ public IfConditionActivity withExpression(Expression expression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new IfConditionActivityTypeProperties(); - } - this.innerTypeProperties().withExpression(expression); + this.expression = expression; return this; } @@ -98,7 +77,7 @@ public IfConditionActivity withExpression(Expression expression) { * @return the ifTrueActivities value. */ public List ifTrueActivities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ifTrueActivities(); + return this.ifTrueActivities; } /** @@ -109,10 +88,7 @@ public List ifTrueActivities() { * @return the IfConditionActivity object itself. */ public IfConditionActivity withIfTrueActivities(List ifTrueActivities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new IfConditionActivityTypeProperties(); - } - this.innerTypeProperties().withIfTrueActivities(ifTrueActivities); + this.ifTrueActivities = ifTrueActivities; return this; } @@ -123,7 +99,7 @@ public IfConditionActivity withIfTrueActivities(List ifTrueActivities) * @return the ifFalseActivities value. */ public List ifFalseActivities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ifFalseActivities(); + return this.ifFalseActivities; } /** @@ -134,10 +110,35 @@ public List ifFalseActivities() { * @return the IfConditionActivity object itself. */ public IfConditionActivity withIfFalseActivities(List ifFalseActivities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new IfConditionActivityTypeProperties(); - } - this.innerTypeProperties().withIfFalseActivities(ifFalseActivities); + this.ifFalseActivities = ifFalseActivities; + return this; + } + + /** {@inheritDoc} */ + @Override + public IfConditionActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public IfConditionActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public IfConditionActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public IfConditionActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -149,13 +150,18 @@ public IfConditionActivity withIfFalseActivities(List ifFalseActivitie @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (expression() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model IfConditionActivity")); + new IllegalArgumentException("Missing required property expression in model IfConditionActivity")); } else { - innerTypeProperties().validate(); + expression().validate(); + } + if (ifTrueActivities() != null) { + ifTrueActivities().forEach(e -> e.validate()); + } + if (ifFalseActivities() != null) { + ifFalseActivities().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java index 9cdd6aac43e70..0cad3cc27cd45 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,89 @@ /** Impala server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Impala") +@JsonFlatten @Fluent -public final class ImpalaLinkedService extends LinkedService { +public class ImpalaLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ImpalaLinkedService.class); /* - * Impala server linked service properties. + * The IP address or host name of the Impala server. (i.e. 192.168.222.160) */ - @JsonProperty(value = "typeProperties", required = true) - private ImpalaLinkedServiceTypeProperties innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Impala server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The TCP port that the Impala server uses to listen for client + * connections. The default value is 21050. */ - private ImpalaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The authentication type to use. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private ImpalaAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The user name used to access the Impala server. The default value is + * anonymous when using SASLUsername. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The password corresponding to the user name when using + * UsernameAndPassword. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public ImpalaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * Specifies whether to require a CA-issued SSL certificate name to match + * the host name of the server when connecting over SSL. The default value + * is false. + */ + @JsonProperty(value = "typeProperties.allowHostNameCNMismatch") + private Object allowHostnameCNMismatch; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160). @@ -70,7 +107,7 @@ public ImpalaLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +117,7 @@ public Object host() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +128,7 @@ public ImpalaLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +139,7 @@ public Object port() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -118,7 +149,7 @@ public ImpalaLinkedService withPort(Object port) { * @return the authenticationType value. */ public ImpalaAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -128,10 +159,7 @@ public ImpalaAuthenticationType authenticationType() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -142,7 +170,7 @@ public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authe * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -153,10 +181,7 @@ public Object username() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -166,7 +191,7 @@ public ImpalaLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -176,10 +201,7 @@ public SecretBase password() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -190,7 +212,7 @@ public ImpalaLinkedService withPassword(SecretBase password) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -201,10 +223,7 @@ public Object enableSsl() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -216,7 +235,7 @@ public ImpalaLinkedService withEnableSsl(Object enableSsl) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -228,10 +247,7 @@ public Object trustedCertPath() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -242,7 +258,7 @@ public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -253,10 +269,7 @@ public Object useSystemTrustStore() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -267,7 +280,7 @@ public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { * @return the allowHostnameCNMismatch value. */ public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); + return this.allowHostnameCNMismatch; } /** @@ -278,10 +291,7 @@ public Object allowHostnameCNMismatch() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); + this.allowHostnameCNMismatch = allowHostnameCNMismatch; return this; } @@ -292,7 +302,7 @@ public ImpalaLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMis * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -303,10 +313,7 @@ public Object allowSelfSignedServerCert() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -317,7 +324,7 @@ public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedS * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -328,10 +335,35 @@ public Object encryptedCredential() { * @return the ImpalaLinkedService object itself. */ public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -343,13 +375,19 @@ public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property host in model ImpalaLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model ImpalaLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model ImpalaLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java index 0b2ffc2142a83..2226431f62b2a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ImpalaDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Impala server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ImpalaObject") +@JsonFlatten @Fluent -public final class ImpalaObjectDataset extends Dataset { +public class ImpalaObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ImpalaObjectDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private ImpalaDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Impala. Type: string (or Expression with + * resultType string). */ - private ImpalaDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public ImpalaObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Impala. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public ImpalaObjectDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the ImpalaObjectDataset object itself. */ public ImpalaObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public ImpalaObjectDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the ImpalaObjectDataset object itself. */ public ImpalaObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Impala. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Impala. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Impala. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the ImpalaObjectDataset object itself. */ - public ImpalaObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ImpalaDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public ImpalaObjectDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public ImpalaObjectDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public ImpalaObjectDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java index aaae7a10a8819..0b4d4b665eb36 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.InformixLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,54 @@ /** Informix linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Informix") +@JsonFlatten @Fluent -public final class InformixLinkedService extends LinkedService { +public class InformixLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(InformixLinkedService.class); /* - * Informix linked service properties. + * The non-access credential portion of the connection string as well as an + * optional encrypted credential. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private InformixLinkedServiceTypeProperties innerTypeProperties = new InformixLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Informix linked service properties. - * - * @return the innerTypeProperties value. + /* + * Type of authentication used to connect to the Informix as ODBC data + * store. Possible values are: Anonymous and Basic. Type: string (or + * Expression with resultType string). */ - private InformixLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; - /** {@inheritDoc} */ - @Override - public InformixLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The access credential portion of the connection string specified in + * driver-specific property-value format. + */ + @JsonProperty(value = "typeProperties.credential") + private SecretBase credential; - /** {@inheritDoc} */ - @Override - public InformixLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * User name for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public InformixLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public InformixLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The non-access credential portion of the connection string as well as an @@ -71,7 +73,7 @@ public InformixLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +84,7 @@ public Object connectionString() { * @return the InformixLinkedService object itself. */ public InformixLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +95,7 @@ public InformixLinkedService withConnectionString(Object connectionString) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -107,10 +106,7 @@ public Object authenticationType() { * @return the InformixLinkedService object itself. */ public InformixLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -121,7 +117,7 @@ public InformixLinkedService withAuthenticationType(Object authenticationType) { * @return the credential value. */ public SecretBase credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -132,10 +128,7 @@ public SecretBase credential() { * @return the InformixLinkedService object itself. */ public InformixLinkedService withCredential(SecretBase credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; return this; } @@ -146,7 +139,7 @@ public InformixLinkedService withCredential(SecretBase credential) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -157,10 +150,7 @@ public Object username() { * @return the InformixLinkedService object itself. */ public InformixLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -170,7 +160,7 @@ public InformixLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -180,10 +170,7 @@ public SecretBase password() { * @return the InformixLinkedService object itself. */ public InformixLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -194,7 +181,7 @@ public InformixLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -205,10 +192,35 @@ public Object encryptedCredential() { * @return the InformixLinkedService object itself. */ public InformixLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public InformixLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public InformixLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public InformixLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public InformixLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -220,13 +232,17 @@ public InformixLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model InformixLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model InformixLinkedService")); + } + if (credential() != null) { + credential().validate(); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java index d5147e6de7ef5..9b2f620def512 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/InformixTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.InformixTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Informix table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("InformixTable") +@JsonFlatten @Fluent -public final class InformixTableDataset extends Dataset { +public class InformixTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(InformixTableDataset.class); /* - * Informix table dataset properties. + * The Informix table name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private InformixTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Informix table dataset properties. + * Get the tableName property: The Informix table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The Informix table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the InformixTableDataset object itself. */ - private InformixTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public InformixTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public InformixTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Informix table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the InformixTableDataset object itself. - */ - public InformixTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new InformixTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public InformixTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java index 8f01720265327..57b93a833fe50 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.JiraLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,67 @@ /** Jira Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Jira") +@JsonFlatten @Fluent -public final class JiraLinkedService extends LinkedService { +public class JiraLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(JiraLinkedService.class); /* - * Jira Service linked service properties. + * The IP address or host name of the Jira service. (e.g. jira.example.com) */ - @JsonProperty(value = "typeProperties", required = true) - private JiraLinkedServiceTypeProperties innerTypeProperties = new JiraLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Jira Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The TCP port that the Jira server uses to listen for client connections. + * The default value is 443 if connecting through HTTPS, or 8080 if + * connecting through HTTP. */ - private JiraLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public JiraLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The user name that you use to access Jira Service. + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; - /** {@inheritDoc} */ - @Override - public JiraLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The password corresponding to the user name that you provided in the + * username field. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public JiraLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public JiraLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The IP address or host name of the Jira service. (e.g. jira.example.com). @@ -70,7 +85,7 @@ public JiraLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +95,7 @@ public Object host() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +106,7 @@ public JiraLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +117,7 @@ public Object port() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -118,7 +127,7 @@ public JiraLinkedService withPort(Object port) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -128,10 +137,7 @@ public Object username() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -141,7 +147,7 @@ public JiraLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -151,10 +157,7 @@ public SecretBase password() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -165,7 +168,7 @@ public JiraLinkedService withPassword(SecretBase password) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -176,10 +179,7 @@ public Object useEncryptedEndpoints() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -190,7 +190,7 @@ public JiraLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -201,10 +201,7 @@ public Object useHostVerification() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -215,7 +212,7 @@ public JiraLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -226,10 +223,7 @@ public Object usePeerVerification() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -240,7 +234,7 @@ public JiraLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -251,10 +245,35 @@ public Object encryptedCredential() { * @return the JiraLinkedService object itself. */ public JiraLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JiraLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public JiraLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public JiraLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public JiraLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public JiraLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -266,13 +285,18 @@ public JiraLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model JiraLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model JiraLinkedService")); + } + if (username() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property username in model JiraLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java index 17d0f7775262b..5bea6d5e79c26 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JiraObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Jira Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("JiraObject") +@JsonFlatten @Fluent -public final class JiraObjectDataset extends Dataset { +public class JiraObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(JiraObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the JiraObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public JiraObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public JiraObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the JiraObjectDataset object itself. - */ - public JiraObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public JiraObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java index 4418fb1505eda..ebc0f1e81c4d3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/JsonDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.JsonDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,33 @@ /** Json dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Json") +@JsonFlatten @Fluent -public final class JsonDataset extends Dataset { +public class JsonDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(JsonDataset.class); /* - * Json dataset properties. + * The location of the json data storage. */ - @JsonProperty(value = "typeProperties") - private JsonDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; - /** - * Get the innerTypeProperties property: Json dataset properties. - * - * @return the innerTypeProperties value. + /* + * The code page name of the preferred encoding. If not specified, the + * default value is UTF-8, unless BOM denotes another Unicode encoding. + * Refer to the name column of the table in the following link to set + * supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + * string (or Expression with resultType string). */ - private JsonDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.encodingName") + private Object encodingName; - /** {@inheritDoc} */ - @Override - public JsonDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public JsonDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the json dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the location property: The location of the json data storage. @@ -91,7 +51,7 @@ public JsonDataset withFolder(DatasetFolder folder) { * @return the location value. */ public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); + return this.location; } /** @@ -101,10 +61,7 @@ public DatasetLocation location() { * @return the JsonDataset object itself. */ public JsonDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JsonDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); + this.location = location; return this; } @@ -117,7 +74,7 @@ public JsonDataset withLocation(DatasetLocation location) { * @return the encodingName value. */ public Object encodingName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encodingName(); + return this.encodingName; } /** @@ -130,10 +87,7 @@ public Object encodingName() { * @return the JsonDataset object itself. */ public JsonDataset withEncodingName(Object encodingName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JsonDatasetTypeProperties(); - } - this.innerTypeProperties().withEncodingName(encodingName); + this.encodingName = encodingName; return this; } @@ -143,7 +97,7 @@ public JsonDataset withEncodingName(Object encodingName) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -153,10 +107,56 @@ public DatasetCompression compression() { * @return the JsonDataset object itself. */ public JsonDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new JsonDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public JsonDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +168,11 @@ public JsonDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); + } + if (compression() != null) { + compression().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java index 1728b69a9ee2c..0a741b25485d3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/LookupActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.LookupActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,66 +16,29 @@ /** Lookup activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Lookup") +@JsonFlatten @Fluent -public final class LookupActivity extends ExecutionActivity { +public class LookupActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(LookupActivity.class); /* - * Lookup activity properties. + * Dataset-specific source properties, same as copy activity source. */ - @JsonProperty(value = "typeProperties", required = true) - private LookupActivityTypeProperties innerTypeProperties = new LookupActivityTypeProperties(); + @JsonProperty(value = "typeProperties.source", required = true) + private CopySource source; - /** - * Get the innerTypeProperties property: Lookup activity properties. - * - * @return the innerTypeProperties value. + /* + * Lookup activity dataset reference. */ - private LookupActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public LookupActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; - /** {@inheritDoc} */ - @Override - public LookupActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Whether to return first row or all rows. Default value is true. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.firstRowOnly") + private Object firstRowOnly; /** * Get the source property: Dataset-specific source properties, same as copy activity source. @@ -83,7 +46,7 @@ public LookupActivity withUserProperties(List userProperties) { * @return the source value. */ public CopySource source() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().source(); + return this.source; } /** @@ -93,10 +56,7 @@ public CopySource source() { * @return the LookupActivity object itself. */ public LookupActivity withSource(CopySource source) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LookupActivityTypeProperties(); - } - this.innerTypeProperties().withSource(source); + this.source = source; return this; } @@ -106,7 +66,7 @@ public LookupActivity withSource(CopySource source) { * @return the dataset value. */ public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); + return this.dataset; } /** @@ -116,10 +76,7 @@ public DatasetReference dataset() { * @return the LookupActivity object itself. */ public LookupActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LookupActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); + this.dataset = dataset; return this; } @@ -130,7 +87,7 @@ public LookupActivity withDataset(DatasetReference dataset) { * @return the firstRowOnly value. */ public Object firstRowOnly() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().firstRowOnly(); + return this.firstRowOnly; } /** @@ -141,10 +98,49 @@ public Object firstRowOnly() { * @return the LookupActivity object itself. */ public LookupActivity withFirstRowOnly(Object firstRowOnly) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new LookupActivityTypeProperties(); - } - this.innerTypeProperties().withFirstRowOnly(firstRowOnly); + this.firstRowOnly = firstRowOnly; + return this; + } + + /** {@inheritDoc} */ + @Override + public LookupActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public LookupActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public LookupActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public LookupActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public LookupActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public LookupActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -156,13 +152,19 @@ public LookupActivity withFirstRowOnly(Object firstRowOnly) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (source() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property source in model LookupActivity")); + } else { + source().validate(); + } + if (dataset() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model LookupActivity")); + new IllegalArgumentException("Missing required property dataset in model LookupActivity")); } else { - innerTypeProperties().validate(); + dataset().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java index 57659d5f30879..04c70bd06bc3d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MagentoLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,52 @@ /** Magento server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Magento") +@JsonFlatten @Fluent -public final class MagentoLinkedService extends LinkedService { +public class MagentoLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MagentoLinkedService.class); /* - * Magento server linked service properties. + * The URL of the Magento instance. (i.e. 192.168.222.110/magento3) */ - @JsonProperty(value = "typeProperties", required = true) - private MagentoLinkedServiceTypeProperties innerTypeProperties = new MagentoLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Magento server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The access token from Magento. */ - private MagentoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; - /** {@inheritDoc} */ - @Override - public MagentoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The URL of the Magento instance. (i.e. 192.168.222.110/magento3). @@ -70,7 +70,7 @@ public MagentoLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +80,7 @@ public Object host() { * @return the MagentoLinkedService object itself. */ public MagentoLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -93,7 +90,7 @@ public MagentoLinkedService withHost(Object host) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -103,10 +100,7 @@ public SecretBase accessToken() { * @return the MagentoLinkedService object itself. */ public MagentoLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -117,7 +111,7 @@ public MagentoLinkedService withAccessToken(SecretBase accessToken) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -128,10 +122,7 @@ public Object useEncryptedEndpoints() { * @return the MagentoLinkedService object itself. */ public MagentoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -142,7 +133,7 @@ public MagentoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoin * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -153,10 +144,7 @@ public Object useHostVerification() { * @return the MagentoLinkedService object itself. */ public MagentoLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -167,7 +155,7 @@ public MagentoLinkedService withUseHostVerification(Object useHostVerification) * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -178,10 +166,7 @@ public Object usePeerVerification() { * @return the MagentoLinkedService object itself. */ public MagentoLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -192,7 +177,7 @@ public MagentoLinkedService withUsePeerVerification(Object usePeerVerification) * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -203,10 +188,35 @@ public Object encryptedCredential() { * @return the MagentoLinkedService object itself. */ public MagentoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MagentoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public MagentoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MagentoLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MagentoLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MagentoLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -218,13 +228,13 @@ public MagentoLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MagentoLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model MagentoLinkedService")); + } + if (accessToken() != null) { + accessToken().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java index 22b7197f36bcf..5e2d0ec1cb8bc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MagentoObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Magento server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MagentoObject") +@JsonFlatten @Fluent -public final class MagentoObjectDataset extends Dataset { +public class MagentoObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MagentoObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the MagentoObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MagentoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public MagentoObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MagentoObjectDataset object itself. - */ - public MagentoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public MagentoObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java index 1e00fc8144957..f70287ce6fc6a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntime.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIntegrationRuntimeTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,8 +15,9 @@ /** Managed integration runtime, including managed elastic and managed dedicated integration runtimes. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Managed") +@JsonFlatten @Fluent -public final class ManagedIntegrationRuntime extends IntegrationRuntime { +public class ManagedIntegrationRuntime extends IntegrationRuntime { @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntime.class); /* @@ -26,18 +27,31 @@ public final class ManagedIntegrationRuntime extends IntegrationRuntime { @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) private IntegrationRuntimeState state; - /* - * Managed integration runtime properties. - */ - @JsonProperty(value = "typeProperties", required = true) - private ManagedIntegrationRuntimeTypeProperties innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - /* * Managed Virtual Network reference. */ @JsonProperty(value = "managedVirtualNetwork") private ManagedVirtualNetworkReference managedVirtualNetwork; + /* + * The compute resource for managed integration runtime. + */ + @JsonProperty(value = "typeProperties.computeProperties") + private IntegrationRuntimeComputeProperties computeProperties; + + /* + * SSIS properties for managed integration runtime. + */ + @JsonProperty(value = "typeProperties.ssisProperties") + private IntegrationRuntimeSsisProperties ssisProperties; + + /* + * The name of virtual network to which Azure-SSIS integration runtime will + * join + */ + @JsonProperty(value = "typeProperties.customerVirtualNetwork") + private IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork; + /** * Get the state property: Integration runtime state, only valid for managed dedicated integration runtime. * @@ -47,15 +61,6 @@ public IntegrationRuntimeState state() { return this.state; } - /** - * Get the innerTypeProperties property: Managed integration runtime properties. - * - * @return the innerTypeProperties value. - */ - private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - /** * Get the managedVirtualNetwork property: Managed Virtual Network reference. * @@ -76,20 +81,13 @@ public ManagedIntegrationRuntime withManagedVirtualNetwork(ManagedVirtualNetwork return this; } - /** {@inheritDoc} */ - @Override - public ManagedIntegrationRuntime withDescription(String description) { - super.withDescription(description); - return this; - } - /** * Get the computeProperties property: The compute resource for managed integration runtime. * * @return the computeProperties value. */ public IntegrationRuntimeComputeProperties computeProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().computeProperties(); + return this.computeProperties; } /** @@ -99,10 +97,7 @@ public IntegrationRuntimeComputeProperties computeProperties() { * @return the ManagedIntegrationRuntime object itself. */ public ManagedIntegrationRuntime withComputeProperties(IntegrationRuntimeComputeProperties computeProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withComputeProperties(computeProperties); + this.computeProperties = computeProperties; return this; } @@ -112,7 +107,7 @@ public ManagedIntegrationRuntime withComputeProperties(IntegrationRuntimeCompute * @return the ssisProperties value. */ public IntegrationRuntimeSsisProperties ssisProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().ssisProperties(); + return this.ssisProperties; } /** @@ -122,10 +117,7 @@ public IntegrationRuntimeSsisProperties ssisProperties() { * @return the ManagedIntegrationRuntime object itself. */ public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProperties ssisProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withSsisProperties(ssisProperties); + this.ssisProperties = ssisProperties; return this; } @@ -136,7 +128,7 @@ public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProper * @return the customerVirtualNetwork value. */ public IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().customerVirtualNetwork(); + return this.customerVirtualNetwork; } /** @@ -148,10 +140,14 @@ public IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork() { */ public ManagedIntegrationRuntime withCustomerVirtualNetwork( IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withCustomerVirtualNetwork(customerVirtualNetwork); + this.customerVirtualNetwork = customerVirtualNetwork; + return this; + } + + /** {@inheritDoc} */ + @Override + public ManagedIntegrationRuntime withDescription(String description) { + super.withDescription(description); return this; } @@ -163,16 +159,17 @@ public ManagedIntegrationRuntime withCustomerVirtualNetwork( @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ManagedIntegrationRuntime")); - } else { - innerTypeProperties().validate(); - } if (managedVirtualNetwork() != null) { managedVirtualNetwork().validate(); } + if (computeProperties() != null) { + computeProperties().validate(); + } + if (ssisProperties() != null) { + ssisProperties().validate(); + } + if (customerVirtualNetwork() != null) { + customerVirtualNetwork().validate(); + } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java index fe9b42828bcee..5a308ae4c4ec9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedIntegrationRuntimeStatus.java @@ -4,9 +4,9 @@ package com.azure.resourcemanager.datafactory.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ManagedIntegrationRuntimeStatusTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,25 +17,35 @@ /** Managed integration runtime status. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Managed") -@Fluent -public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { +@JsonFlatten +@Immutable +public class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeStatus.class); /* - * Managed integration runtime status type properties. + * The time at which the integration runtime was created, in ISO8601 + * format. */ - @JsonProperty(value = "typeProperties", required = true) - private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties = - new ManagedIntegrationRuntimeStatusTypeProperties(); + @JsonProperty(value = "typeProperties.createTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createTime; - /** - * Get the innerTypeProperties property: Managed integration runtime status type properties. - * - * @return the innerTypeProperties value. + /* + * The list of nodes for managed integration runtime. */ - private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.nodes", access = JsonProperty.Access.WRITE_ONLY) + private List nodes; + + /* + * The errors that occurred on this integration runtime. + */ + @JsonProperty(value = "typeProperties.otherErrors", access = JsonProperty.Access.WRITE_ONLY) + private List otherErrors; + + /* + * The last operation result that occurred on this integration runtime. + */ + @JsonProperty(value = "typeProperties.lastOperation", access = JsonProperty.Access.WRITE_ONLY) + private ManagedIntegrationRuntimeOperationResult lastOperation; /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. @@ -43,7 +53,7 @@ private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { * @return the createTime value. */ public OffsetDateTime createTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().createTime(); + return this.createTime; } /** @@ -52,7 +62,7 @@ public OffsetDateTime createTime() { * @return the nodes value. */ public List nodes() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nodes(); + return this.nodes; } /** @@ -61,7 +71,7 @@ public List nodes() { * @return the otherErrors value. */ public List otherErrors() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().otherErrors(); + return this.otherErrors; } /** @@ -70,7 +80,7 @@ public List otherErrors() { * @return the lastOperation value. */ public ManagedIntegrationRuntimeOperationResult lastOperation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().lastOperation(); + return this.lastOperation; } /** @@ -81,13 +91,14 @@ public ManagedIntegrationRuntimeOperationResult lastOperation() { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ManagedIntegrationRuntimeStatus")); - } else { - innerTypeProperties().validate(); + if (nodes() != null) { + nodes().forEach(e -> e.validate()); + } + if (otherErrors() != null) { + otherErrors().forEach(e -> e.validate()); + } + if (lastOperation() != null) { + lastOperation().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java index 53155650766c2..a12de1a79a0d1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MappingDataFlow.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MappingDataFlowTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,45 +16,40 @@ /** Mapping data flow. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MappingDataFlow") +@JsonFlatten @Fluent -public final class MappingDataFlow extends DataFlow { +public class MappingDataFlow extends DataFlow { @JsonIgnore private final ClientLogger logger = new ClientLogger(MappingDataFlow.class); /* - * Mapping data flow type properties. + * List of sources in data flow. */ - @JsonProperty(value = "typeProperties") - private MappingDataFlowTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.sources") + private List sources; - /** - * Get the innerTypeProperties property: Mapping data flow type properties. - * - * @return the innerTypeProperties value. + /* + * List of sinks in data flow. */ - private MappingDataFlowTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.sinks") + private List sinks; - /** {@inheritDoc} */ - @Override - public MappingDataFlow withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * List of transformations in data flow. + */ + @JsonProperty(value = "typeProperties.transformations") + private List transformations; - /** {@inheritDoc} */ - @Override - public MappingDataFlow withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * DataFlow script. + */ + @JsonProperty(value = "typeProperties.script") + private String script; - /** {@inheritDoc} */ - @Override - public MappingDataFlow withFolder(DataFlowFolder folder) { - super.withFolder(folder); - return this; - } + /* + * Data flow script lines. + */ + @JsonProperty(value = "typeProperties.scriptLines") + private List scriptLines; /** * Get the sources property: List of sources in data flow. @@ -62,7 +57,7 @@ public MappingDataFlow withFolder(DataFlowFolder folder) { * @return the sources value. */ public List sources() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sources(); + return this.sources; } /** @@ -72,10 +67,7 @@ public List sources() { * @return the MappingDataFlow object itself. */ public MappingDataFlow withSources(List sources) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withSources(sources); + this.sources = sources; return this; } @@ -85,7 +77,7 @@ public MappingDataFlow withSources(List sources) { * @return the sinks value. */ public List sinks() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sinks(); + return this.sinks; } /** @@ -95,10 +87,7 @@ public List sinks() { * @return the MappingDataFlow object itself. */ public MappingDataFlow withSinks(List sinks) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withSinks(sinks); + this.sinks = sinks; return this; } @@ -108,7 +97,7 @@ public MappingDataFlow withSinks(List sinks) { * @return the transformations value. */ public List transformations() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().transformations(); + return this.transformations; } /** @@ -118,10 +107,7 @@ public List transformations() { * @return the MappingDataFlow object itself. */ public MappingDataFlow withTransformations(List transformations) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withTransformations(transformations); + this.transformations = transformations; return this; } @@ -131,7 +117,7 @@ public MappingDataFlow withTransformations(List transformations) * @return the script value. */ public String script() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().script(); + return this.script; } /** @@ -141,10 +127,48 @@ public String script() { * @return the MappingDataFlow object itself. */ public MappingDataFlow withScript(String script) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MappingDataFlowTypeProperties(); - } - this.innerTypeProperties().withScript(script); + this.script = script; + return this; + } + + /** + * Get the scriptLines property: Data flow script lines. + * + * @return the scriptLines value. + */ + public List scriptLines() { + return this.scriptLines; + } + + /** + * Set the scriptLines property: Data flow script lines. + * + * @param scriptLines the scriptLines value to set. + * @return the MappingDataFlow object itself. + */ + public MappingDataFlow withScriptLines(List scriptLines) { + this.scriptLines = scriptLines; + return this; + } + + /** {@inheritDoc} */ + @Override + public MappingDataFlow withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MappingDataFlow withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public MappingDataFlow withFolder(DataFlowFolder folder) { + super.withFolder(folder); return this; } @@ -156,8 +180,14 @@ public MappingDataFlow withScript(String script) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (sources() != null) { + sources().forEach(e -> e.validate()); + } + if (sinks() != null) { + sinks().forEach(e -> e.validate()); + } + if (transformations() != null) { + transformations().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java index 7e4db8d8a7b9d..a74ec7b9b6e37 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MariaDBLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** MariaDB server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MariaDB") +@JsonFlatten @Fluent -public final class MariaDBLinkedService extends LinkedService { +public class MariaDBLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MariaDBLinkedService.class); /* - * MariaDB server linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private MariaDBLinkedServiceTypeProperties innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: MariaDB server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private MariaDBLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MariaDBLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public MariaDBLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the MariaDBLinkedService object itself. */ public MariaDBLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public MariaDBLinkedService withConnectionString(Object connectionString) { * @return the pwd value. */ public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); + return this.pwd; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference pwd() { * @return the MariaDBLinkedService object itself. */ public MariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); + this.pwd = pwd; return this; } @@ -119,7 +92,7 @@ public MariaDBLinkedService withPwd(AzureKeyVaultSecretReference pwd) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the MariaDBLinkedService object itself. */ public MariaDBLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MariaDBLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public MariaDBLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MariaDBLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MariaDBLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MariaDBLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public MariaDBLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MariaDBLinkedService")); - } else { - innerTypeProperties().validate(); + if (pwd() != null) { + pwd().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java index 26334ec33eb68..2f5b5478d299d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MariaDBTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** MariaDB server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MariaDBTable") +@JsonFlatten @Fluent -public final class MariaDBTableDataset extends Dataset { +public class MariaDBTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MariaDBTableDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the MariaDBTableDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MariaDBTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public MariaDBTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MariaDBTableDataset object itself. - */ - public MariaDBTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public MariaDBTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java index e9c70af41adfc..bab159e1703e1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MarketoLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,58 @@ /** Marketo server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Marketo") +@JsonFlatten @Fluent -public final class MarketoLinkedService extends LinkedService { +public class MarketoLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MarketoLinkedService.class); /* - * Marketo server linked service properties. + * The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) */ - @JsonProperty(value = "typeProperties", required = true) - private MarketoLinkedServiceTypeProperties innerTypeProperties = new MarketoLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; - /** - * Get the innerTypeProperties property: Marketo server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The client Id of your Marketo service. */ - private MarketoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The client secret of your Marketo service. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public MarketoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the endpoint property: The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). @@ -70,7 +76,7 @@ public MarketoLinkedService withAnnotations(List annotations) { * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -80,10 +86,7 @@ public Object endpoint() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -93,7 +96,7 @@ public MarketoLinkedService withEndpoint(Object endpoint) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -103,10 +106,7 @@ public Object clientId() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -116,7 +116,7 @@ public MarketoLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -126,10 +126,7 @@ public SecretBase clientSecret() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -140,7 +137,7 @@ public MarketoLinkedService withClientSecret(SecretBase clientSecret) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -151,10 +148,7 @@ public Object useEncryptedEndpoints() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -165,7 +159,7 @@ public MarketoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoin * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -176,10 +170,7 @@ public Object useHostVerification() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -190,7 +181,7 @@ public MarketoLinkedService withUseHostVerification(Object useHostVerification) * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -201,10 +192,7 @@ public Object usePeerVerification() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -215,7 +203,7 @@ public MarketoLinkedService withUsePeerVerification(Object usePeerVerification) * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -226,10 +214,35 @@ public Object encryptedCredential() { * @return the MarketoLinkedService object itself. */ public MarketoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MarketoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public MarketoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MarketoLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MarketoLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MarketoLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -241,13 +254,18 @@ public MarketoLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (endpoint() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model MarketoLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property endpoint in model MarketoLinkedService")); + } + if (clientId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property clientId in model MarketoLinkedService")); + } + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java index ef8a808d84708..d558ddc04e05f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Marketo server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MarketoObject") +@JsonFlatten @Fluent -public final class MarketoObjectDataset extends Dataset { +public class MarketoObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MarketoObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the MarketoObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MarketoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public MarketoObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MarketoObjectDataset object itself. - */ - public MarketoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public MarketoObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java index e6a88ea070e38..f0d0c8f4a2bef 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,54 @@ /** Microsoft Access linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MicrosoftAccess") +@JsonFlatten @Fluent -public final class MicrosoftAccessLinkedService extends LinkedService { +public class MicrosoftAccessLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MicrosoftAccessLinkedService.class); /* - * Microsoft Access linked service properties. + * The non-access credential portion of the connection string as well as an + * optional encrypted credential. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private MicrosoftAccessLinkedServiceTypeProperties innerTypeProperties = - new MicrosoftAccessLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Microsoft Access linked service properties. - * - * @return the innerTypeProperties value. + /* + * Type of authentication used to connect to the Microsoft Access as ODBC + * data store. Possible values are: Anonymous and Basic. Type: string (or + * Expression with resultType string). */ - private MicrosoftAccessLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The access credential portion of the connection string specified in + * driver-specific property-value format. + */ + @JsonProperty(value = "typeProperties.credential") + private SecretBase credential; - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * User name for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public MicrosoftAccessLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The non-access credential portion of the connection string as well as an @@ -72,7 +73,7 @@ public MicrosoftAccessLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -83,10 +84,7 @@ public Object connectionString() { * @return the MicrosoftAccessLinkedService object itself. */ public MicrosoftAccessLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -97,7 +95,7 @@ public MicrosoftAccessLinkedService withConnectionString(Object connectionString * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -108,10 +106,7 @@ public Object authenticationType() { * @return the MicrosoftAccessLinkedService object itself. */ public MicrosoftAccessLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -122,7 +117,7 @@ public MicrosoftAccessLinkedService withAuthenticationType(Object authentication * @return the credential value. */ public SecretBase credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -133,10 +128,7 @@ public SecretBase credential() { * @return the MicrosoftAccessLinkedService object itself. */ public MicrosoftAccessLinkedService withCredential(SecretBase credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; return this; } @@ -147,7 +139,7 @@ public MicrosoftAccessLinkedService withCredential(SecretBase credential) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -158,10 +150,7 @@ public Object username() { * @return the MicrosoftAccessLinkedService object itself. */ public MicrosoftAccessLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -171,7 +160,7 @@ public MicrosoftAccessLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -181,10 +170,7 @@ public SecretBase password() { * @return the MicrosoftAccessLinkedService object itself. */ public MicrosoftAccessLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -195,7 +181,7 @@ public MicrosoftAccessLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -206,10 +192,35 @@ public Object encryptedCredential() { * @return the MicrosoftAccessLinkedService object itself. */ public MicrosoftAccessLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public MicrosoftAccessLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MicrosoftAccessLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MicrosoftAccessLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MicrosoftAccessLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -221,13 +232,17 @@ public MicrosoftAccessLinkedService withEncryptedCredential(Object encryptedCred @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MicrosoftAccessLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model MicrosoftAccessLinkedService")); + } + if (credential() != null) { + credential().validate(); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java index d57f9e6a843ee..65a97e1555277 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MicrosoftAccessTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MicrosoftAccessTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Microsoft Access table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MicrosoftAccessTable") +@JsonFlatten @Fluent -public final class MicrosoftAccessTableDataset extends Dataset { +public class MicrosoftAccessTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MicrosoftAccessTableDataset.class); /* - * Microsoft Access table dataset properties. + * The Microsoft Access table name. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private MicrosoftAccessTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Microsoft Access table dataset properties. + * Get the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the MicrosoftAccessTableDataset object itself. */ - private MicrosoftAccessTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MicrosoftAccessTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public MicrosoftAccessTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Microsoft Access table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MicrosoftAccessTableDataset object itself. - */ - public MicrosoftAccessTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MicrosoftAccessTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public MicrosoftAccessTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java index 6a433e6a2a45c..b30b0b48f8454 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasCollectionDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasCollectionDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,24 +17,38 @@ /** The MongoDB Atlas database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MongoDbAtlasCollection") +@JsonFlatten @Fluent -public final class MongoDbAtlasCollectionDataset extends Dataset { +public class MongoDbAtlasCollectionDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbAtlasCollectionDataset.class); /* - * MongoDB Atlas database dataset properties. + * The collection name of the MongoDB Atlas database. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbAtlasCollectionDatasetTypeProperties innerTypeProperties = - new MongoDbAtlasCollectionDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.collection", required = true) + private Object collection; /** - * Get the innerTypeProperties property: MongoDB Atlas database dataset properties. + * Get the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with + * resultType string). + * + * @return the collection value. + */ + public Object collection() { + return this.collection; + } + + /** + * Set the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @param collection the collection value to set. + * @return the MongoDbAtlasCollectionDataset object itself. */ - private MongoDbAtlasCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MongoDbAtlasCollectionDataset withCollection(Object collection) { + this.collection = collection; + return this; } /** {@inheritDoc} */ @@ -86,31 +100,6 @@ public MongoDbAtlasCollectionDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collection(); - } - - /** - * Set the collection property: The collection name of the MongoDB Atlas database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbAtlasCollectionDataset object itself. - */ - public MongoDbAtlasCollectionDataset withCollection(Object collection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbAtlasCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollection(collection); - return this; - } - /** * Validates the instance. * @@ -119,13 +108,11 @@ public MongoDbAtlasCollectionDataset withCollection(Object collection) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (collection() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbAtlasCollectionDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property collection in model MongoDbAtlasCollectionDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java index 07ae2d0c29809..7e97066d1ceb0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbAtlasLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbAtlasLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,25 @@ /** Linked service for MongoDB Atlas data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MongoDbAtlas") +@JsonFlatten @Fluent -public final class MongoDbAtlasLinkedService extends LinkedService { +public class MongoDbAtlasLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbAtlasLinkedService.class); /* - * MongoDB Atlas linked service properties. + * The MongoDB Atlas connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbAtlasLinkedServiceTypeProperties innerTypeProperties = new MongoDbAtlasLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: MongoDB Atlas linked service properties. - * - * @return the innerTypeProperties value. + /* + * The name of the MongoDB Atlas database that you want to access. Type: + * string (or Expression with resultType string). */ - private MongoDbAtlasLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbAtlasLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; /** * Get the connectionString property: The MongoDB Atlas connection string. Type: string, SecureString or @@ -71,7 +44,7 @@ public MongoDbAtlasLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +55,7 @@ public Object connectionString() { * @return the MongoDbAtlasLinkedService object itself. */ public MongoDbAtlasLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbAtlasLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +66,7 @@ public MongoDbAtlasLinkedService withConnectionString(Object connectionString) { * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -107,10 +77,35 @@ public Object database() { * @return the MongoDbAtlasLinkedService object itself. */ public MongoDbAtlasLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbAtlasLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbAtlasLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbAtlasLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbAtlasLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbAtlasLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -122,13 +117,17 @@ public MongoDbAtlasLinkedService withDatabase(Object database) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property connectionString in model MongoDbAtlasLinkedService")); + } + if (database() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbAtlasLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property database in model MongoDbAtlasLinkedService")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java index 95a2ee609ec5b..9a494573456e9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbCollectionDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbCollectionDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The MongoDB database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MongoDbCollection") +@JsonFlatten @Fluent -public final class MongoDbCollectionDataset extends Dataset { +public class MongoDbCollectionDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbCollectionDataset.class); /* - * MongoDB database dataset properties. + * The table name of the MongoDB database. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbCollectionDatasetTypeProperties innerTypeProperties = new MongoDbCollectionDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.collectionName", required = true) + private Object collectionName; /** - * Get the innerTypeProperties property: MongoDB database dataset properties. + * Get the collectionName property: The table name of the MongoDB database. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @return the collectionName value. */ - private MongoDbCollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Object collectionName() { + return this.collectionName; + } + + /** + * Set the collectionName property: The table name of the MongoDB database. Type: string (or Expression with + * resultType string). + * + * @param collectionName the collectionName value to set. + * @return the MongoDbCollectionDataset object itself. + */ + public MongoDbCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public MongoDbCollectionDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collectionName value. - */ - public Object collectionName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collectionName(); - } - - /** - * Set the collectionName property: The table name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collectionName the collectionName value to set. - * @return the MongoDbCollectionDataset object itself. - */ - public MongoDbCollectionDataset withCollectionName(Object collectionName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbCollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollectionName(collectionName); - return this; - } - /** * Validates the instance. * @@ -118,13 +108,11 @@ public MongoDbCollectionDataset withCollectionName(Object collectionName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (collectionName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbCollectionDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property collectionName in model MongoDbCollectionDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java index 3fe2d9fcd76b4..238b6458cd53a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,82 @@ /** Linked service for MongoDb data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MongoDb") +@JsonFlatten @Fluent -public final class MongoDbLinkedService extends LinkedService { +public class MongoDbLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbLinkedService.class); /* - * MongoDB linked service properties. + * The IP address or server name of the MongoDB server. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbLinkedServiceTypeProperties innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; - /** - * Get the innerTypeProperties property: MongoDB linked service properties. - * - * @return the innerTypeProperties value. + /* + * The authentication type to be used to connect to the MongoDB database. */ - private MongoDbLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private MongoDbAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The name of the MongoDB database that you want to access. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.databaseName", required = true) + private Object databaseName; - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password for authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public MongoDbLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Database to verify the username and password. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authSource") + private Object authSource; + + /* + * The TCP port number that the MongoDB server uses to listen for client + * connections. The default value is 27017. Type: integer (or Expression + * with resultType integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; + + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the server property: The IP address or server name of the MongoDB server. Type: string (or Expression with @@ -71,7 +101,7 @@ public MongoDbLinkedService withAnnotations(List annotations) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -82,10 +112,7 @@ public Object server() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -95,7 +122,7 @@ public MongoDbLinkedService withServer(Object server) { * @return the authenticationType value. */ public MongoDbAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -105,10 +132,7 @@ public MongoDbAuthenticationType authenticationType() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withAuthenticationType(MongoDbAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -119,7 +143,7 @@ public MongoDbLinkedService withAuthenticationType(MongoDbAuthenticationType aut * @return the databaseName value. */ public Object databaseName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().databaseName(); + return this.databaseName; } /** @@ -130,10 +154,7 @@ public Object databaseName() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withDatabaseName(Object databaseName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabaseName(databaseName); + this.databaseName = databaseName; return this; } @@ -143,7 +164,7 @@ public MongoDbLinkedService withDatabaseName(Object databaseName) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -153,10 +174,7 @@ public Object username() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -166,7 +184,7 @@ public MongoDbLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -176,10 +194,7 @@ public SecretBase password() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -190,7 +205,7 @@ public MongoDbLinkedService withPassword(SecretBase password) { * @return the authSource value. */ public Object authSource() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authSource(); + return this.authSource; } /** @@ -201,10 +216,7 @@ public Object authSource() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withAuthSource(Object authSource) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthSource(authSource); + this.authSource = authSource; return this; } @@ -215,7 +227,7 @@ public MongoDbLinkedService withAuthSource(Object authSource) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -226,10 +238,7 @@ public Object port() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -240,7 +249,7 @@ public MongoDbLinkedService withPort(Object port) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -251,10 +260,7 @@ public Object enableSsl() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -265,7 +271,7 @@ public MongoDbLinkedService withEnableSsl(Object enableSsl) { * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -276,10 +282,7 @@ public Object allowSelfSignedServerCert() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -290,7 +293,7 @@ public MongoDbLinkedService withAllowSelfSignedServerCert(Object allowSelfSigned * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -301,10 +304,35 @@ public Object encryptedCredential() { * @return the MongoDbLinkedService object itself. */ public MongoDbLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -316,13 +344,19 @@ public MongoDbLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (server() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property server in model MongoDbLinkedService")); + } + if (databaseName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property databaseName in model MongoDbLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java index 636de4f5ffacc..faf35bd8a362a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2CollectionDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2CollectionDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,24 +17,38 @@ /** The MongoDB database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MongoDbV2Collection") +@JsonFlatten @Fluent -public final class MongoDbV2CollectionDataset extends Dataset { +public class MongoDbV2CollectionDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbV2CollectionDataset.class); /* - * MongoDB database dataset properties. + * The collection name of the MongoDB database. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbV2CollectionDatasetTypeProperties innerTypeProperties = - new MongoDbV2CollectionDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.collection", required = true) + private Object collection; /** - * Get the innerTypeProperties property: MongoDB database dataset properties. + * Get the collection property: The collection name of the MongoDB database. Type: string (or Expression with + * resultType string). + * + * @return the collection value. + */ + public Object collection() { + return this.collection; + } + + /** + * Set the collection property: The collection name of the MongoDB database. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @param collection the collection value to set. + * @return the MongoDbV2CollectionDataset object itself. */ - private MongoDbV2CollectionDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MongoDbV2CollectionDataset withCollection(Object collection) { + this.collection = collection; + return this; } /** {@inheritDoc} */ @@ -86,31 +100,6 @@ public MongoDbV2CollectionDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @return the collection value. - */ - public Object collection() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().collection(); - } - - /** - * Set the collection property: The collection name of the MongoDB database. Type: string (or Expression with - * resultType string). - * - * @param collection the collection value to set. - * @return the MongoDbV2CollectionDataset object itself. - */ - public MongoDbV2CollectionDataset withCollection(Object collection) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbV2CollectionDatasetTypeProperties(); - } - this.innerTypeProperties().withCollection(collection); - return this; - } - /** * Validates the instance. * @@ -119,13 +108,11 @@ public MongoDbV2CollectionDataset withCollection(Object collection) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (collection() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbV2CollectionDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property collection in model MongoDbV2CollectionDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java index f69e6f0bef3f7..dffa1c812d036 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MongoDbV2LinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MongoDbV2LinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,25 @@ /** Linked service for MongoDB data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MongoDbV2") +@JsonFlatten @Fluent -public final class MongoDbV2LinkedService extends LinkedService { +public class MongoDbV2LinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MongoDbV2LinkedService.class); /* - * MongoDB linked service properties. + * The MongoDB connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private MongoDbV2LinkedServiceTypeProperties innerTypeProperties = new MongoDbV2LinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: MongoDB linked service properties. - * - * @return the innerTypeProperties value. + /* + * The name of the MongoDB database that you want to access. Type: string + * (or Expression with resultType string). */ - private MongoDbV2LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MongoDbV2LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; /** * Get the connectionString property: The MongoDB connection string. Type: string, SecureString or @@ -71,7 +44,7 @@ public MongoDbV2LinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +55,7 @@ public Object connectionString() { * @return the MongoDbV2LinkedService object itself. */ public MongoDbV2LinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbV2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +66,7 @@ public MongoDbV2LinkedService withConnectionString(Object connectionString) { * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -107,10 +77,35 @@ public Object database() { * @return the MongoDbV2LinkedService object itself. */ public MongoDbV2LinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MongoDbV2LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbV2LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbV2LinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbV2LinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MongoDbV2LinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -122,13 +117,16 @@ public MongoDbV2LinkedService withDatabase(Object database) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MongoDbV2LinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model MongoDbV2LinkedService")); + } + if (database() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property database in model MongoDbV2LinkedService")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java index 34c3fc01b5c7c..2d5263781a1cb 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,30 @@ /** Linked service for MySQL data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MySql") +@JsonFlatten @Fluent -public final class MySqlLinkedService extends LinkedService { +public class MySqlLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(MySqlLinkedService.class); /* - * MySQL linked service properties. + * The connection string. */ - @JsonProperty(value = "typeProperties", required = true) - private MySqlLinkedServiceTypeProperties innerTypeProperties = new MySqlLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: MySQL linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private MySqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public MySqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. @@ -70,7 +48,7 @@ public MySqlLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -80,10 +58,7 @@ public Object connectionString() { * @return the MySqlLinkedService object itself. */ public MySqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -93,7 +68,7 @@ public MySqlLinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -103,10 +78,7 @@ public AzureKeyVaultSecretReference password() { * @return the MySqlLinkedService object itself. */ public MySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -117,7 +89,7 @@ public MySqlLinkedService withPassword(AzureKeyVaultSecretReference password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -128,10 +100,35 @@ public Object encryptedCredential() { * @return the MySqlLinkedService object itself. */ public MySqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public MySqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public MySqlLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public MySqlLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public MySqlLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -143,13 +140,14 @@ public MySqlLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model MySqlLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model MySqlLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java index a2d30ea9d3ac3..adf4ba030dc5e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MySqlTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.MySqlTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The MySQL table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("MySqlTable") +@JsonFlatten @Fluent -public final class MySqlTableDataset extends Dataset { +public class MySqlTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(MySqlTableDataset.class); /* - * MySQL table dataset properties. + * The MySQL table name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private MySqlTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: MySQL table dataset properties. + * Get the tableName property: The MySQL table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The MySQL table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the MySqlTableDataset object itself. */ - private MySqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public MySqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public MySqlTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The MySQL table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the MySqlTableDataset object itself. - */ - public MySqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new MySqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public MySqlTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java index 49a1e07674263..885031917f99c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Netezza linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Netezza") +@JsonFlatten @Fluent -public final class NetezzaLinkedService extends LinkedService { +public class NetezzaLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(NetezzaLinkedService.class); /* - * Netezza linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private NetezzaLinkedServiceTypeProperties innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Netezza linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private NetezzaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public NetezzaLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the NetezzaLinkedService object itself. */ public NetezzaLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public NetezzaLinkedService withConnectionString(Object connectionString) { * @return the pwd value. */ public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); + return this.pwd; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference pwd() { * @return the NetezzaLinkedService object itself. */ public NetezzaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); + this.pwd = pwd; return this; } @@ -119,7 +92,7 @@ public NetezzaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the NetezzaLinkedService object itself. */ public NetezzaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public NetezzaLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model NetezzaLinkedService")); - } else { - innerTypeProperties().validate(); + if (pwd() != null) { + pwd().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java index 19bdb90e046c4..53617a00e338d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/NetezzaTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.NetezzaTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Netezza dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("NetezzaTable") +@JsonFlatten @Fluent -public final class NetezzaTableDataset extends Dataset { +public class NetezzaTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(NetezzaTableDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private NetezzaTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Netezza. Type: string (or Expression with + * resultType string). */ - private NetezzaTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public NetezzaTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Netezza. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public NetezzaTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the NetezzaTableDataset object itself. */ public NetezzaTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public NetezzaTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the NetezzaTableDataset object itself. */ public NetezzaTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Netezza. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Netezza. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Netezza. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the NetezzaTableDataset object itself. */ - public NetezzaTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new NetezzaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public NetezzaTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public NetezzaTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public NetezzaTableDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java index e4f456e077cb5..94e56958d1816 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ODataLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,111 @@ /** Open Data Protocol (OData) linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("OData") +@JsonFlatten @Fluent -public final class ODataLinkedService extends LinkedService { +public class ODataLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ODataLinkedService.class); /* - * OData linked service properties. + * The URL of the OData service endpoint. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private ODataLinkedServiceTypeProperties innerTypeProperties = new ODataLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: OData linked service properties. - * - * @return the innerTypeProperties value. + /* + * Type of authentication used to connect to the OData service. */ - private ODataLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private ODataAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public ODataLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * User name of the OData service. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public ODataLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Password of the OData service. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public ODataLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The additional HTTP headers in the request to RESTful API used for + * authorization. Type: object (or Expression with resultType object). + */ + @JsonProperty(value = "typeProperties.authHeaders") + private Object authHeaders; - /** {@inheritDoc} */ - @Override - public ODataLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specify the tenant information (domain name or tenant ID) under which + * your application resides. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /* + * Specify the application id of your application registered in Azure + * Active Directory. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * Specify the resource you are requesting authorization to use Directory. + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.aadResourceId") + private Object aadResourceId; + + /* + * Specify the credential type (key or cert) is used for service principal. + */ + @JsonProperty(value = "typeProperties.aadServicePrincipalCredentialType") + private ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType; + + /* + * Specify the secret of your application registered in Azure Active + * Directory. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /* + * Specify the base64 encoded certificate of your application registered in + * Azure Active Directory. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalEmbeddedCert") + private SecretBase servicePrincipalEmbeddedCert; + + /* + * Specify the password of your certificate if your certificate has a + * password and you are using AadServicePrincipal authentication. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalEmbeddedCertPassword") + private SecretBase servicePrincipalEmbeddedCertPassword; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the url property: The URL of the OData service endpoint. Type: string (or Expression with resultType string). @@ -70,7 +129,7 @@ public ODataLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -80,10 +139,7 @@ public Object url() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -93,7 +149,7 @@ public ODataLinkedService withUrl(Object url) { * @return the authenticationType value. */ public ODataAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -103,10 +159,7 @@ public ODataAuthenticationType authenticationType() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withAuthenticationType(ODataAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -116,7 +169,7 @@ public ODataLinkedService withAuthenticationType(ODataAuthenticationType authent * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -126,10 +179,7 @@ public Object username() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -139,7 +189,7 @@ public ODataLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -149,10 +199,7 @@ public SecretBase password() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -163,7 +210,7 @@ public ODataLinkedService withPassword(SecretBase password) { * @return the authHeaders value. */ public Object authHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authHeaders(); + return this.authHeaders; } /** @@ -174,10 +221,7 @@ public Object authHeaders() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withAuthHeaders(Object authHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthHeaders(authHeaders); + this.authHeaders = authHeaders; return this; } @@ -188,7 +232,7 @@ public ODataLinkedService withAuthHeaders(Object authHeaders) { * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -199,10 +243,7 @@ public Object tenant() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -213,7 +254,7 @@ public ODataLinkedService withTenant(Object tenant) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -224,10 +265,7 @@ public Object servicePrincipalId() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -239,7 +277,7 @@ public ODataLinkedService withServicePrincipalId(Object servicePrincipalId) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -251,10 +289,7 @@ public Object azureCloudType() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -265,7 +300,7 @@ public ODataLinkedService withAzureCloudType(Object azureCloudType) { * @return the aadResourceId value. */ public Object aadResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().aadResourceId(); + return this.aadResourceId; } /** @@ -276,10 +311,7 @@ public Object aadResourceId() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withAadResourceId(Object aadResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadResourceId(aadResourceId); + this.aadResourceId = aadResourceId; return this; } @@ -290,9 +322,7 @@ public ODataLinkedService withAadResourceId(Object aadResourceId) { * @return the aadServicePrincipalCredentialType value. */ public ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().aadServicePrincipalCredentialType(); + return this.aadServicePrincipalCredentialType; } /** @@ -304,10 +334,7 @@ public ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType( */ public ODataLinkedService withAadServicePrincipalCredentialType( ODataAadServicePrincipalCredentialType aadServicePrincipalCredentialType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadServicePrincipalCredentialType(aadServicePrincipalCredentialType); + this.aadServicePrincipalCredentialType = aadServicePrincipalCredentialType; return this; } @@ -318,7 +345,7 @@ public ODataLinkedService withAadServicePrincipalCredentialType( * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -329,10 +356,7 @@ public SecretBase servicePrincipalKey() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -343,7 +367,7 @@ public ODataLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey * @return the servicePrincipalEmbeddedCert value. */ public SecretBase servicePrincipalEmbeddedCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalEmbeddedCert(); + return this.servicePrincipalEmbeddedCert; } /** @@ -354,10 +378,7 @@ public SecretBase servicePrincipalEmbeddedCert() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withServicePrincipalEmbeddedCert(SecretBase servicePrincipalEmbeddedCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalEmbeddedCert(servicePrincipalEmbeddedCert); + this.servicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert; return this; } @@ -369,9 +390,7 @@ public ODataLinkedService withServicePrincipalEmbeddedCert(SecretBase servicePri * @return the servicePrincipalEmbeddedCertPassword value. */ public SecretBase servicePrincipalEmbeddedCertPassword() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().servicePrincipalEmbeddedCertPassword(); + return this.servicePrincipalEmbeddedCertPassword; } /** @@ -384,10 +403,7 @@ public SecretBase servicePrincipalEmbeddedCertPassword() { */ public ODataLinkedService withServicePrincipalEmbeddedCertPassword( SecretBase servicePrincipalEmbeddedCertPassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalEmbeddedCertPassword(servicePrincipalEmbeddedCertPassword); + this.servicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword; return this; } @@ -398,7 +414,7 @@ public ODataLinkedService withServicePrincipalEmbeddedCertPassword( * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -409,10 +425,35 @@ public Object encryptedCredential() { * @return the ODataLinkedService object itself. */ public ODataLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ODataLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ODataLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ODataLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ODataLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -424,13 +465,22 @@ public ODataLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ODataLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property url in model ODataLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (servicePrincipalEmbeddedCert() != null) { + servicePrincipalEmbeddedCert().validate(); + } + if (servicePrincipalEmbeddedCertPassword() != null) { + servicePrincipalEmbeddedCertPassword().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java index 53b4f9d66018b..355e4bc5efd99 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ODataResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ODataResourceDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Open Data Protocol (OData) resource dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ODataResource") +@JsonFlatten @Fluent -public final class ODataResourceDataset extends Dataset { +public class ODataResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ODataResourceDataset.class); /* - * OData dataset properties. + * The OData resource path. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private ODataResourceDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.path") + private Object path; /** - * Get the innerTypeProperties property: OData dataset properties. + * Get the path property: The OData resource path. Type: string (or Expression with resultType string). + * + * @return the path value. + */ + public Object path() { + return this.path; + } + + /** + * Set the path property: The OData resource path. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param path the path value to set. + * @return the ODataResourceDataset object itself. */ - private ODataResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ODataResourceDataset withPath(Object path) { + this.path = path; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public ODataResourceDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The OData resource path. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the ODataResourceDataset object itself. - */ - public ODataResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ODataResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public ODataResourceDataset withPath(Object path) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java index 667b69236d937..c1aca6aeca57c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,54 @@ /** Open Database Connectivity (ODBC) linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Odbc") +@JsonFlatten @Fluent -public final class OdbcLinkedService extends LinkedService { +public class OdbcLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(OdbcLinkedService.class); /* - * ODBC linked service properties. + * The non-access credential portion of the connection string as well as an + * optional encrypted credential. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private OdbcLinkedServiceTypeProperties innerTypeProperties = new OdbcLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: ODBC linked service properties. - * - * @return the innerTypeProperties value. + /* + * Type of authentication used to connect to the ODBC data store. Possible + * values are: Anonymous and Basic. Type: string (or Expression with + * resultType string). */ - private OdbcLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The access credential portion of the connection string specified in + * driver-specific property-value format. + */ + @JsonProperty(value = "typeProperties.credential") + private SecretBase credential; - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * User name for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public OdbcLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The non-access credential portion of the connection string as well as an @@ -71,7 +73,7 @@ public OdbcLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +84,7 @@ public Object connectionString() { * @return the OdbcLinkedService object itself. */ public OdbcLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +95,7 @@ public OdbcLinkedService withConnectionString(Object connectionString) { * @return the authenticationType value. */ public Object authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -107,10 +106,7 @@ public Object authenticationType() { * @return the OdbcLinkedService object itself. */ public OdbcLinkedService withAuthenticationType(Object authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -121,7 +117,7 @@ public OdbcLinkedService withAuthenticationType(Object authenticationType) { * @return the credential value. */ public SecretBase credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -132,10 +128,7 @@ public SecretBase credential() { * @return the OdbcLinkedService object itself. */ public OdbcLinkedService withCredential(SecretBase credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; return this; } @@ -146,7 +139,7 @@ public OdbcLinkedService withCredential(SecretBase credential) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -157,10 +150,7 @@ public Object username() { * @return the OdbcLinkedService object itself. */ public OdbcLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -170,7 +160,7 @@ public OdbcLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -180,10 +170,7 @@ public SecretBase password() { * @return the OdbcLinkedService object itself. */ public OdbcLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -194,7 +181,7 @@ public OdbcLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -205,10 +192,35 @@ public Object encryptedCredential() { * @return the OdbcLinkedService object itself. */ public OdbcLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public OdbcLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public OdbcLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public OdbcLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public OdbcLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -220,13 +232,17 @@ public OdbcLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model OdbcLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model OdbcLinkedService")); + } + if (credential() != null) { + credential().validate(); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java index ef6b71b7c9018..5ea84b967e8d9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OdbcTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OdbcTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The ODBC table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("OdbcTable") +@JsonFlatten @Fluent -public final class OdbcTableDataset extends Dataset { +public class OdbcTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(OdbcTableDataset.class); /* - * ODBC table dataset properties. + * The ODBC table name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private OdbcTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: ODBC table dataset properties. + * Get the tableName property: The ODBC table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The ODBC table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the OdbcTableDataset object itself. */ - private OdbcTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public OdbcTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public OdbcTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The ODBC table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the OdbcTableDataset object itself. - */ - public OdbcTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OdbcTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public OdbcTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java index 1a350df9c1010..eca1e3416f90a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365Dataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Office365DatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,68 @@ /** The Office365 account. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Office365Table") +@JsonFlatten @Fluent -public final class Office365Dataset extends Dataset { +public class Office365Dataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(Office365Dataset.class); /* - * Office365 dataset properties. + * Name of the dataset to extract from Office 365. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private Office365DatasetTypeProperties innerTypeProperties = new Office365DatasetTypeProperties(); + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /* + * A predicate expression that can be used to filter the specific rows to + * extract from Office 365. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.predicate") + private Object predicate; + + /** + * Get the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with + * resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with + * resultType string). + * + * @param tableName the tableName value to set. + * @return the Office365Dataset object itself. + */ + public Office365Dataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the predicate property: A predicate expression that can be used to filter the specific rows to extract from + * Office 365. Type: string (or Expression with resultType string). + * + * @return the predicate value. + */ + public Object predicate() { + return this.predicate; + } /** - * Get the innerTypeProperties property: Office365 dataset properties. + * Set the predicate property: A predicate expression that can be used to filter the specific rows to extract from + * Office 365. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param predicate the predicate value to set. + * @return the Office365Dataset object itself. */ - private Office365DatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Office365Dataset withPredicate(Object predicate) { + this.predicate = predicate; + return this; } /** {@inheritDoc} */ @@ -85,56 +130,6 @@ public Office365Dataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: Name of the dataset to extract from Office 365. Type: string (or Expression with - * resultType string). - * - * @param tableName the tableName value to set. - * @return the Office365Dataset object itself. - */ - public Office365Dataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365DatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - - /** - * Get the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @return the predicate value. - */ - public Object predicate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().predicate(); - } - - /** - * Set the predicate property: A predicate expression that can be used to filter the specific rows to extract from - * Office 365. Type: string (or Expression with resultType string). - * - * @param predicate the predicate value to set. - * @return the Office365Dataset object itself. - */ - public Office365Dataset withPredicate(Object predicate) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365DatasetTypeProperties(); - } - this.innerTypeProperties().withPredicate(predicate); - return this; - } - /** * Validates the instance. * @@ -143,13 +138,10 @@ public Office365Dataset withPredicate(Object predicate) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (tableName() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model Office365Dataset")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property tableName in model Office365Dataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java index 00d263599661d..f52a079fafe94 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Office365LinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.Office365LinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,45 @@ /** Office365 linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Office365") +@JsonFlatten @Fluent -public final class Office365LinkedService extends LinkedService { +public class Office365LinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(Office365LinkedService.class); /* - * Office365 linked service properties. + * Azure tenant ID to which the Office 365 account belongs. Type: string + * (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private Office365LinkedServiceTypeProperties innerTypeProperties = new Office365LinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.office365TenantId", required = true) + private Object office365TenantId; - /** - * Get the innerTypeProperties property: Office365 linked service properties. - * - * @return the innerTypeProperties value. + /* + * Specify the tenant information under which your Azure AD web application + * resides. Type: string (or Expression with resultType string). */ - private Office365LinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public Office365LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.servicePrincipalTenantId", required = true) + private Object servicePrincipalTenantId; - /** {@inheritDoc} */ - @Override - public Office365LinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specify the application's client ID. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public Office365LinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specify the application's key. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public Office365LinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the office365TenantId property: Azure tenant ID to which the Office 365 account belongs. Type: string (or @@ -71,7 +64,7 @@ public Office365LinkedService withAnnotations(List annotations) { * @return the office365TenantId value. */ public Object office365TenantId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().office365TenantId(); + return this.office365TenantId; } /** @@ -82,10 +75,7 @@ public Object office365TenantId() { * @return the Office365LinkedService object itself. */ public Office365LinkedService withOffice365TenantId(Object office365TenantId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withOffice365TenantId(office365TenantId); + this.office365TenantId = office365TenantId; return this; } @@ -96,7 +86,7 @@ public Office365LinkedService withOffice365TenantId(Object office365TenantId) { * @return the servicePrincipalTenantId value. */ public Object servicePrincipalTenantId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalTenantId(); + return this.servicePrincipalTenantId; } /** @@ -107,10 +97,7 @@ public Object servicePrincipalTenantId() { * @return the Office365LinkedService object itself. */ public Office365LinkedService withServicePrincipalTenantId(Object servicePrincipalTenantId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalTenantId(servicePrincipalTenantId); + this.servicePrincipalTenantId = servicePrincipalTenantId; return this; } @@ -121,7 +108,7 @@ public Office365LinkedService withServicePrincipalTenantId(Object servicePrincip * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -132,10 +119,7 @@ public Object servicePrincipalId() { * @return the Office365LinkedService object itself. */ public Office365LinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -145,7 +129,7 @@ public Office365LinkedService withServicePrincipalId(Object servicePrincipalId) * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -155,10 +139,7 @@ public SecretBase servicePrincipalKey() { * @return the Office365LinkedService object itself. */ public Office365LinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -169,7 +150,7 @@ public Office365LinkedService withServicePrincipalKey(SecretBase servicePrincipa * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -180,10 +161,35 @@ public Object encryptedCredential() { * @return the Office365LinkedService object itself. */ public Office365LinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new Office365LinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public Office365LinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public Office365LinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public Office365LinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public Office365LinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -195,13 +201,31 @@ public Office365LinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (office365TenantId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property office365TenantId in model Office365LinkedService")); + } + if (servicePrincipalTenantId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property servicePrincipalTenantId in model Office365LinkedService")); + } + if (servicePrincipalId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property servicePrincipalId in model Office365LinkedService")); + } + if (servicePrincipalKey() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model Office365LinkedService")); + "Missing required property servicePrincipalKey in model Office365LinkedService")); } else { - innerTypeProperties().validate(); + servicePrincipalKey().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java index be6e2fd606392..469448df577a8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleCloudStorageLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleCloudStorageLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,42 @@ /** Linked service for Oracle Cloud Storage. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("OracleCloudStorage") +@JsonFlatten @Fluent -public final class OracleCloudStorageLinkedService extends LinkedService { +public class OracleCloudStorageLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleCloudStorageLinkedService.class); /* - * Oracle Cloud Storage linked service properties. + * The access key identifier of the Oracle Cloud Storage Identity and + * Access Management (IAM) user. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private OracleCloudStorageLinkedServiceTypeProperties innerTypeProperties = - new OracleCloudStorageLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.accessKeyId") + private Object accessKeyId; - /** - * Get the innerTypeProperties property: Oracle Cloud Storage linked service properties. - * - * @return the innerTypeProperties value. + /* + * The secret access key of the Oracle Cloud Storage Identity and Access + * Management (IAM) user. */ - private OracleCloudStorageLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.secretAccessKey") + private SecretBase secretAccessKey; - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * This value specifies the endpoint to access with the Oracle Cloud + * Storage Connector. This is an optional property; change it only if you + * want to try a different service endpoint or want to switch between https + * and http. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.serviceUrl") + private Object serviceUrl; - /** {@inheritDoc} */ - @Override - public OracleCloudStorageLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the accessKeyId property: The access key identifier of the Oracle Cloud Storage Identity and Access @@ -72,7 +61,7 @@ public OracleCloudStorageLinkedService withAnnotations(List annotations) * @return the accessKeyId value. */ public Object accessKeyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessKeyId(); + return this.accessKeyId; } /** @@ -83,10 +72,7 @@ public Object accessKeyId() { * @return the OracleCloudStorageLinkedService object itself. */ public OracleCloudStorageLinkedService withAccessKeyId(Object accessKeyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessKeyId(accessKeyId); + this.accessKeyId = accessKeyId; return this; } @@ -97,7 +83,7 @@ public OracleCloudStorageLinkedService withAccessKeyId(Object accessKeyId) { * @return the secretAccessKey value. */ public SecretBase secretAccessKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().secretAccessKey(); + return this.secretAccessKey; } /** @@ -108,10 +94,7 @@ public SecretBase secretAccessKey() { * @return the OracleCloudStorageLinkedService object itself. */ public OracleCloudStorageLinkedService withSecretAccessKey(SecretBase secretAccessKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecretAccessKey(secretAccessKey); + this.secretAccessKey = secretAccessKey; return this; } @@ -123,7 +106,7 @@ public OracleCloudStorageLinkedService withSecretAccessKey(SecretBase secretAcce * @return the serviceUrl value. */ public Object serviceUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrl(); + return this.serviceUrl; } /** @@ -135,10 +118,7 @@ public Object serviceUrl() { * @return the OracleCloudStorageLinkedService object itself. */ public OracleCloudStorageLinkedService withServiceUrl(Object serviceUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServiceUrl(serviceUrl); + this.serviceUrl = serviceUrl; return this; } @@ -149,7 +129,7 @@ public OracleCloudStorageLinkedService withServiceUrl(Object serviceUrl) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -160,10 +140,35 @@ public Object encryptedCredential() { * @return the OracleCloudStorageLinkedService object itself. */ public OracleCloudStorageLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleCloudStorageLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleCloudStorageLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleCloudStorageLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleCloudStorageLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleCloudStorageLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -175,13 +180,8 @@ public OracleCloudStorageLinkedService withEncryptedCredential(Object encryptedC @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model OracleCloudStorageLinkedService")); - } else { - innerTypeProperties().validate(); + if (secretAccessKey() != null) { + secretAccessKey().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java index 2d19a4602bca4..53b75f2558bc0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Oracle database. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Oracle") +@JsonFlatten @Fluent -public final class OracleLinkedService extends LinkedService { +public class OracleLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleLinkedService.class); /* - * Oracle database linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private OracleLinkedServiceTypeProperties innerTypeProperties = new OracleLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Oracle database linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private OracleLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public OracleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public OracleLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the OracleLinkedService object itself. */ public OracleLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public OracleLinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference password() { * @return the OracleLinkedService object itself. */ public OracleLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -119,7 +92,7 @@ public OracleLinkedService withPassword(AzureKeyVaultSecretReference password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the OracleLinkedService object itself. */ public OracleLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,14 @@ public OracleLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model OracleLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model OracleLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java index a273f414cb4d7..8f55d45167909 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleServiceCloudLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,62 @@ /** Oracle Service Cloud linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("OracleServiceCloud") +@JsonFlatten @Fluent -public final class OracleServiceCloudLinkedService extends LinkedService { +public class OracleServiceCloudLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleServiceCloudLinkedService.class); /* - * Oracle Service Cloud linked service properties. + * The URL of the Oracle Service Cloud instance. */ - @JsonProperty(value = "typeProperties", required = true) - private OracleServiceCloudLinkedServiceTypeProperties innerTypeProperties = - new OracleServiceCloudLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Oracle Service Cloud linked service properties. - * - * @return the innerTypeProperties value. + /* + * The user name that you use to access Oracle Service Cloud server. */ - private OracleServiceCloudLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The password corresponding to the user name that you provided in the + * username key. + */ + @JsonProperty(value = "typeProperties.password", required = true) + private SecretBase password; - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public OracleServiceCloudLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The URL of the Oracle Service Cloud instance. @@ -71,7 +80,7 @@ public OracleServiceCloudLinkedService withAnnotations(List annotations) * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -81,10 +90,7 @@ public Object host() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +100,7 @@ public OracleServiceCloudLinkedService withHost(Object host) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -104,10 +110,7 @@ public Object username() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -117,7 +120,7 @@ public OracleServiceCloudLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -127,10 +130,7 @@ public SecretBase password() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -141,7 +141,7 @@ public OracleServiceCloudLinkedService withPassword(SecretBase password) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -152,10 +152,7 @@ public Object useEncryptedEndpoints() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -167,7 +164,7 @@ public OracleServiceCloudLinkedService withUseEncryptedEndpoints(Object useEncry * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -179,10 +176,7 @@ public Object useHostVerification() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -193,7 +187,7 @@ public OracleServiceCloudLinkedService withUseHostVerification(Object useHostVer * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -204,10 +198,7 @@ public Object usePeerVerification() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -218,7 +209,7 @@ public OracleServiceCloudLinkedService withUsePeerVerification(Object usePeerVer * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -229,10 +220,35 @@ public Object encryptedCredential() { * @return the OracleServiceCloudLinkedService object itself. */ public OracleServiceCloudLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleServiceCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleServiceCloudLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleServiceCloudLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleServiceCloudLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -244,13 +260,25 @@ public OracleServiceCloudLinkedService withEncryptedCredential(Object encryptedC @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property host in model OracleServiceCloudLinkedService")); + } + if (username() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property username in model OracleServiceCloudLinkedService")); + } + if (password() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model OracleServiceCloudLinkedService")); + "Missing required property password in model OracleServiceCloudLinkedService")); } else { - innerTypeProperties().validate(); + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java index 320ca5ef27e5c..61363dd74e21d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleServiceCloudObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Oracle Service Cloud dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("OracleServiceCloudObject") +@JsonFlatten @Fluent -public final class OracleServiceCloudObjectDataset extends Dataset { +public class OracleServiceCloudObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleServiceCloudObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the OracleServiceCloudObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public OracleServiceCloudObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public OracleServiceCloudObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the OracleServiceCloudObjectDataset object itself. - */ - public OracleServiceCloudObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public OracleServiceCloudObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java index a0b73b1f409d1..9315de1c81cdf 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OracleTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OracleTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The on-premises Oracle database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("OracleTable") +@JsonFlatten @Fluent -public final class OracleTableDataset extends Dataset { +public class OracleTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(OracleTableDataset.class); /* - * On-premises Oracle dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private OracleTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: On-premises Oracle dataset properties. - * - * @return the innerTypeProperties value. + /* + * The schema name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). */ - private OracleTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; - /** {@inheritDoc} */ - @Override - public OracleTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public OracleTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The table name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public OracleTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,35 +61,29 @@ public Object tableName() { * @return the OracleTableDataset object itself. */ public OracleTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } /** - * Get the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the on-premises Oracle database. Type: string (or Expression with - * resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the OracleTableDataset object itself. */ - public OracleTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public OracleTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; return this; } @@ -142,7 +94,7 @@ public OracleTableDataset withSchemaTypePropertiesSchema(Object schema) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -153,10 +105,56 @@ public Object table() { * @return the OracleTableDataset object itself. */ public OracleTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OracleTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public OracleTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public OracleTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java index 43bd14ac0ddb2..39dc80ac5600f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/OrcDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.OrcDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,64 @@ /** ORC dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Orc") +@JsonFlatten @Fluent -public final class OrcDataset extends Dataset { +public class OrcDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(OrcDataset.class); /* - * ORC dataset properties. + * The location of the ORC data storage. */ - @JsonProperty(value = "typeProperties") - private OrcDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; + + /* + * The data orcCompressionCodec. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.orcCompressionCodec") + private Object orcCompressionCodec; + + /** + * Get the location property: The location of the ORC data storage. + * + * @return the location value. + */ + public DatasetLocation location() { + return this.location; + } + + /** + * Set the location property: The location of the ORC data storage. + * + * @param location the location value to set. + * @return the OrcDataset object itself. + */ + public OrcDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } /** - * Get the innerTypeProperties property: ORC dataset properties. + * Get the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @return the orcCompressionCodec value. */ - private OrcDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Object orcCompressionCodec() { + return this.orcCompressionCodec; + } + + /** + * Set the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType + * string). + * + * @param orcCompressionCodec the orcCompressionCodec value to set. + * @return the OrcDataset object itself. + */ + public OrcDataset withOrcCompressionCodec(Object orcCompressionCodec) { + this.orcCompressionCodec = orcCompressionCodec; + return this; } /** {@inheritDoc} */ @@ -85,54 +126,6 @@ public OrcDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the location property: The location of the ORC data storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the ORC data storage. - * - * @param location the location value to set. - * @return the OrcDataset object itself. - */ - public OrcDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OrcDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the orcCompressionCodec value. - */ - public Object orcCompressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().orcCompressionCodec(); - } - - /** - * Set the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType - * string). - * - * @param orcCompressionCodec the orcCompressionCodec value to set. - * @return the OrcDataset object itself. - */ - public OrcDataset withOrcCompressionCodec(Object orcCompressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new OrcDatasetTypeProperties(); - } - this.innerTypeProperties().withOrcCompressionCodec(orcCompressionCodec); - return this; - } - /** * Validates the instance. * @@ -141,8 +134,8 @@ public OrcDataset withOrcCompressionCodec(Object orcCompressionCodec) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java index 7f4fc95a8c3be..216e7f1f57263 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ParquetDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ParquetDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,64 @@ /** Parquet dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Parquet") +@JsonFlatten @Fluent -public final class ParquetDataset extends Dataset { +public class ParquetDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ParquetDataset.class); /* - * Parquet dataset properties. + * The location of the parquet storage. */ - @JsonProperty(value = "typeProperties") - private ParquetDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; + + /* + * The data compressionCodec. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.compressionCodec") + private Object compressionCodec; + + /** + * Get the location property: The location of the parquet storage. + * + * @return the location value. + */ + public DatasetLocation location() { + return this.location; + } /** - * Get the innerTypeProperties property: Parquet dataset properties. + * Set the location property: The location of the parquet storage. * - * @return the innerTypeProperties value. + * @param location the location value to set. + * @return the ParquetDataset object itself. */ - private ParquetDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ParquetDataset withLocation(DatasetLocation location) { + this.location = location; + return this; + } + + /** + * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType + * string). + * + * @return the compressionCodec value. + */ + public Object compressionCodec() { + return this.compressionCodec; + } + + /** + * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType + * string). + * + * @param compressionCodec the compressionCodec value to set. + * @return the ParquetDataset object itself. + */ + public ParquetDataset withCompressionCodec(Object compressionCodec) { + this.compressionCodec = compressionCodec; + return this; } /** {@inheritDoc} */ @@ -85,54 +126,6 @@ public ParquetDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the location property: The location of the parquet storage. - * - * @return the location value. - */ - public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); - } - - /** - * Set the location property: The location of the parquet storage. - * - * @param location the location value to set. - * @return the ParquetDataset object itself. - */ - public ParquetDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ParquetDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); - return this; - } - - /** - * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @return the compressionCodec value. - */ - public Object compressionCodec() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compressionCodec(); - } - - /** - * Set the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType - * string). - * - * @param compressionCodec the compressionCodec value to set. - * @return the ParquetDataset object itself. - */ - public ParquetDataset withCompressionCodec(Object compressionCodec) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ParquetDatasetTypeProperties(); - } - this.innerTypeProperties().withCompressionCodec(compressionCodec); - return this; - } - /** * Validates the instance. * @@ -141,8 +134,8 @@ public ParquetDataset withCompressionCodec(Object compressionCodec) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java index 230c1e896a250..e330bd7e941e1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PaypalLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,58 @@ /** Paypal Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Paypal") +@JsonFlatten @Fluent -public final class PaypalLinkedService extends LinkedService { +public class PaypalLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(PaypalLinkedService.class); /* - * Paypal Service linked service properties. + * The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) */ - @JsonProperty(value = "typeProperties", required = true) - private PaypalLinkedServiceTypeProperties innerTypeProperties = new PaypalLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Paypal Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The client ID associated with your PayPal application. */ - private PaypalLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The client secret associated with your PayPal application. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public PaypalLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). @@ -70,7 +76,7 @@ public PaypalLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +86,7 @@ public Object host() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -93,7 +96,7 @@ public PaypalLinkedService withHost(Object host) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -103,10 +106,7 @@ public Object clientId() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -116,7 +116,7 @@ public PaypalLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -126,10 +126,7 @@ public SecretBase clientSecret() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -140,7 +137,7 @@ public PaypalLinkedService withClientSecret(SecretBase clientSecret) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -151,10 +148,7 @@ public Object useEncryptedEndpoints() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -165,7 +159,7 @@ public PaypalLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoint * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -176,10 +170,7 @@ public Object useHostVerification() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -190,7 +181,7 @@ public PaypalLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -201,10 +192,7 @@ public Object usePeerVerification() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -215,7 +203,7 @@ public PaypalLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -226,10 +214,35 @@ public Object encryptedCredential() { * @return the PaypalLinkedService object itself. */ public PaypalLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PaypalLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public PaypalLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public PaypalLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PaypalLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PaypalLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -241,13 +254,18 @@ public PaypalLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model PaypalLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model PaypalLinkedService")); + } + if (clientId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property clientId in model PaypalLinkedService")); + } + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java index 46d052935d747..b1d0764074637 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PaypalObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Paypal Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("PaypalObject") +@JsonFlatten @Fluent -public final class PaypalObjectDataset extends Dataset { +public class PaypalObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(PaypalObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the PaypalObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public PaypalObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public PaypalObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the PaypalObjectDataset object itself. - */ - public PaypalObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public PaypalObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java index a047d2ce64c4d..9cd98f27602a5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,96 @@ /** Phoenix server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Phoenix") +@JsonFlatten @Fluent -public final class PhoenixLinkedService extends LinkedService { +public class PhoenixLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(PhoenixLinkedService.class); /* - * Phoenix server linked service properties. + * The IP address or host name of the Phoenix server. (i.e. + * 192.168.222.160) */ - @JsonProperty(value = "typeProperties", required = true) - private PhoenixLinkedServiceTypeProperties innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Phoenix server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The TCP port that the Phoenix server uses to listen for client + * connections. The default value is 8765. */ - private PhoenixLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The partial URL corresponding to the Phoenix server. (i.e. + * /gateway/sandbox/phoenix/version). The default value is hbasephoenix if + * using WindowsAzureHDInsightService. + */ + @JsonProperty(value = "typeProperties.httpPath") + private Object httpPath; - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The authentication mechanism used to connect to the Phoenix server. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private PhoenixAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The user name used to connect to the Phoenix server. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public PhoenixLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The password corresponding to the user name. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * Specifies whether to require a CA-issued SSL certificate name to match + * the host name of the server when connecting over SSL. The default value + * is false. + */ + @JsonProperty(value = "typeProperties.allowHostNameCNMismatch") + private Object allowHostnameCNMismatch; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). @@ -70,7 +114,7 @@ public PhoenixLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +124,7 @@ public Object host() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +135,7 @@ public PhoenixLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +146,7 @@ public Object port() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -119,7 +157,7 @@ public PhoenixLinkedService withPort(Object port) { * @return the httpPath value. */ public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); + return this.httpPath; } /** @@ -130,10 +168,7 @@ public Object httpPath() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); + this.httpPath = httpPath; return this; } @@ -143,7 +178,7 @@ public PhoenixLinkedService withHttpPath(Object httpPath) { * @return the authenticationType value. */ public PhoenixAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -153,10 +188,7 @@ public PhoenixAuthenticationType authenticationType() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withAuthenticationType(PhoenixAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -166,7 +198,7 @@ public PhoenixLinkedService withAuthenticationType(PhoenixAuthenticationType aut * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -176,10 +208,7 @@ public Object username() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -189,7 +218,7 @@ public PhoenixLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -199,10 +228,7 @@ public SecretBase password() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -213,7 +239,7 @@ public PhoenixLinkedService withPassword(SecretBase password) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -224,10 +250,7 @@ public Object enableSsl() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -239,7 +262,7 @@ public PhoenixLinkedService withEnableSsl(Object enableSsl) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -251,10 +274,7 @@ public Object trustedCertPath() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -265,7 +285,7 @@ public PhoenixLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -276,10 +296,7 @@ public Object useSystemTrustStore() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -290,7 +307,7 @@ public PhoenixLinkedService withUseSystemTrustStore(Object useSystemTrustStore) * @return the allowHostnameCNMismatch value. */ public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); + return this.allowHostnameCNMismatch; } /** @@ -301,10 +318,7 @@ public Object allowHostnameCNMismatch() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); + this.allowHostnameCNMismatch = allowHostnameCNMismatch; return this; } @@ -315,7 +329,7 @@ public PhoenixLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMi * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -326,10 +340,7 @@ public Object allowSelfSignedServerCert() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -340,7 +351,7 @@ public PhoenixLinkedService withAllowSelfSignedServerCert(Object allowSelfSigned * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -351,10 +362,35 @@ public Object encryptedCredential() { * @return the PhoenixLinkedService object itself. */ public PhoenixLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -366,13 +402,19 @@ public PhoenixLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property host in model PhoenixLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model PhoenixLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model PhoenixLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java index 43b2859d2ac6c..e93175e47c982 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PhoenixObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PhoenixDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Phoenix server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("PhoenixObject") +@JsonFlatten @Fluent -public final class PhoenixObjectDataset extends Dataset { +public class PhoenixObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(PhoenixObjectDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private PhoenixDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Phoenix. Type: string (or Expression with + * resultType string). */ - private PhoenixDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PhoenixObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Phoenix. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public PhoenixObjectDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the PhoenixObjectDataset object itself. */ public PhoenixObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public PhoenixObjectDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the PhoenixObjectDataset object itself. */ public PhoenixObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Phoenix. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Phoenix. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Phoenix. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the PhoenixObjectDataset object itself. */ - public PhoenixObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PhoenixDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public PhoenixObjectDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public PhoenixObjectDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public PhoenixObjectDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java index a8015b05399a2..936ae506ad160 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PipelineResource.java @@ -19,34 +19,6 @@ public interface PipelineResource { */ String id(); - /** - * Gets the name property: The resource name. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The resource type. - * - * @return the type value. - */ - String type(); - - /** - * Gets the etag property: Etag identifies change in the resource. - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the additionalProperties property: Pipeline resource type. - * - * @return the additionalProperties value. - */ - Map additionalProperties(); - /** * Gets the description property: The description of the pipeline. * @@ -111,6 +83,34 @@ public interface PipelineResource { */ PipelinePolicy policy(); + /** + * Gets the name property: The resource name. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The resource type. + * + * @return the type value. + */ + String type(); + + /** + * Gets the etag property: Etag identifies change in the resource. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the additionalProperties property: Pipeline resource type. + * + * @return the additionalProperties value. + */ + Map additionalProperties(); + /** * Gets the inner com.azure.resourcemanager.datafactory.fluent.models.PipelineResourceInner object. * @@ -143,8 +143,7 @@ interface WithParentResource { * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithAdditionalProperties, - DefinitionStages.WithDescription, + extends DefinitionStages.WithDescription, DefinitionStages.WithActivities, DefinitionStages.WithParameters, DefinitionStages.WithVariables, @@ -153,6 +152,7 @@ interface WithCreate DefinitionStages.WithRunDimensions, DefinitionStages.WithFolder, DefinitionStages.WithPolicy, + DefinitionStages.WithAdditionalProperties, DefinitionStages.WithIfMatch { /** * Executes the create request. @@ -169,16 +169,6 @@ interface WithCreate */ PipelineResource create(Context context); } - /** The stage of the PipelineResource definition allowing to specify additionalProperties. */ - interface WithAdditionalProperties { - /** - * Specifies the additionalProperties property: Pipeline resource type.. - * - * @param additionalProperties Pipeline resource type. - * @return the next definition stage. - */ - WithCreate withAdditionalProperties(Map additionalProperties); - } /** The stage of the PipelineResource definition allowing to specify description. */ interface WithDescription { /** @@ -271,6 +261,16 @@ interface WithPolicy { */ WithCreate withPolicy(PipelinePolicy policy); } + /** The stage of the PipelineResource definition allowing to specify additionalProperties. */ + interface WithAdditionalProperties { + /** + * Specifies the additionalProperties property: Pipeline resource type.. + * + * @param additionalProperties Pipeline resource type. + * @return the next definition stage. + */ + WithCreate withAdditionalProperties(Map additionalProperties); + } /** The stage of the PipelineResource definition allowing to specify ifMatch. */ interface WithIfMatch { /** @@ -293,8 +293,7 @@ interface WithIfMatch { /** The template for PipelineResource update. */ interface Update - extends UpdateStages.WithAdditionalProperties, - UpdateStages.WithDescription, + extends UpdateStages.WithDescription, UpdateStages.WithActivities, UpdateStages.WithParameters, UpdateStages.WithVariables, @@ -303,6 +302,7 @@ interface Update UpdateStages.WithRunDimensions, UpdateStages.WithFolder, UpdateStages.WithPolicy, + UpdateStages.WithAdditionalProperties, UpdateStages.WithIfMatch { /** * Executes the update request. @@ -321,16 +321,6 @@ interface Update } /** The PipelineResource update stages. */ interface UpdateStages { - /** The stage of the PipelineResource update allowing to specify additionalProperties. */ - interface WithAdditionalProperties { - /** - * Specifies the additionalProperties property: Pipeline resource type.. - * - * @param additionalProperties Pipeline resource type. - * @return the next definition stage. - */ - Update withAdditionalProperties(Map additionalProperties); - } /** The stage of the PipelineResource update allowing to specify description. */ interface WithDescription { /** @@ -423,6 +413,16 @@ interface WithPolicy { */ Update withPolicy(PipelinePolicy policy); } + /** The stage of the PipelineResource update allowing to specify additionalProperties. */ + interface WithAdditionalProperties { + /** + * Specifies the additionalProperties property: Pipeline resource type.. + * + * @param additionalProperties Pipeline resource type. + * @return the next definition stage. + */ + Update withAdditionalProperties(Map additionalProperties); + } /** The stage of the PipelineResource update allowing to specify ifMatch. */ interface WithIfMatch { /** diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java index dc7ab99f62309..de631084ff79a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,30 @@ /** Linked service for PostgreSQL data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("PostgreSql") +@JsonFlatten @Fluent -public final class PostgreSqlLinkedService extends LinkedService { +public class PostgreSqlLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(PostgreSqlLinkedService.class); /* - * PostgreSQL linked service properties. + * The connection string. */ - @JsonProperty(value = "typeProperties", required = true) - private PostgreSqlLinkedServiceTypeProperties innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: PostgreSQL linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private PostgreSqlLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string. @@ -70,7 +48,7 @@ public PostgreSqlLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -80,10 +58,7 @@ public Object connectionString() { * @return the PostgreSqlLinkedService object itself. */ public PostgreSqlLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -93,7 +68,7 @@ public PostgreSqlLinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -103,10 +78,7 @@ public AzureKeyVaultSecretReference password() { * @return the PostgreSqlLinkedService object itself. */ public PostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -117,7 +89,7 @@ public PostgreSqlLinkedService withPassword(AzureKeyVaultSecretReference passwor * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -128,10 +100,35 @@ public Object encryptedCredential() { * @return the PostgreSqlLinkedService object itself. */ public PostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -143,13 +140,14 @@ public PostgreSqlLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model PostgreSqlLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model PostgreSqlLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java index b1a67144f1f94..b9f7f5558b9b4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PostgreSqlTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PostgreSqlTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The PostgreSQL table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("PostgreSqlTable") +@JsonFlatten @Fluent -public final class PostgreSqlTableDataset extends Dataset { +public class PostgreSqlTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(PostgreSqlTableDataset.class); /* - * PostgreSQL table dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private PostgreSqlTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: PostgreSQL table dataset properties. - * - * @return the innerTypeProperties value. + /* + * The PostgreSQL table name. Type: string (or Expression with resultType + * string). */ - private PostgreSqlTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PostgreSqlTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The PostgreSQL schema name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public PostgreSqlTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the PostgreSqlTableDataset object itself. */ public PostgreSqlTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public PostgreSqlTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the PostgreSqlTableDataset object itself. */ public PostgreSqlTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The PostgreSQL schema name. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The PostgreSQL schema name. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The PostgreSQL schema name. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the PostgreSqlTableDataset object itself. */ - public PostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PostgreSqlTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public PostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public PostgreSqlTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public PostgreSqlTableDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java index 1222813a17677..010c5cb1c9d3f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySink.java @@ -75,6 +75,13 @@ public PowerQuerySink withDescription(String description) { return this; } + /** {@inheritDoc} */ + @Override + public PowerQuerySink withFlowlet(DataFlowReference flowlet) { + super.withFlowlet(flowlet); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySinkMapping.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySinkMapping.java new file mode 100644 index 0000000000000..f89fac55171bc --- /dev/null +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySinkMapping.java @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.datafactory.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Map Power Query mashup query to sink dataset(s). */ +@Fluent +public final class PowerQuerySinkMapping { + @JsonIgnore private final ClientLogger logger = new ClientLogger(PowerQuerySinkMapping.class); + + /* + * Name of the query in Power Query mashup document. + */ + @JsonProperty(value = "queryName") + private String queryName; + + /* + * List of sinks mapped to Power Query mashup query. + */ + @JsonProperty(value = "dataflowSinks") + private List dataflowSinks; + + /** + * Get the queryName property: Name of the query in Power Query mashup document. + * + * @return the queryName value. + */ + public String queryName() { + return this.queryName; + } + + /** + * Set the queryName property: Name of the query in Power Query mashup document. + * + * @param queryName the queryName value to set. + * @return the PowerQuerySinkMapping object itself. + */ + public PowerQuerySinkMapping withQueryName(String queryName) { + this.queryName = queryName; + return this; + } + + /** + * Get the dataflowSinks property: List of sinks mapped to Power Query mashup query. + * + * @return the dataflowSinks value. + */ + public List dataflowSinks() { + return this.dataflowSinks; + } + + /** + * Set the dataflowSinks property: List of sinks mapped to Power Query mashup query. + * + * @param dataflowSinks the dataflowSinks value to set. + * @return the PowerQuerySinkMapping object itself. + */ + public PowerQuerySinkMapping withDataflowSinks(List dataflowSinks) { + this.dataflowSinks = dataflowSinks; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (dataflowSinks() != null) { + dataflowSinks().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java index ab9c1ffe92429..6ce90040fc815 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PowerQuerySource.java @@ -75,6 +75,13 @@ public PowerQuerySource withDescription(String description) { return this; } + /** {@inheritDoc} */ + @Override + public PowerQuerySource withFlowlet(DataFlowReference flowlet) { + super.withFlowlet(flowlet); + return this; + } + /** * Validates the instance. * diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java index 70d5b92f9131e..8ca31427b54a1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,107 @@ /** Presto server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Presto") +@JsonFlatten @Fluent -public final class PrestoLinkedService extends LinkedService { +public class PrestoLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(PrestoLinkedService.class); /* - * Presto server linked service properties. + * The IP address or host name of the Presto server. (i.e. 192.168.222.160) */ - @JsonProperty(value = "typeProperties", required = true) - private PrestoLinkedServiceTypeProperties innerTypeProperties = new PrestoLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Presto server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The version of the Presto server. (i.e. 0.148-t) */ - private PrestoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.serverVersion", required = true) + private Object serverVersion; - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The catalog context for all request against the server. + */ + @JsonProperty(value = "typeProperties.catalog", required = true) + private Object catalog; - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The TCP port that the Presto server uses to listen for client + * connections. The default value is 8080. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The authentication mechanism used to connect to the Presto server. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private PrestoAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public PrestoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The user name used to connect to the Presto server. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /* + * The password corresponding to the user name. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * Specifies whether to require a CA-issued SSL certificate name to match + * the host name of the server when connecting over SSL. The default value + * is false. + */ + @JsonProperty(value = "typeProperties.allowHostNameCNMismatch") + private Object allowHostnameCNMismatch; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The local time zone used by the connection. Valid values for this option + * are specified in the IANA Time Zone Database. The default value is the + * system time zone. + */ + @JsonProperty(value = "typeProperties.timeZoneID") + private Object timeZoneId; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160). @@ -70,7 +125,7 @@ public PrestoLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +135,7 @@ public Object host() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -93,7 +145,7 @@ public PrestoLinkedService withHost(Object host) { * @return the serverVersion value. */ public Object serverVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serverVersion(); + return this.serverVersion; } /** @@ -103,10 +155,7 @@ public Object serverVersion() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withServerVersion(Object serverVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServerVersion(serverVersion); + this.serverVersion = serverVersion; return this; } @@ -116,7 +165,7 @@ public PrestoLinkedService withServerVersion(Object serverVersion) { * @return the catalog value. */ public Object catalog() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().catalog(); + return this.catalog; } /** @@ -126,10 +175,7 @@ public Object catalog() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withCatalog(Object catalog) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCatalog(catalog); + this.catalog = catalog; return this; } @@ -140,7 +186,7 @@ public PrestoLinkedService withCatalog(Object catalog) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -151,10 +197,7 @@ public Object port() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -164,7 +207,7 @@ public PrestoLinkedService withPort(Object port) { * @return the authenticationType value. */ public PrestoAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -174,10 +217,7 @@ public PrestoAuthenticationType authenticationType() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -187,7 +227,7 @@ public PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authe * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -197,10 +237,7 @@ public Object username() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -210,7 +247,7 @@ public PrestoLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -220,10 +257,7 @@ public SecretBase password() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -234,7 +268,7 @@ public PrestoLinkedService withPassword(SecretBase password) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -245,10 +279,7 @@ public Object enableSsl() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -260,7 +291,7 @@ public PrestoLinkedService withEnableSsl(Object enableSsl) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -272,10 +303,7 @@ public Object trustedCertPath() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -286,7 +314,7 @@ public PrestoLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -297,10 +325,7 @@ public Object useSystemTrustStore() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -311,7 +336,7 @@ public PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { * @return the allowHostnameCNMismatch value. */ public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); + return this.allowHostnameCNMismatch; } /** @@ -322,10 +347,7 @@ public Object allowHostnameCNMismatch() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); + this.allowHostnameCNMismatch = allowHostnameCNMismatch; return this; } @@ -336,7 +358,7 @@ public PrestoLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMis * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -347,10 +369,7 @@ public Object allowSelfSignedServerCert() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -361,7 +380,7 @@ public PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedS * @return the timeZoneId value. */ public Object timeZoneId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeZoneId(); + return this.timeZoneId; } /** @@ -372,10 +391,7 @@ public Object timeZoneId() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withTimeZoneId(Object timeZoneId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTimeZoneId(timeZoneId); + this.timeZoneId = timeZoneId; return this; } @@ -386,7 +402,7 @@ public PrestoLinkedService withTimeZoneId(Object timeZoneId) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -397,10 +413,35 @@ public Object encryptedCredential() { * @return the PrestoLinkedService object itself. */ public PrestoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -412,13 +453,30 @@ public PrestoLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property host in model PrestoLinkedService")); + } + if (serverVersion() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property serverVersion in model PrestoLinkedService")); + } + if (catalog() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property catalog in model PrestoLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model PrestoLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model PrestoLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java index bea6e95cd00b1..0450398170c29 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/PrestoObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PrestoDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Presto server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("PrestoObject") +@JsonFlatten @Fluent -public final class PrestoObjectDataset extends Dataset { +public class PrestoObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(PrestoObjectDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private PrestoDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Presto. Type: string (or Expression with + * resultType string). */ - private PrestoDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public PrestoObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Presto. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public PrestoObjectDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the PrestoObjectDataset object itself. */ public PrestoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public PrestoObjectDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the PrestoObjectDataset object itself. */ public PrestoObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Presto. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Presto. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Presto. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the PrestoObjectDataset object itself. */ - public PrestoObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PrestoDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public PrestoObjectDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public PrestoObjectDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public PrestoObjectDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java index 16d54f9454f59..5cf5758890401 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.QuickBooksLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,68 @@ /** QuickBooks server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("QuickBooks") +@JsonFlatten @Fluent -public final class QuickBooksLinkedService extends LinkedService { +public class QuickBooksLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(QuickBooksLinkedService.class); /* - * QuickBooks server linked service properties. + * Properties used to connect to QuickBooks. It is mutually exclusive with + * any other properties in the linked service. Type: object. */ - @JsonProperty(value = "typeProperties", required = true) - private QuickBooksLinkedServiceTypeProperties innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionProperties") + private Object connectionProperties; - /** - * Get the innerTypeProperties property: QuickBooks server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) */ - private QuickBooksLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.endpoint") + private Object endpoint; - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The company ID of the QuickBooks company to authorize. + */ + @JsonProperty(value = "typeProperties.companyId") + private Object companyId; - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The consumer key for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.consumerKey") + private Object consumerKey; - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The consumer secret for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.consumerSecret") + private SecretBase consumerSecret; - /** {@inheritDoc} */ - @Override - public QuickBooksLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The access token for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; + + /* + * The access token secret for OAuth 1.0 authentication. + */ + @JsonProperty(value = "typeProperties.accessTokenSecret") + private SecretBase accessTokenSecret; + + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with @@ -71,7 +87,7 @@ public QuickBooksLinkedService withAnnotations(List annotations) { * @return the connectionProperties value. */ public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); + return this.connectionProperties; } /** @@ -82,10 +98,7 @@ public Object connectionProperties() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); + this.connectionProperties = connectionProperties; return this; } @@ -95,7 +108,7 @@ public QuickBooksLinkedService withConnectionProperties(Object connectionPropert * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -105,10 +118,7 @@ public Object endpoint() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -118,7 +128,7 @@ public QuickBooksLinkedService withEndpoint(Object endpoint) { * @return the companyId value. */ public Object companyId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().companyId(); + return this.companyId; } /** @@ -128,10 +138,7 @@ public Object companyId() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withCompanyId(Object companyId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCompanyId(companyId); + this.companyId = companyId; return this; } @@ -141,7 +148,7 @@ public QuickBooksLinkedService withCompanyId(Object companyId) { * @return the consumerKey value. */ public Object consumerKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().consumerKey(); + return this.consumerKey; } /** @@ -151,10 +158,7 @@ public Object consumerKey() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withConsumerKey(Object consumerKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConsumerKey(consumerKey); + this.consumerKey = consumerKey; return this; } @@ -164,7 +168,7 @@ public QuickBooksLinkedService withConsumerKey(Object consumerKey) { * @return the consumerSecret value. */ public SecretBase consumerSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().consumerSecret(); + return this.consumerSecret; } /** @@ -174,10 +178,7 @@ public SecretBase consumerSecret() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withConsumerSecret(SecretBase consumerSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConsumerSecret(consumerSecret); + this.consumerSecret = consumerSecret; return this; } @@ -187,7 +188,7 @@ public QuickBooksLinkedService withConsumerSecret(SecretBase consumerSecret) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -197,10 +198,7 @@ public SecretBase accessToken() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -210,7 +208,7 @@ public QuickBooksLinkedService withAccessToken(SecretBase accessToken) { * @return the accessTokenSecret value. */ public SecretBase accessTokenSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessTokenSecret(); + return this.accessTokenSecret; } /** @@ -220,10 +218,7 @@ public SecretBase accessTokenSecret() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withAccessTokenSecret(SecretBase accessTokenSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessTokenSecret(accessTokenSecret); + this.accessTokenSecret = accessTokenSecret; return this; } @@ -234,7 +229,7 @@ public QuickBooksLinkedService withAccessTokenSecret(SecretBase accessTokenSecre * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -245,10 +240,7 @@ public Object useEncryptedEndpoints() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -259,7 +251,7 @@ public QuickBooksLinkedService withUseEncryptedEndpoints(Object useEncryptedEndp * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -270,10 +262,35 @@ public Object encryptedCredential() { * @return the QuickBooksLinkedService object itself. */ public QuickBooksLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new QuickBooksLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickBooksLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickBooksLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickBooksLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public QuickBooksLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -285,13 +302,14 @@ public QuickBooksLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model QuickBooksLinkedService")); - } else { - innerTypeProperties().validate(); + if (consumerSecret() != null) { + consumerSecret().validate(); + } + if (accessToken() != null) { + accessToken().validate(); + } + if (accessTokenSecret() != null) { + accessTokenSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java index bae0c0070d6ae..31cb5c5bd43e8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/QuickBooksObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** QuickBooks server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("QuickBooksObject") +@JsonFlatten @Fluent -public final class QuickBooksObjectDataset extends Dataset { +public class QuickBooksObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(QuickBooksObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the QuickBooksObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public QuickBooksObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public QuickBooksObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the QuickBooksObjectDataset object itself. - */ - public QuickBooksObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public QuickBooksObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java index 5a32db7ab4bdc..94db6bee8a94d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RelationalTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.RelationalTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The relational table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("RelationalTable") +@JsonFlatten @Fluent -public final class RelationalTableDataset extends Dataset { +public class RelationalTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(RelationalTableDataset.class); /* - * Relational table dataset properties. + * The relational table name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private RelationalTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Relational table dataset properties. + * Get the tableName property: The relational table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The relational table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the RelationalTableDataset object itself. */ - private RelationalTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public RelationalTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public RelationalTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The relational table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the RelationalTableDataset object itself. - */ - public RelationalTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RelationalTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public RelationalTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java index 23832d7bccaaa..e867a1a654ec0 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RerunTumblingWindowTrigger.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.RerunTumblingWindowTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -20,39 +20,37 @@ */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("RerunTumblingWindowTrigger") +@JsonFlatten @Fluent -public final class RerunTumblingWindowTrigger extends Trigger { +public class RerunTumblingWindowTrigger extends Trigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(RerunTumblingWindowTrigger.class); /* - * Rerun Trigger properties. + * The parent trigger reference. */ - @JsonProperty(value = "typeProperties", required = true) - private RerunTumblingWindowTriggerTypeProperties innerTypeProperties = - new RerunTumblingWindowTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.parentTrigger", required = true) + private Object parentTrigger; - /** - * Get the innerTypeProperties property: Rerun Trigger properties. - * - * @return the innerTypeProperties value. + /* + * The start time for the time period for which restatement is initiated. + * Only UTC time is currently supported. */ - private RerunTumblingWindowTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.requestedStartTime", required = true) + private OffsetDateTime requestedStartTime; - /** {@inheritDoc} */ - @Override - public RerunTumblingWindowTrigger withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The end time for the time period for which restatement is initiated. + * Only UTC time is currently supported. + */ + @JsonProperty(value = "typeProperties.requestedEndTime", required = true) + private OffsetDateTime requestedEndTime; - /** {@inheritDoc} */ - @Override - public RerunTumblingWindowTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The max number of parallel time windows (ready for execution) for which + * a rerun is triggered. + */ + @JsonProperty(value = "typeProperties.rerunConcurrency", required = true) + private int rerunConcurrency; /** * Get the parentTrigger property: The parent trigger reference. @@ -60,7 +58,7 @@ public RerunTumblingWindowTrigger withAnnotations(List annotations) { * @return the parentTrigger value. */ public Object parentTrigger() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().parentTrigger(); + return this.parentTrigger; } /** @@ -70,10 +68,7 @@ public Object parentTrigger() { * @return the RerunTumblingWindowTrigger object itself. */ public RerunTumblingWindowTrigger withParentTrigger(Object parentTrigger) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withParentTrigger(parentTrigger); + this.parentTrigger = parentTrigger; return this; } @@ -84,7 +79,7 @@ public RerunTumblingWindowTrigger withParentTrigger(Object parentTrigger) { * @return the requestedStartTime value. */ public OffsetDateTime requestedStartTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestedStartTime(); + return this.requestedStartTime; } /** @@ -95,10 +90,7 @@ public OffsetDateTime requestedStartTime() { * @return the RerunTumblingWindowTrigger object itself. */ public RerunTumblingWindowTrigger withRequestedStartTime(OffsetDateTime requestedStartTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRequestedStartTime(requestedStartTime); + this.requestedStartTime = requestedStartTime; return this; } @@ -109,7 +101,7 @@ public RerunTumblingWindowTrigger withRequestedStartTime(OffsetDateTime requeste * @return the requestedEndTime value. */ public OffsetDateTime requestedEndTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestedEndTime(); + return this.requestedEndTime; } /** @@ -120,10 +112,7 @@ public OffsetDateTime requestedEndTime() { * @return the RerunTumblingWindowTrigger object itself. */ public RerunTumblingWindowTrigger withRequestedEndTime(OffsetDateTime requestedEndTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRequestedEndTime(requestedEndTime); + this.requestedEndTime = requestedEndTime; return this; } @@ -134,7 +123,7 @@ public RerunTumblingWindowTrigger withRequestedEndTime(OffsetDateTime requestedE * @return the rerunConcurrency value. */ public int rerunConcurrency() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().rerunConcurrency(); + return this.rerunConcurrency; } /** @@ -145,10 +134,21 @@ public int rerunConcurrency() { * @return the RerunTumblingWindowTrigger object itself. */ public RerunTumblingWindowTrigger withRerunConcurrency(int rerunConcurrency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RerunTumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRerunConcurrency(rerunConcurrency); + this.rerunConcurrency = rerunConcurrency; + return this; + } + + /** {@inheritDoc} */ + @Override + public RerunTumblingWindowTrigger withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public RerunTumblingWindowTrigger withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -160,13 +160,23 @@ public RerunTumblingWindowTrigger withRerunConcurrency(int rerunConcurrency) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (parentTrigger() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property parentTrigger in model RerunTumblingWindowTrigger")); + } + if (requestedStartTime() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property requestedStartTime in model RerunTumblingWindowTrigger")); + } + if (requestedEndTime() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model RerunTumblingWindowTrigger")); - } else { - innerTypeProperties().validate(); + "Missing required property requestedEndTime in model RerunTumblingWindowTrigger")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java index 9b2bd96591242..cc51236157e50 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ResponsysLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,63 @@ /** Responsys linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Responsys") +@JsonFlatten @Fluent -public final class ResponsysLinkedService extends LinkedService { +public class ResponsysLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ResponsysLinkedService.class); /* - * Responsys linked service properties. + * The endpoint of the Responsys server. */ - @JsonProperty(value = "typeProperties", required = true) - private ResponsysLinkedServiceTypeProperties innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; - /** - * Get the innerTypeProperties property: Responsys linked service properties. - * - * @return the innerTypeProperties value. + /* + * The client ID associated with the Responsys application. Type: string + * (or Expression with resultType string). */ - private ResponsysLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The client secret associated with the Responsys application. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public ResponsysLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the endpoint property: The endpoint of the Responsys server. @@ -70,7 +81,7 @@ public ResponsysLinkedService withAnnotations(List annotations) { * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -80,10 +91,7 @@ public Object endpoint() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -94,7 +102,7 @@ public ResponsysLinkedService withEndpoint(Object endpoint) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -105,10 +113,7 @@ public Object clientId() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -119,7 +124,7 @@ public ResponsysLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -130,10 +135,7 @@ public SecretBase clientSecret() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -144,7 +146,7 @@ public ResponsysLinkedService withClientSecret(SecretBase clientSecret) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -155,10 +157,7 @@ public Object useEncryptedEndpoints() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -170,7 +169,7 @@ public ResponsysLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpo * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -182,10 +181,7 @@ public Object useHostVerification() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -196,7 +192,7 @@ public ResponsysLinkedService withUseHostVerification(Object useHostVerification * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -207,10 +203,7 @@ public Object usePeerVerification() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -221,7 +214,7 @@ public ResponsysLinkedService withUsePeerVerification(Object usePeerVerification * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -232,10 +225,35 @@ public Object encryptedCredential() { * @return the ResponsysLinkedService object itself. */ public ResponsysLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ResponsysLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ResponsysLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ResponsysLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ResponsysLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ResponsysLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -247,13 +265,18 @@ public ResponsysLinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (endpoint() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ResponsysLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property endpoint in model ResponsysLinkedService")); + } + if (clientId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property clientId in model ResponsysLinkedService")); + } + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java index 926ef9f23bf79..591600184b067 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ResponsysObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Responsys dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ResponsysObject") +@JsonFlatten @Fluent -public final class ResponsysObjectDataset extends Dataset { +public class ResponsysObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ResponsysObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the ResponsysObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ResponsysObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public ResponsysObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ResponsysObjectDataset object itself. - */ - public ResponsysObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public ResponsysObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java index 718529f1c2c1f..11b2b5e5da3fc 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.RestResourceDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,45 @@ /** A Rest service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("RestResource") +@JsonFlatten @Fluent -public final class RestResourceDataset extends Dataset { +public class RestResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(RestResourceDataset.class); /* - * Properties specific to this dataset type. + * The relative URL to the resource that the RESTful API provides. Type: + * string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private RestResourceDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.relativeUrl") + private Object relativeUrl; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The HTTP method used to call the RESTful API. The default is GET. Type: + * string (or Expression with resultType string). */ - private RestResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.requestMethod") + private Object requestMethod; - /** {@inheritDoc} */ - @Override - public RestResourceDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public RestResourceDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The HTTP request body to the RESTful API if requestMethod is POST. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.requestBody") + private Object requestBody; - /** {@inheritDoc} */ - @Override - public RestResourceDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The additional HTTP headers in the request to the RESTful API. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.additionalHeaders") + private Object additionalHeaders; - /** {@inheritDoc} */ - @Override - public RestResourceDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The pagination rules to compose next page requests. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.paginationRules") + private Object paginationRules; /** * Get the relativeUrl property: The relative URL to the resource that the RESTful API provides. Type: string (or @@ -92,7 +64,7 @@ public RestResourceDataset withFolder(DatasetFolder folder) { * @return the relativeUrl value. */ public Object relativeUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().relativeUrl(); + return this.relativeUrl; } /** @@ -103,10 +75,7 @@ public Object relativeUrl() { * @return the RestResourceDataset object itself. */ public RestResourceDataset withRelativeUrl(Object relativeUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withRelativeUrl(relativeUrl); + this.relativeUrl = relativeUrl; return this; } @@ -117,7 +86,7 @@ public RestResourceDataset withRelativeUrl(Object relativeUrl) { * @return the requestMethod value. */ public Object requestMethod() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestMethod(); + return this.requestMethod; } /** @@ -128,10 +97,7 @@ public Object requestMethod() { * @return the RestResourceDataset object itself. */ public RestResourceDataset withRequestMethod(Object requestMethod) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestMethod(requestMethod); + this.requestMethod = requestMethod; return this; } @@ -142,7 +108,7 @@ public RestResourceDataset withRequestMethod(Object requestMethod) { * @return the requestBody value. */ public Object requestBody() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().requestBody(); + return this.requestBody; } /** @@ -153,10 +119,7 @@ public Object requestBody() { * @return the RestResourceDataset object itself. */ public RestResourceDataset withRequestBody(Object requestBody) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withRequestBody(requestBody); + this.requestBody = requestBody; return this; } @@ -167,7 +130,7 @@ public RestResourceDataset withRequestBody(Object requestBody) { * @return the additionalHeaders value. */ public Object additionalHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().additionalHeaders(); + return this.additionalHeaders; } /** @@ -178,10 +141,7 @@ public Object additionalHeaders() { * @return the RestResourceDataset object itself. */ public RestResourceDataset withAdditionalHeaders(Object additionalHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withAdditionalHeaders(additionalHeaders); + this.additionalHeaders = additionalHeaders; return this; } @@ -192,7 +152,7 @@ public RestResourceDataset withAdditionalHeaders(Object additionalHeaders) { * @return the paginationRules value. */ public Object paginationRules() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().paginationRules(); + return this.paginationRules; } /** @@ -203,10 +163,56 @@ public Object paginationRules() { * @return the RestResourceDataset object itself. */ public RestResourceDataset withPaginationRules(Object paginationRules) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPaginationRules(paginationRules); + this.paginationRules = paginationRules; + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestResourceDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -218,8 +224,5 @@ public RestResourceDataset withPaginationRules(Object paginationRules) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java index be35029cae26b..c77e13660db39 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/RestServiceLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.RestServiceLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,99 @@ /** Rest Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("RestService") +@JsonFlatten @Fluent -public final class RestServiceLinkedService extends LinkedService { +public class RestServiceLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(RestServiceLinkedService.class); /* - * Rest Service linked service properties. + * The base URL of the REST service. */ - @JsonProperty(value = "typeProperties", required = true) - private RestServiceLinkedServiceTypeProperties innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: Rest Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * Whether to validate server side SSL certificate when connecting to the + * endpoint.The default value is true. Type: boolean (or Expression with + * resultType boolean). */ - private RestServiceLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.enableServerCertificateValidation") + private Object enableServerCertificateValidation; - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Type of authentication used to connect to the REST service. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private RestServiceAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The user name used in Basic authentication type. + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The password used in Basic authentication type. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public RestServiceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The additional HTTP headers in the request to RESTful API used for + * authorization. Type: object (or Expression with resultType object). + */ + @JsonProperty(value = "typeProperties.authHeaders") + private Object authHeaders; + + /* + * The application's client ID used in AadServicePrincipal authentication + * type. + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /* + * The application's key used in AadServicePrincipal authentication type. + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey") + private SecretBase servicePrincipalKey; + + /* + * The tenant information (domain name or tenant ID) used in + * AadServicePrincipal authentication type under which your application + * resides. + */ + @JsonProperty(value = "typeProperties.tenant") + private Object tenant; + + /* + * Indicates the azure cloud type of the service principle auth. Allowed + * values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. + * Default value is the data factory regions’ cloud type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.azureCloudType") + private Object azureCloudType; + + /* + * The resource you are requesting authorization to use. + */ + @JsonProperty(value = "typeProperties.aadResourceId") + private Object aadResourceId; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The credential reference containing authentication information. + */ + @JsonProperty(value = "typeProperties.credential") + private CredentialReference credential; /** * Get the url property: The base URL of the REST service. @@ -70,7 +117,7 @@ public RestServiceLinkedService withAnnotations(List annotations) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -80,10 +127,7 @@ public Object url() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -94,9 +138,7 @@ public RestServiceLinkedService withUrl(Object url) { * @return the enableServerCertificateValidation value. */ public Object enableServerCertificateValidation() { - return this.innerTypeProperties() == null - ? null - : this.innerTypeProperties().enableServerCertificateValidation(); + return this.enableServerCertificateValidation; } /** @@ -107,10 +149,7 @@ public Object enableServerCertificateValidation() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableServerCertificateValidation(enableServerCertificateValidation); + this.enableServerCertificateValidation = enableServerCertificateValidation; return this; } @@ -120,7 +159,7 @@ public RestServiceLinkedService withEnableServerCertificateValidation(Object ena * @return the authenticationType value. */ public RestServiceAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -130,10 +169,7 @@ public RestServiceAuthenticationType authenticationType() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withAuthenticationType(RestServiceAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -143,7 +179,7 @@ public RestServiceLinkedService withAuthenticationType(RestServiceAuthentication * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -153,10 +189,7 @@ public Object username() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -166,7 +199,7 @@ public RestServiceLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -176,10 +209,7 @@ public SecretBase password() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -190,7 +220,7 @@ public RestServiceLinkedService withPassword(SecretBase password) { * @return the authHeaders value. */ public Object authHeaders() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authHeaders(); + return this.authHeaders; } /** @@ -201,10 +231,7 @@ public Object authHeaders() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withAuthHeaders(Object authHeaders) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthHeaders(authHeaders); + this.authHeaders = authHeaders; return this; } @@ -214,7 +241,7 @@ public RestServiceLinkedService withAuthHeaders(Object authHeaders) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -224,10 +251,7 @@ public Object servicePrincipalId() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -237,7 +261,7 @@ public RestServiceLinkedService withServicePrincipalId(Object servicePrincipalId * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -247,10 +271,7 @@ public SecretBase servicePrincipalKey() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -261,7 +282,7 @@ public RestServiceLinkedService withServicePrincipalKey(SecretBase servicePrinci * @return the tenant value. */ public Object tenant() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenant(); + return this.tenant; } /** @@ -272,10 +293,7 @@ public Object tenant() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withTenant(Object tenant) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenant(tenant); + this.tenant = tenant; return this; } @@ -287,7 +305,7 @@ public RestServiceLinkedService withTenant(Object tenant) { * @return the azureCloudType value. */ public Object azureCloudType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().azureCloudType(); + return this.azureCloudType; } /** @@ -299,10 +317,7 @@ public Object azureCloudType() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withAzureCloudType(Object azureCloudType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAzureCloudType(azureCloudType); + this.azureCloudType = azureCloudType; return this; } @@ -312,7 +327,7 @@ public RestServiceLinkedService withAzureCloudType(Object azureCloudType) { * @return the aadResourceId value. */ public Object aadResourceId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().aadResourceId(); + return this.aadResourceId; } /** @@ -322,10 +337,7 @@ public Object aadResourceId() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withAadResourceId(Object aadResourceId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAadResourceId(aadResourceId); + this.aadResourceId = aadResourceId; return this; } @@ -336,7 +348,7 @@ public RestServiceLinkedService withAadResourceId(Object aadResourceId) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -347,10 +359,7 @@ public Object encryptedCredential() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -360,7 +369,7 @@ public RestServiceLinkedService withEncryptedCredential(Object encryptedCredenti * @return the credential value. */ public CredentialReference credential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().credential(); + return this.credential; } /** @@ -370,10 +379,35 @@ public CredentialReference credential() { * @return the RestServiceLinkedService object itself. */ public RestServiceLinkedService withCredential(CredentialReference credential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new RestServiceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withCredential(credential); + this.credential = credential; + return this; + } + + /** {@inheritDoc} */ + @Override + public RestServiceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestServiceLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestServiceLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public RestServiceLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -385,13 +419,25 @@ public RestServiceLinkedService withCredential(CredentialReference credential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property url in model RestServiceLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model RestServiceLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model RestServiceLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (servicePrincipalKey() != null) { + servicePrincipalKey().validate(); + } + if (credential() != null) { + credential().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java index 3c0aeee885c3d..af2fd475ded37 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,54 @@ /** Linked service for Salesforce. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Salesforce") +@JsonFlatten @Fluent -public final class SalesforceLinkedService extends LinkedService { +public class SalesforceLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceLinkedService.class); /* - * Salesforce linked service properties. + * The URL of Salesforce instance. Default is + * 'https://login.salesforce.com'. To copy data from sandbox, specify + * 'https://test.salesforce.com'. To copy data from custom domain, specify, + * for example, 'https://[domain].my.salesforce.com'. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SalesforceLinkedServiceTypeProperties innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.environmentUrl") + private Object environmentUrl; - /** - * Get the innerTypeProperties property: Salesforce linked service properties. - * - * @return the innerTypeProperties value. + /* + * The username for Basic authentication of the Salesforce instance. Type: + * string (or Expression with resultType string). */ - private SalesforceLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The password for Basic authentication of the Salesforce instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The security token is optional to remotely access Salesforce instance. + */ + @JsonProperty(value = "typeProperties.securityToken") + private SecretBase securityToken; - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The Salesforce API version used in ADF. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.apiVersion") + private Object apiVersion; - /** {@inheritDoc} */ - @Override - public SalesforceLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the environmentUrl property: The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To @@ -72,7 +74,7 @@ public SalesforceLinkedService withAnnotations(List annotations) { * @return the environmentUrl value. */ public Object environmentUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().environmentUrl(); + return this.environmentUrl; } /** @@ -84,10 +86,7 @@ public Object environmentUrl() { * @return the SalesforceLinkedService object itself. */ public SalesforceLinkedService withEnvironmentUrl(Object environmentUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnvironmentUrl(environmentUrl); + this.environmentUrl = environmentUrl; return this; } @@ -98,7 +97,7 @@ public SalesforceLinkedService withEnvironmentUrl(Object environmentUrl) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -109,10 +108,7 @@ public Object username() { * @return the SalesforceLinkedService object itself. */ public SalesforceLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -122,7 +118,7 @@ public SalesforceLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -132,10 +128,7 @@ public SecretBase password() { * @return the SalesforceLinkedService object itself. */ public SalesforceLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -145,7 +138,7 @@ public SalesforceLinkedService withPassword(SecretBase password) { * @return the securityToken value. */ public SecretBase securityToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().securityToken(); + return this.securityToken; } /** @@ -155,10 +148,7 @@ public SecretBase securityToken() { * @return the SalesforceLinkedService object itself. */ public SalesforceLinkedService withSecurityToken(SecretBase securityToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecurityToken(securityToken); + this.securityToken = securityToken; return this; } @@ -169,7 +159,7 @@ public SalesforceLinkedService withSecurityToken(SecretBase securityToken) { * @return the apiVersion value. */ public Object apiVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiVersion(); + return this.apiVersion; } /** @@ -180,10 +170,7 @@ public Object apiVersion() { * @return the SalesforceLinkedService object itself. */ public SalesforceLinkedService withApiVersion(Object apiVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiVersion(apiVersion); + this.apiVersion = apiVersion; return this; } @@ -194,7 +181,7 @@ public SalesforceLinkedService withApiVersion(Object apiVersion) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -205,10 +192,35 @@ public Object encryptedCredential() { * @return the SalesforceLinkedService object itself. */ public SalesforceLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -220,13 +232,11 @@ public SalesforceLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SalesforceLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); + } + if (securityToken() != null) { + securityToken().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java index 580ad8488188c..649a9c4da5658 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceMarketingCloudLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,64 @@ /** Salesforce Marketing Cloud linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SalesforceMarketingCloud") +@JsonFlatten @Fluent -public final class SalesforceMarketingCloudLinkedService extends LinkedService { +public class SalesforceMarketingCloudLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceMarketingCloudLinkedService.class); /* - * Salesforce Marketing Cloud linked service properties. + * Properties used to connect to Salesforce Marketing Cloud. It is mutually + * exclusive with any other properties in the linked service. Type: object. */ - @JsonProperty(value = "typeProperties", required = true) - private SalesforceMarketingCloudLinkedServiceTypeProperties innerTypeProperties = - new SalesforceMarketingCloudLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionProperties") + private Object connectionProperties; - /** - * Get the innerTypeProperties property: Salesforce Marketing Cloud linked service properties. - * - * @return the innerTypeProperties value. + /* + * The client ID associated with the Salesforce Marketing Cloud + * application. Type: string (or Expression with resultType string). */ - private SalesforceMarketingCloudLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The client secret associated with the Salesforce Marketing Cloud + * application. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public SalesforceMarketingCloudLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionProperties property: Properties used to connect to Salesforce Marketing Cloud. It is mutually @@ -72,7 +83,7 @@ public SalesforceMarketingCloudLinkedService withAnnotations(List annota * @return the connectionProperties value. */ public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); + return this.connectionProperties; } /** @@ -83,10 +94,7 @@ public Object connectionProperties() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); + this.connectionProperties = connectionProperties; return this; } @@ -97,7 +105,7 @@ public SalesforceMarketingCloudLinkedService withConnectionProperties(Object con * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -108,10 +116,7 @@ public Object clientId() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -122,7 +127,7 @@ public SalesforceMarketingCloudLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -133,10 +138,7 @@ public SecretBase clientSecret() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -147,7 +149,7 @@ public SalesforceMarketingCloudLinkedService withClientSecret(SecretBase clientS * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -158,10 +160,7 @@ public Object useEncryptedEndpoints() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -173,7 +172,7 @@ public SalesforceMarketingCloudLinkedService withUseEncryptedEndpoints(Object us * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -185,10 +184,7 @@ public Object useHostVerification() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -199,7 +195,7 @@ public SalesforceMarketingCloudLinkedService withUseHostVerification(Object useH * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -210,10 +206,7 @@ public Object usePeerVerification() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -224,7 +217,7 @@ public SalesforceMarketingCloudLinkedService withUsePeerVerification(Object useP * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -235,10 +228,35 @@ public Object encryptedCredential() { * @return the SalesforceMarketingCloudLinkedService object itself. */ public SalesforceMarketingCloudLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceMarketingCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceMarketingCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceMarketingCloudLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceMarketingCloudLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceMarketingCloudLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -250,14 +268,8 @@ public SalesforceMarketingCloudLinkedService withEncryptedCredential(Object encr @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model" - + " SalesforceMarketingCloudLinkedService")); - } else { - innerTypeProperties().validate(); + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java index cf291cfb362b3..753d4bb9fa964 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceMarketingCloudObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Salesforce Marketing Cloud dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SalesforceMarketingCloudObject") +@JsonFlatten @Fluent -public final class SalesforceMarketingCloudObjectDataset extends Dataset { +public class SalesforceMarketingCloudObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceMarketingCloudObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the SalesforceMarketingCloudObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SalesforceMarketingCloudObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public SalesforceMarketingCloudObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SalesforceMarketingCloudObjectDataset object itself. - */ - public SalesforceMarketingCloudObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public SalesforceMarketingCloudObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java index 0164f9e62a52b..9afbac4c99bb9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceObjectDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The Salesforce object dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SalesforceObject") +@JsonFlatten @Fluent -public final class SalesforceObjectDataset extends Dataset { +public class SalesforceObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceObjectDataset.class); /* - * Salesforce object dataset properties. + * The Salesforce object API name. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private SalesforceObjectDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.objectApiName") + private Object objectApiName; /** - * Get the innerTypeProperties property: Salesforce object dataset properties. + * Get the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType + * string). + * + * @return the objectApiName value. + */ + public Object objectApiName() { + return this.objectApiName; + } + + /** + * Set the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param objectApiName the objectApiName value to set. + * @return the SalesforceObjectDataset object itself. */ - private SalesforceObjectDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SalesforceObjectDataset withObjectApiName(Object objectApiName) { + this.objectApiName = objectApiName; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public SalesforceObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().objectApiName(); - } - - /** - * Set the objectApiName property: The Salesforce object API name. Type: string (or Expression with resultType - * string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceObjectDataset object itself. - */ - public SalesforceObjectDataset withObjectApiName(Object objectApiName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceObjectDatasetTypeProperties(); - } - this.innerTypeProperties().withObjectApiName(objectApiName); - return this; - } - /** * Validates the instance. * @@ -118,8 +108,5 @@ public SalesforceObjectDataset withObjectApiName(Object objectApiName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java index 0623e35d89f4e..06a5e467312fa 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,61 @@ /** Linked service for Salesforce Service Cloud. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SalesforceServiceCloud") +@JsonFlatten @Fluent -public final class SalesforceServiceCloudLinkedService extends LinkedService { +public class SalesforceServiceCloudLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceServiceCloudLinkedService.class); /* - * Salesforce Service Cloud linked service properties. + * The URL of Salesforce Service Cloud instance. Default is + * 'https://login.salesforce.com'. To copy data from sandbox, specify + * 'https://test.salesforce.com'. To copy data from custom domain, specify, + * for example, 'https://[domain].my.salesforce.com'. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SalesforceServiceCloudLinkedServiceTypeProperties innerTypeProperties = - new SalesforceServiceCloudLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.environmentUrl") + private Object environmentUrl; - /** - * Get the innerTypeProperties property: Salesforce Service Cloud linked service properties. - * - * @return the innerTypeProperties value. + /* + * The username for Basic authentication of the Salesforce instance. Type: + * string (or Expression with resultType string). */ - private SalesforceServiceCloudLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The password for Basic authentication of the Salesforce instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The security token is optional to remotely access Salesforce instance. + */ + @JsonProperty(value = "typeProperties.securityToken") + private SecretBase securityToken; - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The Salesforce API version used in ADF. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.apiVersion") + private Object apiVersion; - /** {@inheritDoc} */ - @Override - public SalesforceServiceCloudLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Extended properties appended to the connection string. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.extendedProperties") + private Object extendedProperties; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the environmentUrl property: The URL of Salesforce Service Cloud instance. Default is @@ -74,7 +82,7 @@ public SalesforceServiceCloudLinkedService withAnnotations(List annotati * @return the environmentUrl value. */ public Object environmentUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().environmentUrl(); + return this.environmentUrl; } /** @@ -87,10 +95,7 @@ public Object environmentUrl() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withEnvironmentUrl(Object environmentUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnvironmentUrl(environmentUrl); + this.environmentUrl = environmentUrl; return this; } @@ -101,7 +106,7 @@ public SalesforceServiceCloudLinkedService withEnvironmentUrl(Object environment * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -112,10 +117,7 @@ public Object username() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -125,7 +127,7 @@ public SalesforceServiceCloudLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -135,10 +137,7 @@ public SecretBase password() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -148,7 +147,7 @@ public SalesforceServiceCloudLinkedService withPassword(SecretBase password) { * @return the securityToken value. */ public SecretBase securityToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().securityToken(); + return this.securityToken; } /** @@ -158,10 +157,7 @@ public SecretBase securityToken() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withSecurityToken(SecretBase securityToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSecurityToken(securityToken); + this.securityToken = securityToken; return this; } @@ -172,7 +168,7 @@ public SalesforceServiceCloudLinkedService withSecurityToken(SecretBase security * @return the apiVersion value. */ public Object apiVersion() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().apiVersion(); + return this.apiVersion; } /** @@ -183,10 +179,7 @@ public Object apiVersion() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withApiVersion(Object apiVersion) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withApiVersion(apiVersion); + this.apiVersion = apiVersion; return this; } @@ -197,7 +190,7 @@ public SalesforceServiceCloudLinkedService withApiVersion(Object apiVersion) { * @return the extendedProperties value. */ public Object extendedProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().extendedProperties(); + return this.extendedProperties; } /** @@ -208,10 +201,7 @@ public Object extendedProperties() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withExtendedProperties(Object extendedProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withExtendedProperties(extendedProperties); + this.extendedProperties = extendedProperties; return this; } @@ -222,7 +212,7 @@ public SalesforceServiceCloudLinkedService withExtendedProperties(Object extende * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -233,10 +223,35 @@ public Object encryptedCredential() { * @return the SalesforceServiceCloudLinkedService object itself. */ public SalesforceServiceCloudLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceServiceCloudLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceServiceCloudLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceServiceCloudLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SalesforceServiceCloudLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -248,13 +263,11 @@ public SalesforceServiceCloudLinkedService withEncryptedCredential(Object encryp @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SalesforceServiceCloudLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); + } + if (securityToken() != null) { + securityToken().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java index 154ec6d5bc5b0..a674e958e6e57 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SalesforceServiceCloudObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SalesforceServiceCloudObjectDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The Salesforce Service Cloud object dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SalesforceServiceCloudObject") +@JsonFlatten @Fluent -public final class SalesforceServiceCloudObjectDataset extends Dataset { +public class SalesforceServiceCloudObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SalesforceServiceCloudObjectDataset.class); /* - * Salesforce Service Cloud object dataset properties. + * The Salesforce Service Cloud object API name. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private SalesforceServiceCloudObjectDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.objectApiName") + private Object objectApiName; /** - * Get the innerTypeProperties property: Salesforce Service Cloud object dataset properties. + * Get the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with + * resultType string). + * + * @return the objectApiName value. + */ + public Object objectApiName() { + return this.objectApiName; + } + + /** + * Set the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @param objectApiName the objectApiName value to set. + * @return the SalesforceServiceCloudObjectDataset object itself. */ - private SalesforceServiceCloudObjectDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SalesforceServiceCloudObjectDataset withObjectApiName(Object objectApiName) { + this.objectApiName = objectApiName; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public SalesforceServiceCloudObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @return the objectApiName value. - */ - public Object objectApiName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().objectApiName(); - } - - /** - * Set the objectApiName property: The Salesforce Service Cloud object API name. Type: string (or Expression with - * resultType string). - * - * @param objectApiName the objectApiName value to set. - * @return the SalesforceServiceCloudObjectDataset object itself. - */ - public SalesforceServiceCloudObjectDataset withObjectApiName(Object objectApiName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SalesforceServiceCloudObjectDatasetTypeProperties(); - } - this.innerTypeProperties().withObjectApiName(objectApiName); - return this; - } - /** * Validates the instance. * @@ -118,8 +108,5 @@ public SalesforceServiceCloudObjectDataset withObjectApiName(Object objectApiNam @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java index 8b42a1f9f24b1..eb87d6d347e02 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapBWLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapBWLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,54 @@ /** SAP Business Warehouse Linked Service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapBW") +@JsonFlatten @Fluent -public final class SapBWLinkedService extends LinkedService { +public class SapBWLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapBWLinkedService.class); /* - * Properties specific to this linked service type. + * Host name of the SAP BW instance. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapBWLinkedServiceTypeProperties innerTypeProperties = new SapBWLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. + /* + * System number of the BW system. (Usually a two-digit decimal number + * represented as a string.) Type: string (or Expression with resultType + * string). */ - private SapBWLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.systemNumber", required = true) + private Object systemNumber; - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Client ID of the client on the BW system. (Usually a three-digit decimal + * number represented as a string) Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Username to access the SAP BW server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password to access the SAP BW server. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SapBWLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the server property: Host name of the SAP BW instance. Type: string (or Expression with resultType string). @@ -70,7 +72,7 @@ public SapBWLinkedService withAnnotations(List annotations) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -80,10 +82,7 @@ public Object server() { * @return the SapBWLinkedService object itself. */ public SapBWLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -94,7 +93,7 @@ public SapBWLinkedService withServer(Object server) { * @return the systemNumber value. */ public Object systemNumber() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemNumber(); + return this.systemNumber; } /** @@ -105,10 +104,7 @@ public Object systemNumber() { * @return the SapBWLinkedService object itself. */ public SapBWLinkedService withSystemNumber(Object systemNumber) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemNumber(systemNumber); + this.systemNumber = systemNumber; return this; } @@ -119,7 +115,7 @@ public SapBWLinkedService withSystemNumber(Object systemNumber) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -130,10 +126,7 @@ public Object clientId() { * @return the SapBWLinkedService object itself. */ public SapBWLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -144,7 +137,7 @@ public SapBWLinkedService withClientId(Object clientId) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -155,10 +148,7 @@ public Object username() { * @return the SapBWLinkedService object itself. */ public SapBWLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -168,7 +158,7 @@ public SapBWLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -178,10 +168,7 @@ public SecretBase password() { * @return the SapBWLinkedService object itself. */ public SapBWLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -192,7 +179,7 @@ public SapBWLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -203,10 +190,35 @@ public Object encryptedCredential() { * @return the SapBWLinkedService object itself. */ public SapBWLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapBWLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapBWLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapBWLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapBWLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapBWLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -218,13 +230,23 @@ public SapBWLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (server() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property server in model SapBWLinkedService")); + } + if (systemNumber() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapBWLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property systemNumber in model SapBWLinkedService")); + } + if (clientId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property clientId in model SapBWLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java index 9bb0e489675b6..a4d29d8987c15 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,40 @@ /** Linked service for SAP Cloud for Customer. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapCloudForCustomer") +@JsonFlatten @Fluent -public final class SapCloudForCustomerLinkedService extends LinkedService { +public class SapCloudForCustomerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapCloudForCustomerLinkedService.class); /* - * SAP Cloud for Customer linked service properties. + * The URL of SAP Cloud for Customer OData API. For example, + * '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string + * (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapCloudForCustomerLinkedServiceTypeProperties innerTypeProperties = - new SapCloudForCustomerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** - * Get the innerTypeProperties property: SAP Cloud for Customer linked service properties. - * - * @return the innerTypeProperties value. + /* + * The username for Basic authentication. Type: string (or Expression with + * resultType string). */ - private SapCloudForCustomerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SapCloudForCustomerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Either + * encryptedCredential or username/password must be provided. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the url property: The URL of SAP Cloud for Customer OData API. For example, @@ -72,7 +59,7 @@ public SapCloudForCustomerLinkedService withAnnotations(List annotations * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -83,10 +70,7 @@ public Object url() { * @return the SapCloudForCustomerLinkedService object itself. */ public SapCloudForCustomerLinkedService withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -97,7 +81,7 @@ public SapCloudForCustomerLinkedService withUrl(Object url) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -108,10 +92,7 @@ public Object username() { * @return the SapCloudForCustomerLinkedService object itself. */ public SapCloudForCustomerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -121,7 +102,7 @@ public SapCloudForCustomerLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -131,10 +112,7 @@ public SecretBase password() { * @return the SapCloudForCustomerLinkedService object itself. */ public SapCloudForCustomerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -146,7 +124,7 @@ public SapCloudForCustomerLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -158,10 +136,35 @@ public Object encryptedCredential() { * @return the SapCloudForCustomerLinkedService object itself. */ public SapCloudForCustomerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapCloudForCustomerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapCloudForCustomerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapCloudForCustomerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapCloudForCustomerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -173,13 +176,14 @@ public SapCloudForCustomerLinkedService withEncryptedCredential(Object encrypted @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapCloudForCustomerLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property url in model SapCloudForCustomerLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java index 8aaa696307828..20f9ff0494fb8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapCloudForCustomerResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapCloudForCustomerResourceDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,24 +17,38 @@ /** The path of the SAP Cloud for Customer OData entity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapCloudForCustomerResource") +@JsonFlatten @Fluent -public final class SapCloudForCustomerResourceDataset extends Dataset { +public class SapCloudForCustomerResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapCloudForCustomerResourceDataset.class); /* - * SAP Cloud For Customer OData resource dataset properties. + * The path of the SAP Cloud for Customer OData entity. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapCloudForCustomerResourceDatasetTypeProperties innerTypeProperties = - new SapCloudForCustomerResourceDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.path", required = true) + private Object path; /** - * Get the innerTypeProperties property: SAP Cloud For Customer OData resource dataset properties. + * Get the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with + * resultType string). + * + * @return the path value. + */ + public Object path() { + return this.path; + } + + /** + * Set the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with + * resultType string). * - * @return the innerTypeProperties value. + * @param path the path value to set. + * @return the SapCloudForCustomerResourceDataset object itself. */ - private SapCloudForCustomerResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SapCloudForCustomerResourceDataset withPath(Object path) { + this.path = path; + return this; } /** {@inheritDoc} */ @@ -86,31 +100,6 @@ public SapCloudForCustomerResourceDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with - * resultType string). - * - * @param path the path value to set. - * @return the SapCloudForCustomerResourceDataset object itself. - */ - public SapCloudForCustomerResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapCloudForCustomerResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - /** * Validates the instance. * @@ -119,13 +108,11 @@ public SapCloudForCustomerResourceDataset withPath(Object path) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (path() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapCloudForCustomerResourceDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property path in model SapCloudForCustomerResourceDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java index 59b8ceb3cf277..520a8781c0773 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,40 @@ /** Linked service for SAP ERP Central Component(SAP ECC). */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapEcc") +@JsonFlatten @Fluent -public final class SapEccLinkedService extends LinkedService { +public class SapEccLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapEccLinkedService.class); /* - * SAP ECC linked service properties. + * The URL of SAP ECC OData API. For example, + * '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string + * (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapEccLinkedServiceTypeProperties innerTypeProperties = new SapEccLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.url", required = true) + private String url; - /** - * Get the innerTypeProperties property: SAP ECC linked service properties. - * - * @return the innerTypeProperties value. + /* + * The username for Basic authentication. Type: string (or Expression with + * resultType string). */ - private SapEccLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.username") + private String username; - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SapEccLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Either + * encryptedCredential or username/password must be provided. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private String encryptedCredential; /** * Get the url property: The URL of SAP ECC OData API. For example, @@ -71,7 +59,7 @@ public SapEccLinkedService withAnnotations(List annotations) { * @return the url value. */ public String url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -82,10 +70,7 @@ public String url() { * @return the SapEccLinkedService object itself. */ public SapEccLinkedService withUrl(String url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -96,7 +81,7 @@ public SapEccLinkedService withUrl(String url) { * @return the username value. */ public String username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -107,10 +92,7 @@ public String username() { * @return the SapEccLinkedService object itself. */ public SapEccLinkedService withUsername(String username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -120,7 +102,7 @@ public SapEccLinkedService withUsername(String username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -130,10 +112,7 @@ public SecretBase password() { * @return the SapEccLinkedService object itself. */ public SapEccLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -145,7 +124,7 @@ public SapEccLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public String encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -157,10 +136,35 @@ public String encryptedCredential() { * @return the SapEccLinkedService object itself. */ public SapEccLinkedService withEncryptedCredential(String encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapEccLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapEccLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapEccLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapEccLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -172,13 +176,13 @@ public SapEccLinkedService withEncryptedCredential(String encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (url() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapEccLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property url in model SapEccLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java index c0ea5d8c6167d..ebd2fd80dd552 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapEccResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapEccResourceDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The path of the SAP ECC OData entity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapEccResource") +@JsonFlatten @Fluent -public final class SapEccResourceDataset extends Dataset { +public class SapEccResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapEccResourceDataset.class); /* - * SAP ECC OData resource dataset properties. + * The path of the SAP ECC OData entity. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapEccResourceDatasetTypeProperties innerTypeProperties = new SapEccResourceDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.path", required = true) + private Object path; /** - * Get the innerTypeProperties property: SAP ECC OData resource dataset properties. + * Get the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). + * + * @return the path value. + */ + public Object path() { + return this.path; + } + + /** + * Set the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param path the path value to set. + * @return the SapEccResourceDataset object itself. */ - private SapEccResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SapEccResourceDataset withPath(Object path) { + this.path = path; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public SapEccResourceDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - * - * @param path the path value to set. - * @return the SapEccResourceDataset object itself. - */ - public SapEccResourceDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapEccResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - /** * Validates the instance. * @@ -116,13 +106,10 @@ public SapEccResourceDataset withPath(Object path) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (path() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapEccResourceDataset")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property path in model SapEccResourceDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java index 9c643459abaf7..679a1152f9fb3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaLinkedServiceProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,51 @@ /** SAP HANA Linked Service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapHana") +@JsonFlatten @Fluent -public final class SapHanaLinkedService extends LinkedService { +public class SapHanaLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapHanaLinkedService.class); /* - * Properties specific to this linked service type. + * SAP HANA ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private SapHanaLinkedServiceProperties innerTypeProperties = new SapHanaLinkedServiceProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. + /* + * Host name of the SAP HANA server. Type: string (or Expression with + * resultType string). */ - private SapHanaLinkedServiceProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.server") + private Object server; - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The authentication type to be used to connect to the SAP HANA server. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private SapHanaAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Username to access the SAP HANA server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password to access the SAP HANA server. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SapHanaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or @@ -71,7 +70,7 @@ public SapHanaLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +81,7 @@ public Object connectionString() { * @return the SapHanaLinkedService object itself. */ public SapHanaLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +91,7 @@ public SapHanaLinkedService withConnectionString(Object connectionString) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -105,10 +101,7 @@ public Object server() { * @return the SapHanaLinkedService object itself. */ public SapHanaLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -118,7 +111,7 @@ public SapHanaLinkedService withServer(Object server) { * @return the authenticationType value. */ public SapHanaAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -128,10 +121,7 @@ public SapHanaAuthenticationType authenticationType() { * @return the SapHanaLinkedService object itself. */ public SapHanaLinkedService withAuthenticationType(SapHanaAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -142,7 +132,7 @@ public SapHanaLinkedService withAuthenticationType(SapHanaAuthenticationType aut * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -153,10 +143,7 @@ public Object username() { * @return the SapHanaLinkedService object itself. */ public SapHanaLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -166,7 +153,7 @@ public SapHanaLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -176,10 +163,7 @@ public SecretBase password() { * @return the SapHanaLinkedService object itself. */ public SapHanaLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -190,7 +174,7 @@ public SapHanaLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -201,10 +185,35 @@ public Object encryptedCredential() { * @return the SapHanaLinkedService object itself. */ public SapHanaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaLinkedServiceProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapHanaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapHanaLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapHanaLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapHanaLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -216,13 +225,8 @@ public SapHanaLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapHanaLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java index b89433abecc7c..7268d2dd50e12 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapHanaTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapHanaTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,65 @@ /** SAP HANA Table properties. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapHanaTable") +@JsonFlatten @Fluent -public final class SapHanaTableDataset extends Dataset { +public class SapHanaTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapHanaTableDataset.class); /* - * SAP HANA Table properties. + * The schema name of SAP HANA. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private SapHanaTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; + + /* + * The table name of SAP HANA. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the schemaTypePropertiesSchema property: The schema name of SAP HANA. Type: string (or Expression with + * resultType string). + * + * @return the schemaTypePropertiesSchema value. + */ + public Object schemaTypePropertiesSchema() { + return this.schemaTypePropertiesSchema; + } + + /** + * Set the schemaTypePropertiesSchema property: The schema name of SAP HANA. Type: string (or Expression with + * resultType string). + * + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. + * @return the SapHanaTableDataset object itself. + */ + public SapHanaTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } /** - * Get the innerTypeProperties property: SAP HANA Table properties. + * Get the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @return the table value. */ - private SapHanaTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Object table() { + return this.table; + } + + /** + * Set the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). + * + * @param table the table value to set. + * @return the SapHanaTableDataset object itself. + */ + public SapHanaTableDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,52 +127,6 @@ public SapHanaTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param schema the schema value to set. - * @return the SapHanaTableDataset object itself. - */ - public SapHanaTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of SAP HANA. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the SapHanaTableDataset object itself. - */ - public SapHanaTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapHanaTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -139,8 +135,5 @@ public SapHanaTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java index 84786ec59cf27..12b7be36b97f4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,54 +17,91 @@ /** SAP Business Warehouse Open Hub Destination Linked Service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapOpenHub") +@JsonFlatten @Fluent -public final class SapOpenHubLinkedService extends LinkedService { +public class SapOpenHubLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapOpenHubLinkedService.class); /* - * Properties specific to SAP Business Warehouse Open Hub Destination - * linked service type. + * Host name of the SAP BW instance where the open hub destination is + * located. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapOpenHubLinkedServiceTypeProperties innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.server") + private Object server; - /** - * Get the innerTypeProperties property: Properties specific to SAP Business Warehouse Open Hub Destination linked - * service type. - * - * @return the innerTypeProperties value. + /* + * System number of the BW system where the open hub destination is + * located. (Usually a two-digit decimal number represented as a string.) + * Type: string (or Expression with resultType string). */ - private SapOpenHubLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.systemNumber") + private Object systemNumber; - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Client ID of the client on the BW system where the open hub destination + * is located. (Usually a three-digit decimal number represented as a + * string) Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Language of the BW system where the open hub destination is located. The + * default value is EN. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.language") + private Object language; - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * SystemID of the SAP system where the table is located. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.systemId") + private Object systemId; - /** {@inheritDoc} */ - @Override - public SapOpenHubLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Username to access the SAP BW server where the open hub destination is + * located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; + + /* + * Password to access the SAP BW server where the open hub destination is + * located. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The hostname of the SAP Message Server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.messageServer") + private Object messageServer; + + /* + * The service name or port number of the Message Server. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.messageServerService") + private Object messageServerService; + + /* + * The Logon Group for the SAP System. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.logonGroup") + private Object logonGroup; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the server property: Host name of the SAP BW instance where the open hub destination is located. Type: string @@ -73,7 +110,7 @@ public SapOpenHubLinkedService withAnnotations(List annotations) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -84,10 +121,7 @@ public Object server() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -98,7 +132,7 @@ public SapOpenHubLinkedService withServer(Object server) { * @return the systemNumber value. */ public Object systemNumber() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemNumber(); + return this.systemNumber; } /** @@ -109,10 +143,7 @@ public Object systemNumber() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withSystemNumber(Object systemNumber) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemNumber(systemNumber); + this.systemNumber = systemNumber; return this; } @@ -124,7 +155,7 @@ public SapOpenHubLinkedService withSystemNumber(Object systemNumber) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -136,10 +167,7 @@ public Object clientId() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -150,7 +178,7 @@ public SapOpenHubLinkedService withClientId(Object clientId) { * @return the language value. */ public Object language() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().language(); + return this.language; } /** @@ -161,10 +189,7 @@ public Object language() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withLanguage(Object language) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLanguage(language); + this.language = language; return this; } @@ -175,7 +200,7 @@ public SapOpenHubLinkedService withLanguage(Object language) { * @return the systemId value. */ public Object systemId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemId(); + return this.systemId; } /** @@ -186,10 +211,7 @@ public Object systemId() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withSystemId(Object systemId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemId(systemId); + this.systemId = systemId; return this; } @@ -200,7 +222,7 @@ public SapOpenHubLinkedService withSystemId(Object systemId) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -211,10 +233,7 @@ public Object username() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -224,7 +243,7 @@ public SapOpenHubLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -234,10 +253,7 @@ public SecretBase password() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -248,7 +264,7 @@ public SapOpenHubLinkedService withPassword(SecretBase password) { * @return the messageServer value. */ public Object messageServer() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServer(); + return this.messageServer; } /** @@ -259,10 +275,7 @@ public Object messageServer() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withMessageServer(Object messageServer) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServer(messageServer); + this.messageServer = messageServer; return this; } @@ -273,7 +286,7 @@ public SapOpenHubLinkedService withMessageServer(Object messageServer) { * @return the messageServerService value. */ public Object messageServerService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServerService(); + return this.messageServerService; } /** @@ -284,10 +297,7 @@ public Object messageServerService() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withMessageServerService(Object messageServerService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServerService(messageServerService); + this.messageServerService = messageServerService; return this; } @@ -298,7 +308,7 @@ public SapOpenHubLinkedService withMessageServerService(Object messageServerServ * @return the logonGroup value. */ public Object logonGroup() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logonGroup(); + return this.logonGroup; } /** @@ -309,10 +319,7 @@ public Object logonGroup() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withLogonGroup(Object logonGroup) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLogonGroup(logonGroup); + this.logonGroup = logonGroup; return this; } @@ -323,7 +330,7 @@ public SapOpenHubLinkedService withLogonGroup(Object logonGroup) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -334,10 +341,35 @@ public Object encryptedCredential() { * @return the SapOpenHubLinkedService object itself. */ public SapOpenHubLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -349,13 +381,8 @@ public SapOpenHubLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapOpenHubLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java index c32be15effc36..a35e138ce7d57 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapOpenHubTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapOpenHubTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,33 @@ /** Sap Business Warehouse Open Hub Destination Table properties. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapOpenHubTable") +@JsonFlatten @Fluent -public final class SapOpenHubTableDataset extends Dataset { +public class SapOpenHubTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapOpenHubTableDataset.class); /* - * Sap Business Warehouse Open Hub Destination Table properties. + * The name of the Open Hub Destination with destination type as Database + * Table. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapOpenHubTableDatasetTypeProperties innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.openHubDestinationName", required = true) + private Object openHubDestinationName; - /** - * Get the innerTypeProperties property: Sap Business Warehouse Open Hub Destination Table properties. - * - * @return the innerTypeProperties value. + /* + * Whether to exclude the records of the last request. The default value is + * true. Type: boolean (or Expression with resultType boolean). */ - private SapOpenHubTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + @JsonProperty(value = "typeProperties.excludeLastRequest") + private Object excludeLastRequest; - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SapOpenHubTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The ID of request for delta loading. Once it is set, only data with + * requestId larger than the value of this property will be retrieved. The + * default value is 0. Type: integer (or Expression with resultType integer + * ). + */ + @JsonProperty(value = "typeProperties.baseRequestId") + private Object baseRequestId; /** * Get the openHubDestinationName property: The name of the Open Hub Destination with destination type as Database @@ -92,7 +52,7 @@ public SapOpenHubTableDataset withFolder(DatasetFolder folder) { * @return the openHubDestinationName value. */ public Object openHubDestinationName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().openHubDestinationName(); + return this.openHubDestinationName; } /** @@ -103,10 +63,7 @@ public Object openHubDestinationName() { * @return the SapOpenHubTableDataset object itself. */ public SapOpenHubTableDataset withOpenHubDestinationName(Object openHubDestinationName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - } - this.innerTypeProperties().withOpenHubDestinationName(openHubDestinationName); + this.openHubDestinationName = openHubDestinationName; return this; } @@ -117,7 +74,7 @@ public SapOpenHubTableDataset withOpenHubDestinationName(Object openHubDestinati * @return the excludeLastRequest value. */ public Object excludeLastRequest() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().excludeLastRequest(); + return this.excludeLastRequest; } /** @@ -128,10 +85,7 @@ public Object excludeLastRequest() { * @return the SapOpenHubTableDataset object itself. */ public SapOpenHubTableDataset withExcludeLastRequest(Object excludeLastRequest) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - } - this.innerTypeProperties().withExcludeLastRequest(excludeLastRequest); + this.excludeLastRequest = excludeLastRequest; return this; } @@ -143,7 +97,7 @@ public SapOpenHubTableDataset withExcludeLastRequest(Object excludeLastRequest) * @return the baseRequestId value. */ public Object baseRequestId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().baseRequestId(); + return this.baseRequestId; } /** @@ -155,10 +109,56 @@ public Object baseRequestId() { * @return the SapOpenHubTableDataset object itself. */ public SapOpenHubTableDataset withBaseRequestId(Object baseRequestId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapOpenHubTableDatasetTypeProperties(); - } - this.innerTypeProperties().withBaseRequestId(baseRequestId); + this.baseRequestId = baseRequestId; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapOpenHubTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -170,13 +170,11 @@ public SapOpenHubTableDataset withBaseRequestId(Object baseRequestId) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (openHubDestinationName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapOpenHubTableDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property openHubDestinationName in model SapOpenHubTableDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java index e4a9fa0738c17..733a461ce1b60 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,125 @@ /** SAP Table Linked Service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapTable") +@JsonFlatten @Fluent -public final class SapTableLinkedService extends LinkedService { +public class SapTableLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapTableLinkedService.class); /* - * Properties specific to this linked service type. + * Host name of the SAP instance where the table is located. Type: string + * (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapTableLinkedServiceTypeProperties innerTypeProperties = new SapTableLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.server") + private Object server; - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. + /* + * System number of the SAP system where the table is located. (Usually a + * two-digit decimal number represented as a string.) Type: string (or + * Expression with resultType string). */ - private SapTableLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.systemNumber") + private Object systemNumber; - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Client ID of the client on the SAP system where the table is located. + * (Usually a three-digit decimal number represented as a string) Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Language of the SAP system where the table is located. The default value + * is EN. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.language") + private Object language; - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * SystemID of the SAP system where the table is located. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.systemId") + private Object systemId; - /** {@inheritDoc} */ - @Override - public SapTableLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Username to access the SAP server where the table is located. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; + + /* + * Password to access the SAP server where the table is located. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The hostname of the SAP Message Server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.messageServer") + private Object messageServer; + + /* + * The service name or port number of the Message Server. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.messageServerService") + private Object messageServerService; + + /* + * SNC activation indicator to access the SAP server where the table is + * located. Must be either 0 (off) or 1 (on). Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.sncMode") + private Object sncMode; + + /* + * Initiator's SNC name to access the SAP server where the table is + * located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncMyName") + private Object sncMyName; + + /* + * Communication partner's SNC name to access the SAP server where the + * table is located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncPartnerName") + private Object sncPartnerName; + + /* + * External security product's library to access the SAP server where the + * table is located. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncLibraryPath") + private Object sncLibraryPath; + + /* + * SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.sncQop") + private Object sncQop; + + /* + * The Logon Group for the SAP System. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.logonGroup") + private Object logonGroup; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the server property: Host name of the SAP instance where the table is located. Type: string (or Expression @@ -71,7 +144,7 @@ public SapTableLinkedService withAnnotations(List annotations) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -82,10 +155,7 @@ public Object server() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -96,7 +166,7 @@ public SapTableLinkedService withServer(Object server) { * @return the systemNumber value. */ public Object systemNumber() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemNumber(); + return this.systemNumber; } /** @@ -107,10 +177,7 @@ public Object systemNumber() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSystemNumber(Object systemNumber) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemNumber(systemNumber); + this.systemNumber = systemNumber; return this; } @@ -121,7 +188,7 @@ public SapTableLinkedService withSystemNumber(Object systemNumber) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -132,10 +199,7 @@ public Object clientId() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -146,7 +210,7 @@ public SapTableLinkedService withClientId(Object clientId) { * @return the language value. */ public Object language() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().language(); + return this.language; } /** @@ -157,10 +221,7 @@ public Object language() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withLanguage(Object language) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLanguage(language); + this.language = language; return this; } @@ -171,7 +232,7 @@ public SapTableLinkedService withLanguage(Object language) { * @return the systemId value. */ public Object systemId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().systemId(); + return this.systemId; } /** @@ -182,10 +243,7 @@ public Object systemId() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSystemId(Object systemId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSystemId(systemId); + this.systemId = systemId; return this; } @@ -196,7 +254,7 @@ public SapTableLinkedService withSystemId(Object systemId) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -207,10 +265,7 @@ public Object username() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -220,7 +275,7 @@ public SapTableLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -230,10 +285,7 @@ public SecretBase password() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -244,7 +296,7 @@ public SapTableLinkedService withPassword(SecretBase password) { * @return the messageServer value. */ public Object messageServer() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServer(); + return this.messageServer; } /** @@ -255,10 +307,7 @@ public Object messageServer() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withMessageServer(Object messageServer) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServer(messageServer); + this.messageServer = messageServer; return this; } @@ -269,7 +318,7 @@ public SapTableLinkedService withMessageServer(Object messageServer) { * @return the messageServerService value. */ public Object messageServerService() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().messageServerService(); + return this.messageServerService; } /** @@ -280,10 +329,7 @@ public Object messageServerService() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withMessageServerService(Object messageServerService) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withMessageServerService(messageServerService); + this.messageServerService = messageServerService; return this; } @@ -294,7 +340,7 @@ public SapTableLinkedService withMessageServerService(Object messageServerServic * @return the sncMode value. */ public Object sncMode() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncMode(); + return this.sncMode; } /** @@ -305,10 +351,7 @@ public Object sncMode() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSncMode(Object sncMode) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncMode(sncMode); + this.sncMode = sncMode; return this; } @@ -319,7 +362,7 @@ public SapTableLinkedService withSncMode(Object sncMode) { * @return the sncMyName value. */ public Object sncMyName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncMyName(); + return this.sncMyName; } /** @@ -330,10 +373,7 @@ public Object sncMyName() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSncMyName(Object sncMyName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncMyName(sncMyName); + this.sncMyName = sncMyName; return this; } @@ -344,7 +384,7 @@ public SapTableLinkedService withSncMyName(Object sncMyName) { * @return the sncPartnerName value. */ public Object sncPartnerName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncPartnerName(); + return this.sncPartnerName; } /** @@ -355,10 +395,7 @@ public Object sncPartnerName() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSncPartnerName(Object sncPartnerName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncPartnerName(sncPartnerName); + this.sncPartnerName = sncPartnerName; return this; } @@ -369,7 +406,7 @@ public SapTableLinkedService withSncPartnerName(Object sncPartnerName) { * @return the sncLibraryPath value. */ public Object sncLibraryPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncLibraryPath(); + return this.sncLibraryPath; } /** @@ -380,10 +417,7 @@ public Object sncLibraryPath() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSncLibraryPath(Object sncLibraryPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncLibraryPath(sncLibraryPath); + this.sncLibraryPath = sncLibraryPath; return this; } @@ -394,7 +428,7 @@ public SapTableLinkedService withSncLibraryPath(Object sncLibraryPath) { * @return the sncQop value. */ public Object sncQop() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sncQop(); + return this.sncQop; } /** @@ -405,10 +439,7 @@ public Object sncQop() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withSncQop(Object sncQop) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSncQop(sncQop); + this.sncQop = sncQop; return this; } @@ -419,7 +450,7 @@ public SapTableLinkedService withSncQop(Object sncQop) { * @return the logonGroup value. */ public Object logonGroup() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logonGroup(); + return this.logonGroup; } /** @@ -430,10 +461,7 @@ public Object logonGroup() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withLogonGroup(Object logonGroup) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withLogonGroup(logonGroup); + this.logonGroup = logonGroup; return this; } @@ -444,7 +472,7 @@ public SapTableLinkedService withLogonGroup(Object logonGroup) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -455,10 +483,35 @@ public Object encryptedCredential() { * @return the SapTableLinkedService object itself. */ public SapTableLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SapTableLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapTableLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapTableLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SapTableLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -470,13 +523,8 @@ public SapTableLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapTableLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java index f1225c105ce6b..5d768bb5e3fca 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SapTableResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SapTableResourceDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** SAP Table Resource properties. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SapTableResource") +@JsonFlatten @Fluent -public final class SapTableResourceDataset extends Dataset { +public class SapTableResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SapTableResourceDataset.class); /* - * SAP Table Resource properties. + * The name of the SAP Table. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private SapTableResourceDatasetTypeProperties innerTypeProperties = new SapTableResourceDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; /** - * Get the innerTypeProperties property: SAP Table Resource properties. + * Get the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the SapTableResourceDataset object itself. */ - private SapTableResourceDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SapTableResourceDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public SapTableResourceDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The name of the SAP Table. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SapTableResourceDataset object itself. - */ - public SapTableResourceDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SapTableResourceDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,13 +106,11 @@ public SapTableResourceDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (tableName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SapTableResourceDataset")); - } else { - innerTypeProperties().validate(); + "Missing required property tableName in model SapTableResourceDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java index 6d289e1590397..2d503a8afcd7d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ScheduleTrigger.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ScheduleTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,23 +16,35 @@ /** Trigger that creates pipeline runs periodically, on schedule. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ScheduleTrigger") +@JsonFlatten @Fluent -public final class ScheduleTrigger extends MultiplePipelineTrigger { +public class ScheduleTrigger extends MultiplePipelineTrigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(ScheduleTrigger.class); /* - * Schedule Trigger properties. + * Recurrence schedule configuration. */ - @JsonProperty(value = "typeProperties", required = true) - private ScheduleTriggerTypeProperties innerTypeProperties = new ScheduleTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.recurrence", required = true) + private ScheduleTriggerRecurrence recurrence; /** - * Get the innerTypeProperties property: Schedule Trigger properties. + * Get the recurrence property: Recurrence schedule configuration. + * + * @return the recurrence value. + */ + public ScheduleTriggerRecurrence recurrence() { + return this.recurrence; + } + + /** + * Set the recurrence property: Recurrence schedule configuration. * - * @return the innerTypeProperties value. + * @param recurrence the recurrence value to set. + * @return the ScheduleTrigger object itself. */ - private ScheduleTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ScheduleTrigger withRecurrence(ScheduleTriggerRecurrence recurrence) { + this.recurrence = recurrence; + return this; } /** {@inheritDoc} */ @@ -56,29 +68,6 @@ public ScheduleTrigger withAnnotations(List annotations) { return this; } - /** - * Get the recurrence property: Recurrence schedule configuration. - * - * @return the recurrence value. - */ - public ScheduleTriggerRecurrence recurrence() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().recurrence(); - } - - /** - * Set the recurrence property: Recurrence schedule configuration. - * - * @param recurrence the recurrence value to set. - * @return the ScheduleTrigger object itself. - */ - public ScheduleTrigger withRecurrence(ScheduleTriggerRecurrence recurrence) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ScheduleTriggerTypeProperties(); - } - this.innerTypeProperties().withRecurrence(recurrence); - return this; - } - /** * Validates the instance. * @@ -87,13 +76,12 @@ public ScheduleTrigger withRecurrence(ScheduleTriggerRecurrence recurrence) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (recurrence() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ScheduleTrigger")); + new IllegalArgumentException("Missing required property recurrence in model ScheduleTrigger")); } else { - innerTypeProperties().validate(); + recurrence().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java index ce7567bcdc519..d89d5f44c373f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntime.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,33 +15,16 @@ /** Self-hosted integration runtime. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SelfHosted") +@JsonFlatten @Fluent -public final class SelfHostedIntegrationRuntime extends IntegrationRuntime { +public class SelfHostedIntegrationRuntime extends IntegrationRuntime { @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntime.class); /* - * When this property is not null, means this is a linked integration - * runtime. The property is used to access original integration runtime. + * The base definition of a linked integration runtime. */ - @JsonProperty(value = "typeProperties") - private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties; - - /** - * Get the innerTypeProperties property: When this property is not null, means this is a linked integration runtime. - * The property is used to access original integration runtime. - * - * @return the innerTypeProperties value. - */ - private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SelfHostedIntegrationRuntime withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.linkedInfo") + private LinkedIntegrationRuntimeType linkedInfo; /** * Get the linkedInfo property: The base definition of a linked integration runtime. @@ -49,7 +32,7 @@ public SelfHostedIntegrationRuntime withDescription(String description) { * @return the linkedInfo value. */ public LinkedIntegrationRuntimeType linkedInfo() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedInfo(); + return this.linkedInfo; } /** @@ -59,10 +42,14 @@ public LinkedIntegrationRuntimeType linkedInfo() { * @return the SelfHostedIntegrationRuntime object itself. */ public SelfHostedIntegrationRuntime withLinkedInfo(LinkedIntegrationRuntimeType linkedInfo) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeTypeProperties(); - } - this.innerTypeProperties().withLinkedInfo(linkedInfo); + this.linkedInfo = linkedInfo; + return this; + } + + /** {@inheritDoc} */ + @Override + public SelfHostedIntegrationRuntime withDescription(String description) { + super.withDescription(description); return this; } @@ -74,8 +61,8 @@ public SelfHostedIntegrationRuntime withLinkedInfo(LinkedIntegrationRuntimeType @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (linkedInfo() != null) { + linkedInfo().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java index 4353e6e2db714..90014c67c37b9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SelfHostedIntegrationRuntimeStatus.java @@ -5,10 +5,11 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.datafactory.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,25 +20,114 @@ /** Self-hosted integration runtime status. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SelfHosted") +@JsonFlatten @Fluent -public final class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { +public class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeStatus.class); /* - * Self-hosted integration runtime status type properties. + * The time at which the integration runtime was created, in ISO8601 + * format. */ - @JsonProperty(value = "typeProperties", required = true) - private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties = - new SelfHostedIntegrationRuntimeStatusTypeProperties(); + @JsonProperty(value = "typeProperties.createTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createTime; - /** - * Get the innerTypeProperties property: Self-hosted integration runtime status type properties. - * - * @return the innerTypeProperties value. + /* + * The task queue id of the integration runtime. */ - private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.taskQueueId", access = JsonProperty.Access.WRITE_ONLY) + private String taskQueueId; + + /* + * It is used to set the encryption mode for node-node communication + * channel (when more than 2 self-hosted integration runtime nodes exist). + */ + @JsonProperty(value = "typeProperties.internalChannelEncryption", access = JsonProperty.Access.WRITE_ONLY) + private IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption; + + /* + * Version of the integration runtime. + */ + @JsonProperty(value = "typeProperties.version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * The list of nodes for this integration runtime. + */ + @JsonProperty(value = "typeProperties.nodes") + private List nodes; + + /* + * The date at which the integration runtime will be scheduled to update, + * in ISO8601 format. + */ + @JsonProperty(value = "typeProperties.scheduledUpdateDate", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime scheduledUpdateDate; + + /* + * The time in the date scheduled by service to update the integration + * runtime, e.g., PT03H is 3 hours + */ + @JsonProperty(value = "typeProperties.updateDelayOffset", access = JsonProperty.Access.WRITE_ONLY) + private String updateDelayOffset; + + /* + * The local time zone offset in hours. + */ + @JsonProperty(value = "typeProperties.localTimeZoneOffset", access = JsonProperty.Access.WRITE_ONLY) + private String localTimeZoneOffset; + + /* + * Object with additional information about integration runtime + * capabilities. + */ + @JsonProperty(value = "typeProperties.capabilities", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map capabilities; + + /* + * The URLs for the services used in integration runtime backend service. + */ + @JsonProperty(value = "typeProperties.serviceUrls", access = JsonProperty.Access.WRITE_ONLY) + private List serviceUrls; + + /* + * Whether Self-hosted integration runtime auto update has been turned on. + */ + @JsonProperty(value = "typeProperties.autoUpdate", access = JsonProperty.Access.WRITE_ONLY) + private IntegrationRuntimeAutoUpdate autoUpdate; + + /* + * Status of the integration runtime version. + */ + @JsonProperty(value = "typeProperties.versionStatus", access = JsonProperty.Access.WRITE_ONLY) + private String versionStatus; + + /* + * The list of linked integration runtimes that are created to share with + * this integration runtime. + */ + @JsonProperty(value = "typeProperties.links") + private List links; + + /* + * The version that the integration runtime is going to update to. + */ + @JsonProperty(value = "typeProperties.pushedVersion", access = JsonProperty.Access.WRITE_ONLY) + private String pushedVersion; + + /* + * The latest version on download center. + */ + @JsonProperty(value = "typeProperties.latestVersion", access = JsonProperty.Access.WRITE_ONLY) + private String latestVersion; + + /* + * The estimated time when the self-hosted integration runtime will be + * updated. + */ + @JsonProperty(value = "typeProperties.autoUpdateETA", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime autoUpdateEta; /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. @@ -45,7 +135,7 @@ private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { * @return the createTime value. */ public OffsetDateTime createTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().createTime(); + return this.createTime; } /** @@ -54,7 +144,7 @@ public OffsetDateTime createTime() { * @return the taskQueueId value. */ public String taskQueueId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().taskQueueId(); + return this.taskQueueId; } /** @@ -64,7 +154,7 @@ public String taskQueueId() { * @return the internalChannelEncryption value. */ public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().internalChannelEncryption(); + return this.internalChannelEncryption; } /** @@ -73,7 +163,7 @@ public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption * @return the version value. */ public String version() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().version(); + return this.version; } /** @@ -82,7 +172,7 @@ public String version() { * @return the nodes value. */ public List nodes() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nodes(); + return this.nodes; } /** @@ -92,10 +182,7 @@ public List nodes() { * @return the SelfHostedIntegrationRuntimeStatus object itself. */ public SelfHostedIntegrationRuntimeStatus withNodes(List nodes) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - } - this.innerTypeProperties().withNodes(nodes); + this.nodes = nodes; return this; } @@ -106,7 +193,7 @@ public SelfHostedIntegrationRuntimeStatus withNodes(List capabilities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().capabilities(); + return this.capabilities; } /** @@ -143,7 +230,7 @@ public Map capabilities() { * @return the serviceUrls value. */ public List serviceUrls() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceUrls(); + return this.serviceUrls; } /** @@ -152,7 +239,7 @@ public List serviceUrls() { * @return the autoUpdate value. */ public IntegrationRuntimeAutoUpdate autoUpdate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUpdate(); + return this.autoUpdate; } /** @@ -161,7 +248,7 @@ public IntegrationRuntimeAutoUpdate autoUpdate() { * @return the versionStatus value. */ public String versionStatus() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().versionStatus(); + return this.versionStatus; } /** @@ -171,7 +258,7 @@ public String versionStatus() { * @return the links value. */ public List links() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().links(); + return this.links; } /** @@ -182,10 +269,7 @@ public List links() { * @return the SelfHostedIntegrationRuntimeStatus object itself. */ public SelfHostedIntegrationRuntimeStatus withLinks(List links) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - } - this.innerTypeProperties().withLinks(links); + this.links = links; return this; } @@ -195,7 +279,7 @@ public SelfHostedIntegrationRuntimeStatus withLinks(List e.validate()); + } + if (links() != null) { + links().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java index 78cdb49d32eef..6f08674147cb7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ServiceNowLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,78 @@ /** ServiceNow server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ServiceNow") +@JsonFlatten @Fluent -public final class ServiceNowLinkedService extends LinkedService { +public class ServiceNowLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceNowLinkedService.class); /* - * ServiceNow server linked service properties. + * The endpoint of the ServiceNow server. (i.e. .service-now.com) */ - @JsonProperty(value = "typeProperties", required = true) - private ServiceNowLinkedServiceTypeProperties innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; - /** - * Get the innerTypeProperties property: ServiceNow server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The authentication type to use. */ - private ServiceNowLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private ServiceNowAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The user name used to connect to the ServiceNow server for Basic and + * OAuth2 authentication. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The password corresponding to the user name for Basic and OAuth2 + * authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The client id for OAuth2 authentication. + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; - /** {@inheritDoc} */ - @Override - public ServiceNowLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The client secret for OAuth2 authentication. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; + + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; + + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). @@ -70,7 +96,7 @@ public ServiceNowLinkedService withAnnotations(List annotations) { * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -80,10 +106,7 @@ public Object endpoint() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -93,7 +116,7 @@ public ServiceNowLinkedService withEndpoint(Object endpoint) { * @return the authenticationType value. */ public ServiceNowAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -103,10 +126,7 @@ public ServiceNowAuthenticationType authenticationType() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withAuthenticationType(ServiceNowAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -117,7 +137,7 @@ public ServiceNowLinkedService withAuthenticationType(ServiceNowAuthenticationTy * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -128,10 +148,7 @@ public Object username() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -141,7 +158,7 @@ public ServiceNowLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -151,10 +168,7 @@ public SecretBase password() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -164,7 +178,7 @@ public ServiceNowLinkedService withPassword(SecretBase password) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -174,10 +188,7 @@ public Object clientId() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -187,7 +198,7 @@ public ServiceNowLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -197,10 +208,7 @@ public SecretBase clientSecret() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -211,7 +219,7 @@ public ServiceNowLinkedService withClientSecret(SecretBase clientSecret) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -222,10 +230,7 @@ public Object useEncryptedEndpoints() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -236,7 +241,7 @@ public ServiceNowLinkedService withUseEncryptedEndpoints(Object useEncryptedEndp * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -247,10 +252,7 @@ public Object useHostVerification() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -261,7 +263,7 @@ public ServiceNowLinkedService withUseHostVerification(Object useHostVerificatio * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -272,10 +274,7 @@ public Object usePeerVerification() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -286,7 +285,7 @@ public ServiceNowLinkedService withUsePeerVerification(Object usePeerVerificatio * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -297,10 +296,35 @@ public Object encryptedCredential() { * @return the ServiceNowLinkedService object itself. */ public ServiceNowLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ServiceNowLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ServiceNowLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ServiceNowLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ServiceNowLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ServiceNowLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -312,13 +336,23 @@ public ServiceNowLinkedService withEncryptedCredential(Object encryptedCredentia @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (endpoint() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model ServiceNowLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property endpoint in model ServiceNowLinkedService")); + } + if (authenticationType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property authenticationType in model ServiceNowLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java index f103f1dd3b86c..eb3f8438f3536 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ServiceNowObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** ServiceNow server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ServiceNowObject") +@JsonFlatten @Fluent -public final class ServiceNowObjectDataset extends Dataset { +public class ServiceNowObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceNowObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the ServiceNowObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ServiceNowObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public ServiceNowObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ServiceNowObjectDataset object itself. - */ - public ServiceNowObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public ServiceNowObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java index 812e863d669f5..a79a50293aa3a 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SetVariableActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SetVariableActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,52 +16,22 @@ /** Set value for a Variable. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SetVariable") +@JsonFlatten @Fluent -public final class SetVariableActivity extends ControlActivity { +public class SetVariableActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(SetVariableActivity.class); /* - * Set Variable activity properties. + * Name of the variable whose value needs to be set. */ - @JsonProperty(value = "typeProperties", required = true) - private SetVariableActivityTypeProperties innerTypeProperties = new SetVariableActivityTypeProperties(); + @JsonProperty(value = "typeProperties.variableName") + private String variableName; - /** - * Get the innerTypeProperties property: Set Variable activity properties. - * - * @return the innerTypeProperties value. + /* + * Value to be set. Could be a static value or Expression */ - private SetVariableActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public SetVariableActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + @JsonProperty(value = "typeProperties.value") + private Object value; /** * Get the variableName property: Name of the variable whose value needs to be set. @@ -69,7 +39,7 @@ public SetVariableActivity withUserProperties(List userProperties) * @return the variableName value. */ public String variableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().variableName(); + return this.variableName; } /** @@ -79,10 +49,7 @@ public String variableName() { * @return the SetVariableActivity object itself. */ public SetVariableActivity withVariableName(String variableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SetVariableActivityTypeProperties(); - } - this.innerTypeProperties().withVariableName(variableName); + this.variableName = variableName; return this; } @@ -92,7 +59,7 @@ public SetVariableActivity withVariableName(String variableName) { * @return the value value. */ public Object value() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().value(); + return this.value; } /** @@ -102,10 +69,35 @@ public Object value() { * @return the SetVariableActivity object itself. */ public SetVariableActivity withValue(Object value) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SetVariableActivityTypeProperties(); - } - this.innerTypeProperties().withValue(value); + this.value = value; + return this; + } + + /** {@inheritDoc} */ + @Override + public SetVariableActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public SetVariableActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SetVariableActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public SetVariableActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -117,13 +109,5 @@ public SetVariableActivity withValue(Object value) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SetVariableActivity")); - } else { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java index 1a093c9f0dc01..1a3f752004612 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SftpServerLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SftpServerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,93 @@ /** A linked service for an SSH File Transfer Protocol (SFTP) server. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Sftp") +@JsonFlatten @Fluent -public final class SftpServerLinkedService extends LinkedService { +public class SftpServerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SftpServerLinkedService.class); /* - * Properties specific to this linked service type. + * The SFTP server host name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private SftpServerLinkedServiceTypeProperties innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Properties specific to this linked service type. - * - * @return the innerTypeProperties value. + /* + * The TCP port number that the SFTP server uses to listen for client + * connections. Default value is 22. Type: integer (or Expression with + * resultType integer), minimum: 0. */ - private SftpServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port") + private Object port; - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The authentication type to be used to connect to the FTP server. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private SftpAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The username used to log on to the SFTP server. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password to logon the SFTP server for Basic authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SftpServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /* + * The SSH private key file path for SshPublicKey authentication. Only + * valid for on-premises copy. For on-premises copy with SshPublicKey + * authentication, either PrivateKeyPath or PrivateKeyContent should be + * specified. SSH private key should be OpenSSH format. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.privateKeyPath") + private Object privateKeyPath; + + /* + * Base64 encoded SSH private key content for SshPublicKey authentication. + * For on-premises copy with SshPublicKey authentication, either + * PrivateKeyPath or PrivateKeyContent should be specified. SSH private key + * should be OpenSSH format. + */ + @JsonProperty(value = "typeProperties.privateKeyContent") + private SecretBase privateKeyContent; + + /* + * The password to decrypt the SSH private key if the SSH private key is + * encrypted. + */ + @JsonProperty(value = "typeProperties.passPhrase") + private SecretBase passPhrase; + + /* + * If true, skip the SSH host key validation. Default value is false. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.skipHostKeyValidation") + private Object skipHostKeyValidation; + + /* + * The host key finger-print of the SFTP server. When SkipHostKeyValidation + * is false, HostKeyFingerprint should be specified. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.hostKeyFingerprint") + private Object hostKeyFingerprint; /** * Get the host property: The SFTP server host name. Type: string (or Expression with resultType string). @@ -70,7 +111,7 @@ public SftpServerLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +121,7 @@ public Object host() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +132,7 @@ public SftpServerLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -105,10 +143,7 @@ public Object port() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -118,7 +153,7 @@ public SftpServerLinkedService withPort(Object port) { * @return the authenticationType value. */ public SftpAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -128,10 +163,7 @@ public SftpAuthenticationType authenticationType() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withAuthenticationType(SftpAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -142,7 +174,7 @@ public SftpServerLinkedService withAuthenticationType(SftpAuthenticationType aut * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -153,10 +185,7 @@ public Object username() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -166,7 +195,7 @@ public SftpServerLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -176,10 +205,7 @@ public SecretBase password() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -190,7 +216,7 @@ public SftpServerLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -201,10 +227,7 @@ public Object encryptedCredential() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -217,7 +240,7 @@ public SftpServerLinkedService withEncryptedCredential(Object encryptedCredentia * @return the privateKeyPath value. */ public Object privateKeyPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().privateKeyPath(); + return this.privateKeyPath; } /** @@ -230,10 +253,7 @@ public Object privateKeyPath() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withPrivateKeyPath(Object privateKeyPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPrivateKeyPath(privateKeyPath); + this.privateKeyPath = privateKeyPath; return this; } @@ -245,7 +265,7 @@ public SftpServerLinkedService withPrivateKeyPath(Object privateKeyPath) { * @return the privateKeyContent value. */ public SecretBase privateKeyContent() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().privateKeyContent(); + return this.privateKeyContent; } /** @@ -257,10 +277,7 @@ public SecretBase privateKeyContent() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withPrivateKeyContent(SecretBase privateKeyContent) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPrivateKeyContent(privateKeyContent); + this.privateKeyContent = privateKeyContent; return this; } @@ -270,7 +287,7 @@ public SftpServerLinkedService withPrivateKeyContent(SecretBase privateKeyConten * @return the passPhrase value. */ public SecretBase passPhrase() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().passPhrase(); + return this.passPhrase; } /** @@ -280,10 +297,7 @@ public SecretBase passPhrase() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withPassPhrase(SecretBase passPhrase) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassPhrase(passPhrase); + this.passPhrase = passPhrase; return this; } @@ -294,7 +308,7 @@ public SftpServerLinkedService withPassPhrase(SecretBase passPhrase) { * @return the skipHostKeyValidation value. */ public Object skipHostKeyValidation() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().skipHostKeyValidation(); + return this.skipHostKeyValidation; } /** @@ -305,10 +319,7 @@ public Object skipHostKeyValidation() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withSkipHostKeyValidation(Object skipHostKeyValidation) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSkipHostKeyValidation(skipHostKeyValidation); + this.skipHostKeyValidation = skipHostKeyValidation; return this; } @@ -319,7 +330,7 @@ public SftpServerLinkedService withSkipHostKeyValidation(Object skipHostKeyValid * @return the hostKeyFingerprint value. */ public Object hostKeyFingerprint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().hostKeyFingerprint(); + return this.hostKeyFingerprint; } /** @@ -330,10 +341,35 @@ public Object hostKeyFingerprint() { * @return the SftpServerLinkedService object itself. */ public SftpServerLinkedService withHostKeyFingerprint(Object hostKeyFingerprint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SftpServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHostKeyFingerprint(hostKeyFingerprint); + this.hostKeyFingerprint = hostKeyFingerprint; + return this; + } + + /** {@inheritDoc} */ + @Override + public SftpServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SftpServerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SftpServerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SftpServerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -345,13 +381,19 @@ public SftpServerLinkedService withHostKeyFingerprint(Object hostKeyFingerprint) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SftpServerLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model SftpServerLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (privateKeyContent() != null) { + privateKeyContent().validate(); + } + if (passPhrase() != null) { + passPhrase().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java index ca24063248a6e..02e1b7cdb6a93 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,53 +17,49 @@ /** SharePoint Online List linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SharePointOnlineList") +@JsonFlatten @Fluent -public final class SharePointOnlineListLinkedService extends LinkedService { +public class SharePointOnlineListLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SharePointOnlineListLinkedService.class); /* - * SharePoint Online List linked service properties. + * The URL of the SharePoint Online site. For example, + * https://contoso.sharepoint.com/sites/siteName. Type: string (or + * Expression with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SharePointOnlineListLinkedServiceTypeProperties innerTypeProperties = - new SharePointOnlineListLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.siteUrl", required = true) + private Object siteUrl; - /** - * Get the innerTypeProperties property: SharePoint Online List linked service properties. - * - * @return the innerTypeProperties value. + /* + * The tenant ID under which your application resides. You can find it from + * Azure portal Active Directory overview page. Type: string (or Expression + * with resultType string). */ - private SharePointOnlineListLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.tenantId", required = true) + private Object tenantId; - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The application (client) ID of your application registered in Azure + * Active Directory. Make sure to grant SharePoint site permission to this + * application. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + private Object servicePrincipalId; - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The client secret of your application registered in Azure Active + * Directory. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + private SecretBase servicePrincipalKey; - /** {@inheritDoc} */ - @Override - public SharePointOnlineListLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the siteUrl property: The URL of the SharePoint Online site. For example, @@ -72,7 +68,7 @@ public SharePointOnlineListLinkedService withAnnotations(List annotation * @return the siteUrl value. */ public Object siteUrl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().siteUrl(); + return this.siteUrl; } /** @@ -83,10 +79,7 @@ public Object siteUrl() { * @return the SharePointOnlineListLinkedService object itself. */ public SharePointOnlineListLinkedService withSiteUrl(Object siteUrl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSiteUrl(siteUrl); + this.siteUrl = siteUrl; return this; } @@ -97,7 +90,7 @@ public SharePointOnlineListLinkedService withSiteUrl(Object siteUrl) { * @return the tenantId value. */ public Object tenantId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tenantId(); + return this.tenantId; } /** @@ -108,10 +101,7 @@ public Object tenantId() { * @return the SharePointOnlineListLinkedService object itself. */ public SharePointOnlineListLinkedService withTenantId(Object tenantId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTenantId(tenantId); + this.tenantId = tenantId; return this; } @@ -123,7 +113,7 @@ public SharePointOnlineListLinkedService withTenantId(Object tenantId) { * @return the servicePrincipalId value. */ public Object servicePrincipalId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalId(); + return this.servicePrincipalId; } /** @@ -135,10 +125,7 @@ public Object servicePrincipalId() { * @return the SharePointOnlineListLinkedService object itself. */ public SharePointOnlineListLinkedService withServicePrincipalId(Object servicePrincipalId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalId(servicePrincipalId); + this.servicePrincipalId = servicePrincipalId; return this; } @@ -149,7 +136,7 @@ public SharePointOnlineListLinkedService withServicePrincipalId(Object servicePr * @return the servicePrincipalKey value. */ public SecretBase servicePrincipalKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().servicePrincipalKey(); + return this.servicePrincipalKey; } /** @@ -160,10 +147,7 @@ public SecretBase servicePrincipalKey() { * @return the SharePointOnlineListLinkedService object itself. */ public SharePointOnlineListLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServicePrincipalKey(servicePrincipalKey); + this.servicePrincipalKey = servicePrincipalKey; return this; } @@ -174,7 +158,7 @@ public SharePointOnlineListLinkedService withServicePrincipalKey(SecretBase serv * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -185,10 +169,35 @@ public Object encryptedCredential() { * @return the SharePointOnlineListLinkedService object itself. */ public SharePointOnlineListLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SharePointOnlineListLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SharePointOnlineListLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SharePointOnlineListLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SharePointOnlineListLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -200,13 +209,31 @@ public SharePointOnlineListLinkedService withEncryptedCredential(Object encrypte @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (siteUrl() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property siteUrl in model SharePointOnlineListLinkedService")); + } + if (tenantId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property tenantId in model SharePointOnlineListLinkedService")); + } + if (servicePrincipalId() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property servicePrincipalId in model SharePointOnlineListLinkedService")); + } + if (servicePrincipalKey() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SharePointOnlineListLinkedService")); + "Missing required property servicePrincipalKey in model SharePointOnlineListLinkedService")); } else { - innerTypeProperties().validate(); + servicePrincipalKey().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java index 8f738f62c13e5..2f29ae3f1e71d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SharePointOnlineListResourceDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SharePointOnlineListDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,38 @@ /** The sharepoint online list resource dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SharePointOnlineListResource") +@JsonFlatten @Fluent -public final class SharePointOnlineListResourceDataset extends Dataset { +public class SharePointOnlineListResourceDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SharePointOnlineListResourceDataset.class); /* - * Sharepoint online list dataset properties. + * The name of the SharePoint Online list. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private SharePointOnlineListDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.listName") + private Object listName; /** - * Get the innerTypeProperties property: Sharepoint online list dataset properties. + * Get the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType + * string). + * + * @return the listName value. + */ + public Object listName() { + return this.listName; + } + + /** + * Set the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType + * string). * - * @return the innerTypeProperties value. + * @param listName the listName value to set. + * @return the SharePointOnlineListResourceDataset object itself. */ - private SharePointOnlineListDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SharePointOnlineListResourceDataset withListName(Object listName) { + this.listName = listName; + return this; } /** {@inheritDoc} */ @@ -85,31 +100,6 @@ public SharePointOnlineListResourceDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @return the listName value. - */ - public Object listName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().listName(); - } - - /** - * Set the listName property: The name of the SharePoint Online list. Type: string (or Expression with resultType - * string). - * - * @param listName the listName value to set. - * @return the SharePointOnlineListResourceDataset object itself. - */ - public SharePointOnlineListResourceDataset withListName(Object listName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SharePointOnlineListDatasetTypeProperties(); - } - this.innerTypeProperties().withListName(listName); - return this; - } - /** * Validates the instance. * @@ -118,8 +108,5 @@ public SharePointOnlineListResourceDataset withListName(Object listName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java index 80c5e27b0b918..579e234cc91e7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ShopifyLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,53 @@ /** Shopify Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Shopify") +@JsonFlatten @Fluent -public final class ShopifyLinkedService extends LinkedService { +public class ShopifyLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ShopifyLinkedService.class); /* - * Shopify Service linked service properties. + * The endpoint of the Shopify server. (i.e. mystore.myshopify.com) */ - @JsonProperty(value = "typeProperties", required = true) - private ShopifyLinkedServiceTypeProperties innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Shopify Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The API access token that can be used to access Shopify’s data. The + * token won't expire if it is offline mode. */ - private ShopifyLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; - /** {@inheritDoc} */ - @Override - public ShopifyLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: The endpoint of the Shopify server. (i.e. mystore.myshopify.com). @@ -70,7 +71,7 @@ public ShopifyLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +81,7 @@ public Object host() { * @return the ShopifyLinkedService object itself. */ public ShopifyLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -94,7 +92,7 @@ public ShopifyLinkedService withHost(Object host) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -105,10 +103,7 @@ public SecretBase accessToken() { * @return the ShopifyLinkedService object itself. */ public ShopifyLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -119,7 +114,7 @@ public ShopifyLinkedService withAccessToken(SecretBase accessToken) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -130,10 +125,7 @@ public Object useEncryptedEndpoints() { * @return the ShopifyLinkedService object itself. */ public ShopifyLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -144,7 +136,7 @@ public ShopifyLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoin * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -155,10 +147,7 @@ public Object useHostVerification() { * @return the ShopifyLinkedService object itself. */ public ShopifyLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -169,7 +158,7 @@ public ShopifyLinkedService withUseHostVerification(Object useHostVerification) * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -180,10 +169,7 @@ public Object usePeerVerification() { * @return the ShopifyLinkedService object itself. */ public ShopifyLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -194,7 +180,7 @@ public ShopifyLinkedService withUsePeerVerification(Object usePeerVerification) * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -205,10 +191,35 @@ public Object encryptedCredential() { * @return the ShopifyLinkedService object itself. */ public ShopifyLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ShopifyLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ShopifyLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ShopifyLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ShopifyLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ShopifyLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -220,13 +231,13 @@ public ShopifyLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ShopifyLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property host in model ShopifyLinkedService")); + } + if (accessToken() != null) { + accessToken().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java index d7a9ba06a382f..eb6aff65f9d54 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ShopifyObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Shopify Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ShopifyObject") +@JsonFlatten @Fluent -public final class ShopifyObjectDataset extends Dataset { +public class ShopifyObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ShopifyObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the ShopifyObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ShopifyObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public ShopifyObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ShopifyObjectDataset object itself. - */ - public ShopifyObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public ShopifyObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java index d707561425f6d..638e612841a3f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,67 @@ /** The snowflake dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SnowflakeTable") +@JsonFlatten @Fluent -public final class SnowflakeDataset extends Dataset { +public class SnowflakeDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SnowflakeDataset.class); /* - * Snowflake dataset properties. + * The schema name of the Snowflake database. Type: string (or Expression + * with resultType string). */ - @JsonProperty(value = "typeProperties", required = true) - private SnowflakeDatasetTypeProperties innerTypeProperties = new SnowflakeDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; + + /* + * The table name of the Snowflake database. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** - * Get the innerTypeProperties property: Snowflake dataset properties. + * Get the schemaTypePropertiesSchema property: The schema name of the Snowflake database. Type: string (or + * Expression with resultType string). * - * @return the innerTypeProperties value. + * @return the schemaTypePropertiesSchema value. */ - private SnowflakeDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public Object schemaTypePropertiesSchema() { + return this.schemaTypePropertiesSchema; + } + + /** + * Set the schemaTypePropertiesSchema property: The schema name of the Snowflake database. Type: string (or + * Expression with resultType string). + * + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. + * @return the SnowflakeDataset object itself. + */ + public SnowflakeDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** + * Get the table property: The table name of the Snowflake database. Type: string (or Expression with resultType + * string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } + + /** + * Set the table property: The table name of the Snowflake database. Type: string (or Expression with resultType + * string). + * + * @param table the table value to set. + * @return the SnowflakeDataset object itself. + */ + public SnowflakeDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,56 +129,6 @@ public SnowflakeDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the schema value. - */ - public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); - } - - /** - * Set the schema property: The schema name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param schema the schema value to set. - * @return the SnowflakeDataset object itself. - */ - public SnowflakeDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); - return this; - } - - /** - * Get the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of the Snowflake database. Type: string (or Expression with resultType - * string). - * - * @param table the table value to set. - * @return the SnowflakeDataset object itself. - */ - public SnowflakeDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -143,13 +137,5 @@ public SnowflakeDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SnowflakeDataset")); - } else { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java index 794230f3c31da..a4bbec7dc87c9 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SnowflakeLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SnowflakeLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,30 @@ /** Snowflake linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Snowflake") +@JsonFlatten @Fluent -public final class SnowflakeLinkedService extends LinkedService { +public class SnowflakeLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SnowflakeLinkedService.class); /* - * Snowflake linked service properties. + * The connection string of snowflake. Type: string, SecureString. */ - @JsonProperty(value = "typeProperties", required = true) - private SnowflakeLinkedServiceTypeProperties innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: Snowflake linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private SnowflakeLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.password") + private AzureKeyVaultSecretReference password; - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SnowflakeLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: The connection string of snowflake. Type: string, SecureString. @@ -70,7 +48,7 @@ public SnowflakeLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -80,10 +58,7 @@ public Object connectionString() { * @return the SnowflakeLinkedService object itself. */ public SnowflakeLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -93,7 +68,7 @@ public SnowflakeLinkedService withConnectionString(Object connectionString) { * @return the password value. */ public AzureKeyVaultSecretReference password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -103,10 +78,7 @@ public AzureKeyVaultSecretReference password() { * @return the SnowflakeLinkedService object itself. */ public SnowflakeLinkedService withPassword(AzureKeyVaultSecretReference password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -117,7 +89,7 @@ public SnowflakeLinkedService withPassword(AzureKeyVaultSecretReference password * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -128,10 +100,35 @@ public Object encryptedCredential() { * @return the SnowflakeLinkedService object itself. */ public SnowflakeLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SnowflakeLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SnowflakeLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SnowflakeLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SnowflakeLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SnowflakeLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -143,13 +140,14 @@ public SnowflakeLinkedService withEncryptedCredential(Object encryptedCredential @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SnowflakeLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model SnowflakeLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java index 758a2711e1c3a..98fd011967a3b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SparkLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,106 @@ /** Spark Server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Spark") +@JsonFlatten @Fluent -public final class SparkLinkedService extends LinkedService { +public class SparkLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkLinkedService.class); /* - * Spark Server linked service properties. + * IP address or host name of the Spark server */ - @JsonProperty(value = "typeProperties", required = true) - private SparkLinkedServiceTypeProperties innerTypeProperties = new SparkLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; - /** - * Get the innerTypeProperties property: Spark Server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The TCP port that the Spark server uses to listen for client + * connections. */ - private SparkLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.port", required = true) + private Object port; - /** {@inheritDoc} */ - @Override - public SparkLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The type of Spark server. + */ + @JsonProperty(value = "typeProperties.serverType") + private SparkServerType serverType; - /** {@inheritDoc} */ - @Override - public SparkLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The transport protocol to use in the Thrift layer. + */ + @JsonProperty(value = "typeProperties.thriftTransportProtocol") + private SparkThriftTransportProtocol thriftTransportProtocol; - /** {@inheritDoc} */ - @Override - public SparkLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The authentication method used to access the Spark server. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private SparkAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public SparkLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The user name that you use to access Spark Server. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /* + * The password corresponding to the user name that you provided in the + * Username field + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The partial URL corresponding to the Spark server. + */ + @JsonProperty(value = "typeProperties.httpPath") + private Object httpPath; + + /* + * Specifies whether the connections to the server are encrypted using SSL. + * The default value is false. + */ + @JsonProperty(value = "typeProperties.enableSsl") + private Object enableSsl; + + /* + * The full path of the .pem file containing trusted CA certificates for + * verifying the server when connecting over SSL. This property can only be + * set when using SSL on self-hosted IR. The default value is the + * cacerts.pem file installed with the IR. + */ + @JsonProperty(value = "typeProperties.trustedCertPath") + private Object trustedCertPath; + + /* + * Specifies whether to use a CA certificate from the system trust store or + * from a specified PEM file. The default value is false. + */ + @JsonProperty(value = "typeProperties.useSystemTrustStore") + private Object useSystemTrustStore; + + /* + * Specifies whether to require a CA-issued SSL certificate name to match + * the host name of the server when connecting over SSL. The default value + * is false. + */ + @JsonProperty(value = "typeProperties.allowHostNameCNMismatch") + private Object allowHostnameCNMismatch; + + /* + * Specifies whether to allow self-signed certificates from the server. The + * default value is false. + */ + @JsonProperty(value = "typeProperties.allowSelfSignedServerCert") + private Object allowSelfSignedServerCert; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the host property: IP address or host name of the Spark server. @@ -70,7 +124,7 @@ public SparkLinkedService withAnnotations(List annotations) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -80,10 +134,7 @@ public Object host() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -93,7 +144,7 @@ public SparkLinkedService withHost(Object host) { * @return the port value. */ public Object port() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port(); + return this.port; } /** @@ -103,10 +154,7 @@ public Object port() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withPort(Object port) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPort(port); + this.port = port; return this; } @@ -116,7 +164,7 @@ public SparkLinkedService withPort(Object port) { * @return the serverType value. */ public SparkServerType serverType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serverType(); + return this.serverType; } /** @@ -126,10 +174,7 @@ public SparkServerType serverType() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withServerType(SparkServerType serverType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServerType(serverType); + this.serverType = serverType; return this; } @@ -139,7 +184,7 @@ public SparkLinkedService withServerType(SparkServerType serverType) { * @return the thriftTransportProtocol value. */ public SparkThriftTransportProtocol thriftTransportProtocol() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().thriftTransportProtocol(); + return this.thriftTransportProtocol; } /** @@ -149,10 +194,7 @@ public SparkThriftTransportProtocol thriftTransportProtocol() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withThriftTransportProtocol(SparkThriftTransportProtocol thriftTransportProtocol) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withThriftTransportProtocol(thriftTransportProtocol); + this.thriftTransportProtocol = thriftTransportProtocol; return this; } @@ -162,7 +204,7 @@ public SparkLinkedService withThriftTransportProtocol(SparkThriftTransportProtoc * @return the authenticationType value. */ public SparkAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -172,10 +214,7 @@ public SparkAuthenticationType authenticationType() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withAuthenticationType(SparkAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -185,7 +224,7 @@ public SparkLinkedService withAuthenticationType(SparkAuthenticationType authent * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -195,10 +234,7 @@ public Object username() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -208,7 +244,7 @@ public SparkLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -218,10 +254,7 @@ public SecretBase password() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -231,7 +264,7 @@ public SparkLinkedService withPassword(SecretBase password) { * @return the httpPath value. */ public Object httpPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().httpPath(); + return this.httpPath; } /** @@ -241,10 +274,7 @@ public Object httpPath() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withHttpPath(Object httpPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHttpPath(httpPath); + this.httpPath = httpPath; return this; } @@ -255,7 +285,7 @@ public SparkLinkedService withHttpPath(Object httpPath) { * @return the enableSsl value. */ public Object enableSsl() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl(); + return this.enableSsl; } /** @@ -266,10 +296,7 @@ public Object enableSsl() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withEnableSsl(Object enableSsl) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEnableSsl(enableSsl); + this.enableSsl = enableSsl; return this; } @@ -281,7 +308,7 @@ public SparkLinkedService withEnableSsl(Object enableSsl) { * @return the trustedCertPath value. */ public Object trustedCertPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath(); + return this.trustedCertPath; } /** @@ -293,10 +320,7 @@ public Object trustedCertPath() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withTrustedCertPath(Object trustedCertPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withTrustedCertPath(trustedCertPath); + this.trustedCertPath = trustedCertPath; return this; } @@ -307,7 +331,7 @@ public SparkLinkedService withTrustedCertPath(Object trustedCertPath) { * @return the useSystemTrustStore value. */ public Object useSystemTrustStore() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore(); + return this.useSystemTrustStore; } /** @@ -318,10 +342,7 @@ public Object useSystemTrustStore() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore); + this.useSystemTrustStore = useSystemTrustStore; return this; } @@ -332,7 +353,7 @@ public SparkLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { * @return the allowHostnameCNMismatch value. */ public Object allowHostnameCNMismatch() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch(); + return this.allowHostnameCNMismatch; } /** @@ -343,10 +364,7 @@ public Object allowHostnameCNMismatch() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch); + this.allowHostnameCNMismatch = allowHostnameCNMismatch; return this; } @@ -357,7 +375,7 @@ public SparkLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMism * @return the allowSelfSignedServerCert value. */ public Object allowSelfSignedServerCert() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert(); + return this.allowSelfSignedServerCert; } /** @@ -368,10 +386,7 @@ public Object allowSelfSignedServerCert() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert); + this.allowSelfSignedServerCert = allowSelfSignedServerCert; return this; } @@ -382,7 +397,7 @@ public SparkLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedSe * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -393,10 +408,35 @@ public Object encryptedCredential() { * @return the SparkLinkedService object itself. */ public SparkLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -408,13 +448,24 @@ public SparkLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (host() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property host in model SparkLinkedService")); + } + if (port() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property port in model SparkLinkedService")); + } + if (authenticationType() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SparkLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property authenticationType in model SparkLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java index dccaf1368f5d1..ae9556b7cc101 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SparkObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SparkDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Spark Server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SparkObject") +@JsonFlatten @Fluent -public final class SparkObjectDataset extends Dataset { +public class SparkObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkObjectDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private SparkDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Spark. Type: string (or Expression with resultType + * string). */ - private SparkDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SparkObjectDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Spark. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public SparkObjectDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the SparkObjectDataset object itself. */ public SparkObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public SparkObjectDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the SparkObjectDataset object itself. */ public SparkObjectDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Spark. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Spark. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Spark. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the SparkObjectDataset object itself. */ - public SparkObjectDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SparkDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public SparkObjectDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public SparkObjectDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public SparkObjectDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java index 574eb5d94d921..dd078b8dcb9b4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,44 @@ /** SQL Server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SqlServer") +@JsonFlatten @Fluent -public final class SqlServerLinkedService extends LinkedService { +public class SqlServerLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerLinkedService.class); /* - * SQL Server linked service properties. + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private SqlServerLinkedServiceTypeProperties innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; - /** - * Get the innerTypeProperties property: SQL Server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The on-premises Windows authentication user name. Type: string (or + * Expression with resultType string). */ - private SqlServerLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + @JsonProperty(value = "typeProperties.userName") + private Object username; - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The on-premises Windows authentication password. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; - /** {@inheritDoc} */ - @Override - public SqlServerLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Sql always encrypted properties. + */ + @JsonProperty(value = "typeProperties.alwaysEncryptedSettings") + private SqlAlwaysEncryptedProperties alwaysEncryptedSettings; /** * Get the connectionString property: The connection string. Type: string, SecureString or @@ -71,7 +63,7 @@ public SqlServerLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +74,7 @@ public Object connectionString() { * @return the SqlServerLinkedService object itself. */ public SqlServerLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -96,7 +85,7 @@ public SqlServerLinkedService withConnectionString(Object connectionString) { * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -107,10 +96,7 @@ public Object username() { * @return the SqlServerLinkedService object itself. */ public SqlServerLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -120,7 +106,7 @@ public SqlServerLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -130,10 +116,7 @@ public SecretBase password() { * @return the SqlServerLinkedService object itself. */ public SqlServerLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -144,7 +127,7 @@ public SqlServerLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -155,10 +138,7 @@ public Object encryptedCredential() { * @return the SqlServerLinkedService object itself. */ public SqlServerLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; return this; } @@ -168,7 +148,7 @@ public SqlServerLinkedService withEncryptedCredential(Object encryptedCredential * @return the alwaysEncryptedSettings value. */ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().alwaysEncryptedSettings(); + return this.alwaysEncryptedSettings; } /** @@ -178,10 +158,35 @@ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() { * @return the SqlServerLinkedService object itself. */ public SqlServerLinkedService withAlwaysEncryptedSettings(SqlAlwaysEncryptedProperties alwaysEncryptedSettings) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAlwaysEncryptedSettings(alwaysEncryptedSettings); + this.alwaysEncryptedSettings = alwaysEncryptedSettings; + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -193,13 +198,17 @@ public SqlServerLinkedService withAlwaysEncryptedSettings(SqlAlwaysEncryptedProp @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (connectionString() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SqlServerLinkedService")); - } else { - innerTypeProperties().validate(); + "Missing required property connectionString in model SqlServerLinkedService")); + } + if (password() != null) { + password().validate(); + } + if (alwaysEncryptedSettings() != null) { + alwaysEncryptedSettings().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java index 37cd3ca7dda01..f5a6f4139112f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerStoredProcedureActivity.java @@ -5,9 +5,10 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerStoredProcedureActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,24 +18,67 @@ /** SQL stored procedure activity type. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SqlServerStoredProcedure") +@JsonFlatten @Fluent -public final class SqlServerStoredProcedureActivity extends ExecutionActivity { +public class SqlServerStoredProcedureActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerStoredProcedureActivity.class); /* - * SQL stored procedure activity properties. + * Stored procedure name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private SqlServerStoredProcedureActivityTypeProperties innerTypeProperties = - new SqlServerStoredProcedureActivityTypeProperties(); + @JsonProperty(value = "typeProperties.storedProcedureName", required = true) + private Object storedProcedureName; + + /* + * Value and type setting for stored procedure parameters. Example: + * "{Parameter1: {value: "1", type: "int"}}". + */ + @JsonProperty(value = "typeProperties.storedProcedureParameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map storedProcedureParameters; + + /** + * Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). + * + * @return the storedProcedureName value. + */ + public Object storedProcedureName() { + return this.storedProcedureName; + } + + /** + * Set the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). + * + * @param storedProcedureName the storedProcedureName value to set. + * @return the SqlServerStoredProcedureActivity object itself. + */ + public SqlServerStoredProcedureActivity withStoredProcedureName(Object storedProcedureName) { + this.storedProcedureName = storedProcedureName; + return this; + } + + /** + * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: + * "{Parameter1: {value: "1", type: "int"}}". + * + * @return the storedProcedureParameters value. + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } /** - * Get the innerTypeProperties property: SQL stored procedure activity properties. + * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: + * "{Parameter1: {value: "1", type: "int"}}". * - * @return the innerTypeProperties value. + * @param storedProcedureParameters the storedProcedureParameters value to set. + * @return the SqlServerStoredProcedureActivity object itself. */ - private SqlServerStoredProcedureActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SqlServerStoredProcedureActivity withStoredProcedureParameters( + Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; } /** {@inheritDoc} */ @@ -79,55 +123,6 @@ public SqlServerStoredProcedureActivity withUserProperties(List us return this; } - /** - * Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @return the storedProcedureName value. - */ - public Object storedProcedureName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storedProcedureName(); - } - - /** - * Set the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string). - * - * @param storedProcedureName the storedProcedureName value to set. - * @return the SqlServerStoredProcedureActivity object itself. - */ - public SqlServerStoredProcedureActivity withStoredProcedureName(Object storedProcedureName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerStoredProcedureActivityTypeProperties(); - } - this.innerTypeProperties().withStoredProcedureName(storedProcedureName); - return this; - } - - /** - * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @return the storedProcedureParameters value. - */ - public Map storedProcedureParameters() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storedProcedureParameters(); - } - - /** - * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: - * "{Parameter1: {value: "1", type: "int"}}". - * - * @param storedProcedureParameters the storedProcedureParameters value to set. - * @return the SqlServerStoredProcedureActivity object itself. - */ - public SqlServerStoredProcedureActivity withStoredProcedureParameters( - Map storedProcedureParameters) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerStoredProcedureActivityTypeProperties(); - } - this.innerTypeProperties().withStoredProcedureParameters(storedProcedureParameters); - return this; - } - /** * Validates the instance. * @@ -136,13 +131,21 @@ public SqlServerStoredProcedureActivity withStoredProcedureParameters( @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (storedProcedureName() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property innerTypeProperties in model SqlServerStoredProcedureActivity")); - } else { - innerTypeProperties().validate(); + "Missing required property storedProcedureName in model SqlServerStoredProcedureActivity")); + } + if (storedProcedureParameters() != null) { + storedProcedureParameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java index 8162f0f79319c..c9455d7eca6d3 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SqlServerTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SqlServerTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** The on-premises SQL Server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SqlServerTable") +@JsonFlatten @Fluent -public final class SqlServerTableDataset extends Dataset { +public class SqlServerTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlServerTableDataset.class); /* - * On-premises SQL Server dataset properties. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private SqlServerTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: On-premises SQL Server dataset properties. - * - * @return the innerTypeProperties value. + /* + * The schema name of the SQL Server dataset. Type: string (or Expression + * with resultType string). */ - private SqlServerTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public SqlServerTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The table name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public SqlServerTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,35 +61,29 @@ public Object tableName() { * @return the SqlServerTableDataset object itself. */ public SqlServerTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } /** - * Get the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). + * Get the schemaTypePropertiesSchema property: The schema name of the SQL Server dataset. Type: string (or + * Expression with resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the SQL Server dataset. Type: string (or Expression with resultType - * string). + * Set the schemaTypePropertiesSchema property: The schema name of the SQL Server dataset. Type: string (or + * Expression with resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the SqlServerTableDataset object itself. */ - public SqlServerTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public SqlServerTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; return this; } @@ -142,7 +94,7 @@ public SqlServerTableDataset withSchemaTypePropertiesSchema(Object schema) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -153,10 +105,56 @@ public Object table() { * @return the SqlServerTableDataset object itself. */ public SqlServerTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SqlServerTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public SqlServerTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -168,8 +166,5 @@ public SqlServerTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java index 112919a8cc9de..5e6d1aecb7b49 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SquareLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,72 @@ /** Square Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Square") +@JsonFlatten @Fluent -public final class SquareLinkedService extends LinkedService { +public class SquareLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SquareLinkedService.class); /* - * Square Service linked service properties. + * Properties used to connect to Square. It is mutually exclusive with any + * other properties in the linked service. Type: object. */ - @JsonProperty(value = "typeProperties", required = true) - private SquareLinkedServiceTypeProperties innerTypeProperties = new SquareLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionProperties") + private Object connectionProperties; - /** - * Get the innerTypeProperties property: Square Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The URL of the Square instance. (i.e. mystore.mysquare.com) */ - private SquareLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.host") + private Object host; - /** {@inheritDoc} */ - @Override - public SquareLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The client ID associated with your Square application. + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; - /** {@inheritDoc} */ - @Override - public SquareLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The client secret associated with your Square application. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; - /** {@inheritDoc} */ - @Override - public SquareLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * The redirect URL assigned in the Square application dashboard. (i.e. + * http://localhost:2500) + */ + @JsonProperty(value = "typeProperties.redirectUri") + private Object redirectUri; - /** {@inheritDoc} */ - @Override - public SquareLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; + + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionProperties property: Properties used to connect to Square. It is mutually exclusive with any @@ -71,7 +91,7 @@ public SquareLinkedService withAnnotations(List annotations) { * @return the connectionProperties value. */ public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); + return this.connectionProperties; } /** @@ -82,10 +102,7 @@ public Object connectionProperties() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); + this.connectionProperties = connectionProperties; return this; } @@ -95,7 +112,7 @@ public SquareLinkedService withConnectionProperties(Object connectionProperties) * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -105,10 +122,7 @@ public Object host() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -118,7 +132,7 @@ public SquareLinkedService withHost(Object host) { * @return the clientId value. */ public Object clientId() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientId(); + return this.clientId; } /** @@ -128,10 +142,7 @@ public Object clientId() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withClientId(Object clientId) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientId(clientId); + this.clientId = clientId; return this; } @@ -141,7 +152,7 @@ public SquareLinkedService withClientId(Object clientId) { * @return the clientSecret value. */ public SecretBase clientSecret() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().clientSecret(); + return this.clientSecret; } /** @@ -151,10 +162,7 @@ public SecretBase clientSecret() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withClientSecret(SecretBase clientSecret) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withClientSecret(clientSecret); + this.clientSecret = clientSecret; return this; } @@ -165,7 +173,7 @@ public SquareLinkedService withClientSecret(SecretBase clientSecret) { * @return the redirectUri value. */ public Object redirectUri() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().redirectUri(); + return this.redirectUri; } /** @@ -176,10 +184,7 @@ public Object redirectUri() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withRedirectUri(Object redirectUri) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withRedirectUri(redirectUri); + this.redirectUri = redirectUri; return this; } @@ -190,7 +195,7 @@ public SquareLinkedService withRedirectUri(Object redirectUri) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -201,10 +206,7 @@ public Object useEncryptedEndpoints() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -215,7 +217,7 @@ public SquareLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoint * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -226,10 +228,7 @@ public Object useHostVerification() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -240,7 +239,7 @@ public SquareLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -251,10 +250,7 @@ public Object usePeerVerification() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -265,7 +261,7 @@ public SquareLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -276,10 +272,35 @@ public Object encryptedCredential() { * @return the SquareLinkedService object itself. */ public SquareLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SquareLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SquareLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SquareLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SquareLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SquareLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -291,13 +312,8 @@ public SquareLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SquareLinkedService")); - } else { - innerTypeProperties().validate(); + if (clientSecret() != null) { + clientSecret().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java index 8663a3931f5cb..ad67eb6db0832 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SquareObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Square Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SquareObject") +@JsonFlatten @Fluent -public final class SquareObjectDataset extends Dataset { +public class SquareObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SquareObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the SquareObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SquareObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public SquareObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SquareObjectDataset object itself. - */ - public SquareObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public SquareObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java index f4db88bcb1d12..331cde3fb254b 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisLogLocation.java @@ -5,14 +5,15 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SsisLogLocationTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** SSIS package execution log location. */ +@JsonFlatten @Fluent -public final class SsisLogLocation { +public class SsisLogLocation { @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisLogLocation.class); /* @@ -29,10 +30,18 @@ public final class SsisLogLocation { private SsisLogLocationType type; /* - * SSIS package execution log location properties. + * The package execution log access credential. */ - @JsonProperty(value = "typeProperties", required = true) - private SsisLogLocationTypeProperties innerTypeProperties = new SsisLogLocationTypeProperties(); + @JsonProperty(value = "typeProperties.accessCredential") + private SsisAccessCredential accessCredential; + + /* + * Specifies the interval to refresh log. The default interval is 5 + * minutes. Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "typeProperties.logRefreshInterval") + private Object logRefreshInterval; /** * Get the logPath property: The SSIS package execution log path. Type: string (or Expression with resultType @@ -76,22 +85,13 @@ public SsisLogLocation withType(SsisLogLocationType type) { return this; } - /** - * Get the innerTypeProperties property: SSIS package execution log location properties. - * - * @return the innerTypeProperties value. - */ - private SsisLogLocationTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - /** * Get the accessCredential property: The package execution log access credential. * * @return the accessCredential value. */ public SsisAccessCredential accessCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessCredential(); + return this.accessCredential; } /** @@ -101,10 +101,7 @@ public SsisAccessCredential accessCredential() { * @return the SsisLogLocation object itself. */ public SsisLogLocation withAccessCredential(SsisAccessCredential accessCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisLogLocationTypeProperties(); - } - this.innerTypeProperties().withAccessCredential(accessCredential); + this.accessCredential = accessCredential; return this; } @@ -116,7 +113,7 @@ public SsisLogLocation withAccessCredential(SsisAccessCredential accessCredentia * @return the logRefreshInterval value. */ public Object logRefreshInterval() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().logRefreshInterval(); + return this.logRefreshInterval; } /** @@ -128,10 +125,7 @@ public Object logRefreshInterval() { * @return the SsisLogLocation object itself. */ public SsisLogLocation withLogRefreshInterval(Object logRefreshInterval) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisLogLocationTypeProperties(); - } - this.innerTypeProperties().withLogRefreshInterval(logRefreshInterval); + this.logRefreshInterval = logRefreshInterval; return this; } @@ -151,13 +145,8 @@ public void validate() { .logExceptionAsError( new IllegalArgumentException("Missing required property type in model SsisLogLocation")); } - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SsisLogLocation")); - } else { - innerTypeProperties().validate(); + if (accessCredential() != null) { + accessCredential().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java index 81a9773561b75..50f19ad5c4a0c 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SsisPackageLocation.java @@ -5,15 +5,16 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SsisPackageLocationTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** SSIS package location. */ +@JsonFlatten @Fluent -public final class SsisPackageLocation { +public class SsisPackageLocation { @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisPackageLocation.class); /* @@ -30,10 +31,54 @@ public final class SsisPackageLocation { private SsisPackageLocationType type; /* - * SSIS package location properties. + * Password of the package. */ - @JsonProperty(value = "typeProperties") - private SsisPackageLocationTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.packagePassword") + private SecretBase packagePassword; + + /* + * The package access credential. + */ + @JsonProperty(value = "typeProperties.accessCredential") + private SsisAccessCredential accessCredential; + + /* + * The configuration file of the package execution. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.configurationPath") + private Object configurationPath; + + /* + * The configuration file access credential. + */ + @JsonProperty(value = "typeProperties.configurationAccessCredential") + private SsisAccessCredential configurationAccessCredential; + + /* + * The package name. + */ + @JsonProperty(value = "typeProperties.packageName") + private String packageName; + + /* + * The embedded package content. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.packageContent") + private Object packageContent; + + /* + * The embedded package last modified date. + */ + @JsonProperty(value = "typeProperties.packageLastModifiedDate") + private String packageLastModifiedDate; + + /* + * The embedded child package list. + */ + @JsonProperty(value = "typeProperties.childPackages") + private List childPackages; /** * Get the packagePath property: The SSIS package path. Type: string (or Expression with resultType string). @@ -75,22 +120,13 @@ public SsisPackageLocation withType(SsisPackageLocationType type) { return this; } - /** - * Get the innerTypeProperties property: SSIS package location properties. - * - * @return the innerTypeProperties value. - */ - private SsisPackageLocationTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - /** * Get the packagePassword property: Password of the package. * * @return the packagePassword value. */ public SecretBase packagePassword() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packagePassword(); + return this.packagePassword; } /** @@ -100,10 +136,7 @@ public SecretBase packagePassword() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withPackagePassword(SecretBase packagePassword) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackagePassword(packagePassword); + this.packagePassword = packagePassword; return this; } @@ -113,7 +146,7 @@ public SsisPackageLocation withPackagePassword(SecretBase packagePassword) { * @return the accessCredential value. */ public SsisAccessCredential accessCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessCredential(); + return this.accessCredential; } /** @@ -123,10 +156,7 @@ public SsisAccessCredential accessCredential() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withAccessCredential(SsisAccessCredential accessCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withAccessCredential(accessCredential); + this.accessCredential = accessCredential; return this; } @@ -137,7 +167,7 @@ public SsisPackageLocation withAccessCredential(SsisAccessCredential accessCrede * @return the configurationPath value. */ public Object configurationPath() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().configurationPath(); + return this.configurationPath; } /** @@ -148,10 +178,7 @@ public Object configurationPath() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withConfigurationPath(Object configurationPath) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withConfigurationPath(configurationPath); + this.configurationPath = configurationPath; return this; } @@ -161,7 +188,7 @@ public SsisPackageLocation withConfigurationPath(Object configurationPath) { * @return the configurationAccessCredential value. */ public SsisAccessCredential configurationAccessCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().configurationAccessCredential(); + return this.configurationAccessCredential; } /** @@ -171,10 +198,7 @@ public SsisAccessCredential configurationAccessCredential() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withConfigurationAccessCredential(SsisAccessCredential configurationAccessCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withConfigurationAccessCredential(configurationAccessCredential); + this.configurationAccessCredential = configurationAccessCredential; return this; } @@ -184,7 +208,7 @@ public SsisPackageLocation withConfigurationAccessCredential(SsisAccessCredentia * @return the packageName value. */ public String packageName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageName(); + return this.packageName; } /** @@ -194,10 +218,7 @@ public String packageName() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withPackageName(String packageName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackageName(packageName); + this.packageName = packageName; return this; } @@ -208,7 +229,7 @@ public SsisPackageLocation withPackageName(String packageName) { * @return the packageContent value. */ public Object packageContent() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageContent(); + return this.packageContent; } /** @@ -219,10 +240,7 @@ public Object packageContent() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withPackageContent(Object packageContent) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackageContent(packageContent); + this.packageContent = packageContent; return this; } @@ -232,7 +250,7 @@ public SsisPackageLocation withPackageContent(Object packageContent) { * @return the packageLastModifiedDate value. */ public String packageLastModifiedDate() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().packageLastModifiedDate(); + return this.packageLastModifiedDate; } /** @@ -242,10 +260,7 @@ public String packageLastModifiedDate() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withPackageLastModifiedDate(String packageLastModifiedDate) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withPackageLastModifiedDate(packageLastModifiedDate); + this.packageLastModifiedDate = packageLastModifiedDate; return this; } @@ -255,7 +270,7 @@ public SsisPackageLocation withPackageLastModifiedDate(String packageLastModifie * @return the childPackages value. */ public List childPackages() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().childPackages(); + return this.childPackages; } /** @@ -265,10 +280,7 @@ public List childPackages() { * @return the SsisPackageLocation object itself. */ public SsisPackageLocation withChildPackages(List childPackages) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SsisPackageLocationTypeProperties(); - } - this.innerTypeProperties().withChildPackages(childPackages); + this.childPackages = childPackages; return this; } @@ -278,8 +290,17 @@ public SsisPackageLocation withChildPackages(List childPackage * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (packagePassword() != null) { + packagePassword().validate(); + } + if (accessCredential() != null) { + accessCredential().validate(); + } + if (configurationAccessCredential() != null) { + configurationAccessCredential().validate(); + } + if (childPackages() != null) { + childPackages().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java index dbb4c2502c306..35b788738a333 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SwitchActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SwitchActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,52 +19,33 @@ */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Switch") +@JsonFlatten @Fluent -public final class SwitchActivity extends ControlActivity { +public class SwitchActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(SwitchActivity.class); /* - * Switch activity properties. + * An expression that would evaluate to a string or integer. This is used + * to determine the block of activities in cases that will be executed. */ - @JsonProperty(value = "typeProperties", required = true) - private SwitchActivityTypeProperties innerTypeProperties = new SwitchActivityTypeProperties(); + @JsonProperty(value = "typeProperties.on", required = true) + private Expression on; - /** - * Get the innerTypeProperties property: Switch activity properties. - * - * @return the innerTypeProperties value. + /* + * List of cases that correspond to expected values of the 'on' property. + * This is an optional property and if not provided, the activity will + * execute activities provided in defaultActivities. */ - private SwitchActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.cases") + private List cases; - /** {@inheritDoc} */ - @Override - public SwitchActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public SwitchActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * List of activities to execute if no case condition is satisfied. This is + * an optional property and if not provided, the activity will exit without + * any action. + */ + @JsonProperty(value = "typeProperties.defaultActivities") + private List defaultActivities; /** * Get the on property: An expression that would evaluate to a string or integer. This is used to determine the @@ -73,7 +54,7 @@ public SwitchActivity withUserProperties(List userProperties) { * @return the on value. */ public Expression on() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().on(); + return this.on; } /** @@ -84,10 +65,7 @@ public Expression on() { * @return the SwitchActivity object itself. */ public SwitchActivity withOn(Expression on) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SwitchActivityTypeProperties(); - } - this.innerTypeProperties().withOn(on); + this.on = on; return this; } @@ -98,7 +76,7 @@ public SwitchActivity withOn(Expression on) { * @return the cases value. */ public List cases() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().cases(); + return this.cases; } /** @@ -109,10 +87,7 @@ public List cases() { * @return the SwitchActivity object itself. */ public SwitchActivity withCases(List cases) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SwitchActivityTypeProperties(); - } - this.innerTypeProperties().withCases(cases); + this.cases = cases; return this; } @@ -123,7 +98,7 @@ public SwitchActivity withCases(List cases) { * @return the defaultActivities value. */ public List defaultActivities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().defaultActivities(); + return this.defaultActivities; } /** @@ -134,10 +109,35 @@ public List defaultActivities() { * @return the SwitchActivity object itself. */ public SwitchActivity withDefaultActivities(List defaultActivities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SwitchActivityTypeProperties(); - } - this.innerTypeProperties().withDefaultActivities(defaultActivities); + this.defaultActivities = defaultActivities; + return this; + } + + /** {@inheritDoc} */ + @Override + public SwitchActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public SwitchActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SwitchActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public SwitchActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -149,13 +149,18 @@ public SwitchActivity withDefaultActivities(List defaultActivities) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (on() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SwitchActivity")); + new IllegalArgumentException("Missing required property on in model SwitchActivity")); } else { - innerTypeProperties().validate(); + on().validate(); + } + if (cases() != null) { + cases().forEach(e -> e.validate()); + } + if (defaultActivities() != null) { + defaultActivities().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java index f528589a4765b..5ee4066aec56f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,58 @@ /** Linked service for Sybase data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Sybase") +@JsonFlatten @Fluent -public final class SybaseLinkedService extends LinkedService { +public class SybaseLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(SybaseLinkedService.class); /* - * Sybase linked service properties. + * Server name for connection. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties", required = true) - private SybaseLinkedServiceTypeProperties innerTypeProperties = new SybaseLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; - /** - * Get the innerTypeProperties property: Sybase linked service properties. - * - * @return the innerTypeProperties value. + /* + * Database name for connection. Type: string (or Expression with + * resultType string). */ - private SybaseLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * Schema name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schema; - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * AuthenticationType to be used for connection. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private SybaseAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public SybaseLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Password for authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the server property: Server name for connection. Type: string (or Expression with resultType string). @@ -70,7 +76,7 @@ public SybaseLinkedService withAnnotations(List annotations) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -80,10 +86,7 @@ public Object server() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -93,7 +96,7 @@ public SybaseLinkedService withServer(Object server) { * @return the database value. */ public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); + return this.database; } /** @@ -103,10 +106,7 @@ public Object database() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); + this.database = database; return this; } @@ -116,7 +116,7 @@ public SybaseLinkedService withDatabase(Object database) { * @return the schema value. */ public Object schema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schema; } /** @@ -126,10 +126,7 @@ public Object schema() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + this.schema = schema; return this; } @@ -139,7 +136,7 @@ public SybaseLinkedService withSchema(Object schema) { * @return the authenticationType value. */ public SybaseAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -149,10 +146,7 @@ public SybaseAuthenticationType authenticationType() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withAuthenticationType(SybaseAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -162,7 +156,7 @@ public SybaseLinkedService withAuthenticationType(SybaseAuthenticationType authe * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -172,10 +166,7 @@ public Object username() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -185,7 +176,7 @@ public SybaseLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -195,10 +186,7 @@ public SecretBase password() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -209,7 +197,7 @@ public SybaseLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -220,10 +208,35 @@ public Object encryptedCredential() { * @return the SybaseLinkedService object itself. */ public SybaseLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public SybaseLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public SybaseLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public SybaseLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public SybaseLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -235,13 +248,18 @@ public SybaseLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (server() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SybaseLinkedService")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property server in model SybaseLinkedService")); + } + if (database() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property database in model SybaseLinkedService")); + } + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java index 92def68839cdf..e19db4e78d30e 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/SybaseTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.SybaseTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,36 @@ /** The Sybase table dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SybaseTable") +@JsonFlatten @Fluent -public final class SybaseTableDataset extends Dataset { +public class SybaseTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(SybaseTableDataset.class); /* - * Sybase table dataset properties. + * The Sybase table name. Type: string (or Expression with resultType + * string). */ - @JsonProperty(value = "typeProperties") - private SybaseTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Sybase table dataset properties. + * Get the tableName property: The Sybase table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The Sybase table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the SybaseTableDataset object itself. */ - private SybaseTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public SybaseTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +98,6 @@ public SybaseTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The Sybase table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the SybaseTableDataset object itself. - */ - public SybaseTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new SybaseTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +106,5 @@ public SybaseTableDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java index 42c17506fce94..8e38f9ae37673 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,51 @@ /** Linked service for Teradata data source. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Teradata") +@JsonFlatten @Fluent -public final class TeradataLinkedService extends LinkedService { +public class TeradataLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(TeradataLinkedService.class); /* - * Teradata linked service properties. + * Teradata ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private TeradataLinkedServiceTypeProperties innerTypeProperties = new TeradataLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Teradata linked service properties. - * - * @return the innerTypeProperties value. + /* + * Server name for connection. Type: string (or Expression with resultType + * string). */ - private TeradataLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.server") + private Object server; - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * AuthenticationType to be used for connection. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private TeradataAuthenticationType authenticationType; - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Password for authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; - /** {@inheritDoc} */ - @Override - public TeradataLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: Teradata ODBC connection string. Type: string, SecureString or @@ -71,7 +70,7 @@ public TeradataLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +81,7 @@ public Object connectionString() { * @return the TeradataLinkedService object itself. */ public TeradataLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +91,7 @@ public TeradataLinkedService withConnectionString(Object connectionString) { * @return the server value. */ public Object server() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().server(); + return this.server; } /** @@ -105,10 +101,7 @@ public Object server() { * @return the TeradataLinkedService object itself. */ public TeradataLinkedService withServer(Object server) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withServer(server); + this.server = server; return this; } @@ -118,7 +111,7 @@ public TeradataLinkedService withServer(Object server) { * @return the authenticationType value. */ public TeradataAuthenticationType authenticationType() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType(); + return this.authenticationType; } /** @@ -128,10 +121,7 @@ public TeradataAuthenticationType authenticationType() { * @return the TeradataLinkedService object itself. */ public TeradataLinkedService withAuthenticationType(TeradataAuthenticationType authenticationType) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAuthenticationType(authenticationType); + this.authenticationType = authenticationType; return this; } @@ -141,7 +131,7 @@ public TeradataLinkedService withAuthenticationType(TeradataAuthenticationType a * @return the username value. */ public Object username() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username(); + return this.username; } /** @@ -151,10 +141,7 @@ public Object username() { * @return the TeradataLinkedService object itself. */ public TeradataLinkedService withUsername(Object username) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsername(username); + this.username = username; return this; } @@ -164,7 +151,7 @@ public TeradataLinkedService withUsername(Object username) { * @return the password value. */ public SecretBase password() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password(); + return this.password; } /** @@ -174,10 +161,7 @@ public SecretBase password() { * @return the TeradataLinkedService object itself. */ public TeradataLinkedService withPassword(SecretBase password) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPassword(password); + this.password = password; return this; } @@ -188,7 +172,7 @@ public TeradataLinkedService withPassword(SecretBase password) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -199,10 +183,35 @@ public Object encryptedCredential() { * @return the TeradataLinkedService object itself. */ public TeradataLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public TeradataLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public TeradataLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public TeradataLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public TeradataLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -214,13 +223,8 @@ public TeradataLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model TeradataLinkedService")); - } else { - innerTypeProperties().validate(); + if (password() != null) { + password().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java index 1220e2dbb9b12..16720538fc5f5 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TeradataTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TeradataTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,63 @@ /** The Teradata database dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("TeradataTable") +@JsonFlatten @Fluent -public final class TeradataTableDataset extends Dataset { +public class TeradataTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(TeradataTableDataset.class); /* - * Teradata dataset properties. + * The database name of Teradata. Type: string (or Expression with + * resultType string). */ - @JsonProperty(value = "typeProperties") - private TeradataTableDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.database") + private Object database; + + /* + * The table name of Teradata. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the database property: The database name of Teradata. Type: string (or Expression with resultType string). + * + * @return the database value. + */ + public Object database() { + return this.database; + } /** - * Get the innerTypeProperties property: Teradata dataset properties. + * Set the database property: The database name of Teradata. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param database the database value to set. + * @return the TeradataTableDataset object itself. */ - private TeradataTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public TeradataTableDataset withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the table property: The table name of Teradata. Type: string (or Expression with resultType string). + * + * @return the table value. + */ + public Object table() { + return this.table; + } + + /** + * Set the table property: The table name of Teradata. Type: string (or Expression with resultType string). + * + * @param table the table value to set. + * @return the TeradataTableDataset object itself. + */ + public TeradataTableDataset withTable(Object table) { + this.table = table; + return this; } /** {@inheritDoc} */ @@ -85,52 +125,6 @@ public TeradataTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @return the database value. - */ - public Object database() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().database(); - } - - /** - * Set the database property: The database name of Teradata. Type: string (or Expression with resultType string). - * - * @param database the database value to set. - * @return the TeradataTableDataset object itself. - */ - public TeradataTableDataset withDatabase(Object database) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataTableDatasetTypeProperties(); - } - this.innerTypeProperties().withDatabase(database); - return this; - } - - /** - * Get the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @return the table value. - */ - public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); - } - - /** - * Set the table property: The table name of Teradata. Type: string (or Expression with resultType string). - * - * @param table the table value to set. - * @return the TeradataTableDataset object itself. - */ - public TeradataTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TeradataTableDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); - return this; - } - /** * Validates the instance. * @@ -139,8 +133,5 @@ public TeradataTableDataset withTable(Object table) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java index 3ac305a07132b..1f380eb90f4a1 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/Transformation.java @@ -26,6 +26,12 @@ public class Transformation { @JsonProperty(value = "description") private String description; + /* + * Data flow Reference + */ + @JsonProperty(value = "flowlet") + private DataFlowReference flowlet; + /** * Get the name property: Transformation name. * @@ -66,6 +72,26 @@ public Transformation withDescription(String description) { return this; } + /** + * Get the flowlet property: Data flow Reference. + * + * @return the flowlet value. + */ + public DataFlowReference flowlet() { + return this.flowlet; + } + + /** + * Set the flowlet property: Data flow Reference. + * + * @param flowlet the flowlet value to set. + * @return the Transformation object itself. + */ + public Transformation withFlowlet(DataFlowReference flowlet) { + this.flowlet = flowlet; + return this; + } + /** * Validates the instance. * @@ -77,5 +103,8 @@ public void validate() { .logExceptionAsError( new IllegalArgumentException("Missing required property name in model Transformation")); } + if (flowlet() != null) { + flowlet().validate(); + } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java index 7a7551c82deae..1fe66846efba4 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/TumblingWindowTrigger.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.TumblingWindowTriggerTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -20,8 +20,9 @@ */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("TumblingWindowTrigger") +@JsonFlatten @Fluent -public final class TumblingWindowTrigger extends Trigger { +public class TumblingWindowTrigger extends Trigger { @JsonIgnore private final ClientLogger logger = new ClientLogger(TumblingWindowTrigger.class); /* @@ -32,10 +33,61 @@ public final class TumblingWindowTrigger extends Trigger { private TriggerPipelineReference pipeline; /* - * Tumbling Window Trigger properties. + * The frequency of the time windows. */ - @JsonProperty(value = "typeProperties", required = true) - private TumblingWindowTriggerTypeProperties innerTypeProperties = new TumblingWindowTriggerTypeProperties(); + @JsonProperty(value = "typeProperties.frequency", required = true) + private TumblingWindowFrequency frequency; + + /* + * The interval of the time windows. The minimum interval allowed is 15 + * Minutes. + */ + @JsonProperty(value = "typeProperties.interval", required = true) + private int interval; + + /* + * The start time for the time period for the trigger during which events + * are fired for windows that are ready. Only UTC time is currently + * supported. + */ + @JsonProperty(value = "typeProperties.startTime", required = true) + private OffsetDateTime startTime; + + /* + * The end time for the time period for the trigger during which events are + * fired for windows that are ready. Only UTC time is currently supported. + */ + @JsonProperty(value = "typeProperties.endTime") + private OffsetDateTime endTime; + + /* + * Specifies how long the trigger waits past due time before triggering new + * run. It doesn't alter window start and end time. The default is 0. Type: + * string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "typeProperties.delay") + private Object delay; + + /* + * The max number of parallel time windows (ready for execution) for which + * a new run is triggered. + */ + @JsonProperty(value = "typeProperties.maxConcurrency", required = true) + private int maxConcurrency; + + /* + * Retry policy that will be applied for failed pipeline runs. + */ + @JsonProperty(value = "typeProperties.retryPolicy") + private RetryPolicy retryPolicy; + + /* + * Triggers that this trigger depends on. Only tumbling window triggers are + * supported. + */ + @JsonProperty(value = "typeProperties.dependsOn") + private List dependsOn; /** * Get the pipeline property: Pipeline for which runs are created when an event is fired for trigger window that is @@ -59,36 +111,13 @@ public TumblingWindowTrigger withPipeline(TriggerPipelineReference pipeline) { return this; } - /** - * Get the innerTypeProperties property: Tumbling Window Trigger properties. - * - * @return the innerTypeProperties value. - */ - private TumblingWindowTriggerTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public TumblingWindowTrigger withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public TumblingWindowTrigger withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - /** * Get the frequency property: The frequency of the time windows. * * @return the frequency value. */ public TumblingWindowFrequency frequency() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().frequency(); + return this.frequency; } /** @@ -98,10 +127,7 @@ public TumblingWindowFrequency frequency() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withFrequency(TumblingWindowFrequency frequency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withFrequency(frequency); + this.frequency = frequency; return this; } @@ -111,7 +137,7 @@ public TumblingWindowTrigger withFrequency(TumblingWindowFrequency frequency) { * @return the interval value. */ public int interval() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().interval(); + return this.interval; } /** @@ -121,10 +147,7 @@ public int interval() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withInterval(int interval) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withInterval(interval); + this.interval = interval; return this; } @@ -135,7 +158,7 @@ public TumblingWindowTrigger withInterval(int interval) { * @return the startTime value. */ public OffsetDateTime startTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().startTime(); + return this.startTime; } /** @@ -146,10 +169,7 @@ public OffsetDateTime startTime() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withStartTime(OffsetDateTime startTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withStartTime(startTime); + this.startTime = startTime; return this; } @@ -160,7 +180,7 @@ public TumblingWindowTrigger withStartTime(OffsetDateTime startTime) { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endTime(); + return this.endTime; } /** @@ -171,10 +191,7 @@ public OffsetDateTime endTime() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withEndTime(OffsetDateTime endTime) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withEndTime(endTime); + this.endTime = endTime; return this; } @@ -186,7 +203,7 @@ public TumblingWindowTrigger withEndTime(OffsetDateTime endTime) { * @return the delay value. */ public Object delay() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().delay(); + return this.delay; } /** @@ -198,10 +215,7 @@ public Object delay() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withDelay(Object delay) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withDelay(delay); + this.delay = delay; return this; } @@ -212,7 +226,7 @@ public TumblingWindowTrigger withDelay(Object delay) { * @return the maxConcurrency value. */ public int maxConcurrency() { - return this.innerTypeProperties() == null ? 0 : this.innerTypeProperties().maxConcurrency(); + return this.maxConcurrency; } /** @@ -223,10 +237,7 @@ public int maxConcurrency() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withMaxConcurrency(int maxConcurrency) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withMaxConcurrency(maxConcurrency); + this.maxConcurrency = maxConcurrency; return this; } @@ -236,7 +247,7 @@ public TumblingWindowTrigger withMaxConcurrency(int maxConcurrency) { * @return the retryPolicy value. */ public RetryPolicy retryPolicy() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().retryPolicy(); + return this.retryPolicy; } /** @@ -246,10 +257,7 @@ public RetryPolicy retryPolicy() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withRetryPolicy(RetryPolicy retryPolicy) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withRetryPolicy(retryPolicy); + this.retryPolicy = retryPolicy; return this; } @@ -259,7 +267,7 @@ public TumblingWindowTrigger withRetryPolicy(RetryPolicy retryPolicy) { * @return the dependsOn value. */ public List dependsOn() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dependsOn(); + return this.dependsOn; } /** @@ -269,10 +277,21 @@ public List dependsOn() { * @return the TumblingWindowTrigger object itself. */ public TumblingWindowTrigger withDependsOn(List dependsOn) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new TumblingWindowTriggerTypeProperties(); - } - this.innerTypeProperties().withDependsOn(dependsOn); + this.dependsOn = dependsOn; + return this; + } + + /** {@inheritDoc} */ + @Override + public TumblingWindowTrigger withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public TumblingWindowTrigger withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -291,13 +310,21 @@ public void validate() { } else { pipeline().validate(); } - if (innerTypeProperties() == null) { + if (frequency() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model TumblingWindowTrigger")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property frequency in model TumblingWindowTrigger")); + } + if (startTime() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property startTime in model TumblingWindowTrigger")); + } + if (retryPolicy() != null) { + retryPolicy().validate(); + } + if (dependsOn() != null) { + dependsOn().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java index b2c41eb15bd76..a81ac3b70e018 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/UntilActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.UntilActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,52 +19,34 @@ */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Until") +@JsonFlatten @Fluent -public final class UntilActivity extends ControlActivity { +public class UntilActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(UntilActivity.class); /* - * Until activity properties. + * An expression that would evaluate to Boolean. The loop will continue + * until this expression evaluates to true */ - @JsonProperty(value = "typeProperties", required = true) - private UntilActivityTypeProperties innerTypeProperties = new UntilActivityTypeProperties(); + @JsonProperty(value = "typeProperties.expression", required = true) + private Expression expression; - /** - * Get the innerTypeProperties property: Until activity properties. - * - * @return the innerTypeProperties value. + /* + * Specifies the timeout for the activity to run. If there is no value + * specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as + * default. Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or + * Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). */ - private UntilActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.timeout") + private Object timeout; - /** {@inheritDoc} */ - @Override - public UntilActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } - - /** {@inheritDoc} */ - @Override - public UntilActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * List of activities to execute. + */ + @JsonProperty(value = "typeProperties.activities", required = true) + private List activities; /** * Get the expression property: An expression that would evaluate to Boolean. The loop will continue until this @@ -73,7 +55,7 @@ public UntilActivity withUserProperties(List userProperties) { * @return the expression value. */ public Expression expression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().expression(); + return this.expression; } /** @@ -84,10 +66,7 @@ public Expression expression() { * @return the UntilActivity object itself. */ public UntilActivity withExpression(Expression expression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new UntilActivityTypeProperties(); - } - this.innerTypeProperties().withExpression(expression); + this.expression = expression; return this; } @@ -100,7 +79,7 @@ public UntilActivity withExpression(Expression expression) { * @return the timeout value. */ public Object timeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout(); + return this.timeout; } /** @@ -113,10 +92,7 @@ public Object timeout() { * @return the UntilActivity object itself. */ public UntilActivity withTimeout(Object timeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new UntilActivityTypeProperties(); - } - this.innerTypeProperties().withTimeout(timeout); + this.timeout = timeout; return this; } @@ -126,7 +102,7 @@ public UntilActivity withTimeout(Object timeout) { * @return the activities value. */ public List activities() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().activities(); + return this.activities; } /** @@ -136,10 +112,35 @@ public List activities() { * @return the UntilActivity object itself. */ public UntilActivity withActivities(List activities) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new UntilActivityTypeProperties(); - } - this.innerTypeProperties().withActivities(activities); + this.activities = activities; + return this; + } + + /** {@inheritDoc} */ + @Override + public UntilActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public UntilActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public UntilActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public UntilActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -151,13 +152,19 @@ public UntilActivity withActivities(List activities) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (expression() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property expression in model UntilActivity")); + } else { + expression().validate(); + } + if (activities() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model UntilActivity")); + new IllegalArgumentException("Missing required property activities in model UntilActivity")); } else { - innerTypeProperties().validate(); + activities().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java index c7b29dd623c81..fbfce53e7ab72 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ValidationActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ValidationActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,52 +16,49 @@ /** This activity verifies that an external resource exists. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Validation") +@JsonFlatten @Fluent -public final class ValidationActivity extends ControlActivity { +public class ValidationActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(ValidationActivity.class); /* - * Validation activity properties. + * Specifies the timeout for the activity to run. If there is no value + * specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as + * default. Type: string (or Expression with resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). */ - @JsonProperty(value = "typeProperties", required = true) - private ValidationActivityTypeProperties innerTypeProperties = new ValidationActivityTypeProperties(); + @JsonProperty(value = "typeProperties.timeout") + private Object timeout; - /** - * Get the innerTypeProperties property: Validation activity properties. - * - * @return the innerTypeProperties value. + /* + * A delay in seconds between validation attempts. If no value is + * specified, 10 seconds will be used as the default. Type: integer (or + * Expression with resultType integer). */ - private ValidationActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.sleep") + private Object sleep; - /** {@inheritDoc} */ - @Override - public ValidationActivity withName(String name) { - super.withName(name); - return this; - } - - /** {@inheritDoc} */ - @Override - public ValidationActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Can be used if dataset points to a file. The file must be greater than + * or equal in size to the value specified. Type: integer (or Expression + * with resultType integer). + */ + @JsonProperty(value = "typeProperties.minimumSize") + private Object minimumSize; - /** {@inheritDoc} */ - @Override - public ValidationActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Can be used if dataset points to a folder. If set to true, the folder + * must have at least one file. If set to false, the folder must be empty. + * Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.childItems") + private Object childItems; - /** {@inheritDoc} */ - @Override - public ValidationActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Validation activity dataset reference. + */ + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; /** * Get the timeout property: Specifies the timeout for the activity to run. If there is no value specified, it takes @@ -71,7 +68,7 @@ public ValidationActivity withUserProperties(List userProperties) * @return the timeout value. */ public Object timeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout(); + return this.timeout; } /** @@ -83,10 +80,7 @@ public Object timeout() { * @return the ValidationActivity object itself. */ public ValidationActivity withTimeout(Object timeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withTimeout(timeout); + this.timeout = timeout; return this; } @@ -97,7 +91,7 @@ public ValidationActivity withTimeout(Object timeout) { * @return the sleep value. */ public Object sleep() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sleep(); + return this.sleep; } /** @@ -108,10 +102,7 @@ public Object sleep() { * @return the ValidationActivity object itself. */ public ValidationActivity withSleep(Object sleep) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withSleep(sleep); + this.sleep = sleep; return this; } @@ -122,7 +113,7 @@ public ValidationActivity withSleep(Object sleep) { * @return the minimumSize value. */ public Object minimumSize() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().minimumSize(); + return this.minimumSize; } /** @@ -133,10 +124,7 @@ public Object minimumSize() { * @return the ValidationActivity object itself. */ public ValidationActivity withMinimumSize(Object minimumSize) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withMinimumSize(minimumSize); + this.minimumSize = minimumSize; return this; } @@ -147,7 +135,7 @@ public ValidationActivity withMinimumSize(Object minimumSize) { * @return the childItems value. */ public Object childItems() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().childItems(); + return this.childItems; } /** @@ -158,10 +146,7 @@ public Object childItems() { * @return the ValidationActivity object itself. */ public ValidationActivity withChildItems(Object childItems) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withChildItems(childItems); + this.childItems = childItems; return this; } @@ -171,7 +156,7 @@ public ValidationActivity withChildItems(Object childItems) { * @return the dataset value. */ public DatasetReference dataset() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().dataset(); + return this.dataset; } /** @@ -181,10 +166,35 @@ public DatasetReference dataset() { * @return the ValidationActivity object itself. */ public ValidationActivity withDataset(DatasetReference dataset) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ValidationActivityTypeProperties(); - } - this.innerTypeProperties().withDataset(dataset); + this.dataset = dataset; + return this; + } + + /** {@inheritDoc} */ + @Override + public ValidationActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public ValidationActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ValidationActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public ValidationActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -196,13 +206,12 @@ public ValidationActivity withDataset(DatasetReference dataset) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (dataset() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ValidationActivity")); + new IllegalArgumentException("Missing required property dataset in model ValidationActivity")); } else { - innerTypeProperties().validate(); + dataset().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java index 58b94f20cc71a..c9740921b208d 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,31 @@ /** Vertica linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Vertica") +@JsonFlatten @Fluent -public final class VerticaLinkedService extends LinkedService { +public class VerticaLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(VerticaLinkedService.class); /* - * Vertica linked service properties. + * An ODBC connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. */ - @JsonProperty(value = "typeProperties", required = true) - private VerticaLinkedServiceTypeProperties innerTypeProperties = new VerticaLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionString") + private Object connectionString; - /** - * Get the innerTypeProperties property: Vertica linked service properties. - * - * @return the innerTypeProperties value. + /* + * The Azure key vault secret reference of password in connection string. */ - private VerticaLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.pwd") + private AzureKeyVaultSecretReference pwd; - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionString property: An ODBC connection string. Type: string, SecureString or @@ -71,7 +50,7 @@ public VerticaLinkedService withAnnotations(List annotations) { * @return the connectionString value. */ public Object connectionString() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionString(); + return this.connectionString; } /** @@ -82,10 +61,7 @@ public Object connectionString() { * @return the VerticaLinkedService object itself. */ public VerticaLinkedService withConnectionString(Object connectionString) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionString(connectionString); + this.connectionString = connectionString; return this; } @@ -95,7 +71,7 @@ public VerticaLinkedService withConnectionString(Object connectionString) { * @return the pwd value. */ public AzureKeyVaultSecretReference pwd() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().pwd(); + return this.pwd; } /** @@ -105,10 +81,7 @@ public AzureKeyVaultSecretReference pwd() { * @return the VerticaLinkedService object itself. */ public VerticaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPwd(pwd); + this.pwd = pwd; return this; } @@ -119,7 +92,7 @@ public VerticaLinkedService withPwd(AzureKeyVaultSecretReference pwd) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -130,10 +103,35 @@ public Object encryptedCredential() { * @return the VerticaLinkedService object itself. */ public VerticaLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -145,13 +143,8 @@ public VerticaLinkedService withEncryptedCredential(Object encryptedCredential) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model VerticaLinkedService")); - } else { - innerTypeProperties().validate(); + if (pwd() != null) { + pwd().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java index 21faef407f831..dfe1ad5a49147 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/VerticaTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.VerticaDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,31 @@ /** Vertica dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("VerticaTable") +@JsonFlatten @Fluent -public final class VerticaTableDataset extends Dataset { +public class VerticaTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(VerticaTableDataset.class); /* - * Properties specific to this dataset type. + * This property will be retired. Please consider using schema + table + * properties instead. */ - @JsonProperty(value = "typeProperties") - private VerticaDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; - /** - * Get the innerTypeProperties property: Properties specific to this dataset type. - * - * @return the innerTypeProperties value. + /* + * The table name of the Vertica. Type: string (or Expression with + * resultType string). */ - private VerticaDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + @JsonProperty(value = "typeProperties.table") + private Object table; - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public VerticaTableDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The schema name of the Vertica. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; /** * Get the tableName property: This property will be retired. Please consider using schema + table properties @@ -92,7 +50,7 @@ public VerticaTableDataset withFolder(DatasetFolder folder) { * @return the tableName value. */ public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); + return this.tableName; } /** @@ -103,10 +61,7 @@ public Object tableName() { * @return the VerticaTableDataset object itself. */ public VerticaTableDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); + this.tableName = tableName; return this; } @@ -116,7 +71,7 @@ public VerticaTableDataset withTableName(Object tableName) { * @return the table value. */ public Object table() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().table(); + return this.table; } /** @@ -126,33 +81,78 @@ public Object table() { * @return the VerticaTableDataset object itself. */ public VerticaTableDataset withTable(Object table) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaDatasetTypeProperties(); - } - this.innerTypeProperties().withTable(table); + this.table = table; return this; } /** - * Get the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). + * Get the schemaTypePropertiesSchema property: The schema name of the Vertica. Type: string (or Expression with + * resultType string). * - * @return the schema value. + * @return the schemaTypePropertiesSchema value. */ public Object schemaTypePropertiesSchema() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().schema(); + return this.schemaTypePropertiesSchema; } /** - * Set the schema property: The schema name of the Vertica. Type: string (or Expression with resultType string). + * Set the schemaTypePropertiesSchema property: The schema name of the Vertica. Type: string (or Expression with + * resultType string). * - * @param schema the schema value to set. + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. * @return the VerticaTableDataset object itself. */ - public VerticaTableDataset withSchemaTypePropertiesSchema(Object schema) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new VerticaDatasetTypeProperties(); - } - this.innerTypeProperties().withSchema(schema); + public VerticaTableDataset withSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public VerticaTableDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -164,8 +164,5 @@ public VerticaTableDataset withSchemaTypePropertiesSchema(Object schema) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java index f6ea3f46496d2..eccb46a34d07f 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WaitActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WaitActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,23 +16,35 @@ /** This activity suspends pipeline execution for the specified interval. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Wait") +@JsonFlatten @Fluent -public final class WaitActivity extends ControlActivity { +public class WaitActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(WaitActivity.class); /* - * Wait activity properties. + * Duration in seconds. */ - @JsonProperty(value = "typeProperties", required = true) - private WaitActivityTypeProperties innerTypeProperties = new WaitActivityTypeProperties(); + @JsonProperty(value = "typeProperties.waitTimeInSeconds", required = true) + private Object waitTimeInSeconds; /** - * Get the innerTypeProperties property: Wait activity properties. + * Get the waitTimeInSeconds property: Duration in seconds. + * + * @return the waitTimeInSeconds value. + */ + public Object waitTimeInSeconds() { + return this.waitTimeInSeconds; + } + + /** + * Set the waitTimeInSeconds property: Duration in seconds. * - * @return the innerTypeProperties value. + * @param waitTimeInSeconds the waitTimeInSeconds value to set. + * @return the WaitActivity object itself. */ - private WaitActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public WaitActivity withWaitTimeInSeconds(Object waitTimeInSeconds) { + this.waitTimeInSeconds = waitTimeInSeconds; + return this; } /** {@inheritDoc} */ @@ -63,29 +75,6 @@ public WaitActivity withUserProperties(List userProperties) { return this; } - /** - * Get the waitTimeInSeconds property: Duration in seconds. - * - * @return the waitTimeInSeconds value. - */ - public Object waitTimeInSeconds() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().waitTimeInSeconds(); - } - - /** - * Set the waitTimeInSeconds property: Duration in seconds. - * - * @param waitTimeInSeconds the waitTimeInSeconds value to set. - * @return the WaitActivity object itself. - */ - public WaitActivity withWaitTimeInSeconds(Object waitTimeInSeconds) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WaitActivityTypeProperties(); - } - this.innerTypeProperties().withWaitTimeInSeconds(waitTimeInSeconds); - return this; - } - /** * Validates the instance. * @@ -94,13 +83,10 @@ public WaitActivity withWaitTimeInSeconds(Object waitTimeInSeconds) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (waitTimeInSeconds() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model WaitActivity")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property waitTimeInSeconds in model WaitActivity")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java index 10c217d3ef2aa..e3c3423ff34ce 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WebActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,66 +16,64 @@ /** Web activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("WebActivity") +@JsonFlatten @Fluent -public final class WebActivity extends ExecutionActivity { +public class WebActivity extends ExecutionActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(WebActivity.class); /* - * Web activity properties. + * Rest API method for target endpoint. */ - @JsonProperty(value = "typeProperties", required = true) - private WebActivityTypeProperties innerTypeProperties = new WebActivityTypeProperties(); + @JsonProperty(value = "typeProperties.method", required = true) + private WebActivityMethod method; - /** - * Get the innerTypeProperties property: Web activity properties. - * - * @return the innerTypeProperties value. + /* + * Web activity target endpoint and path. Type: string (or Expression with + * resultType string). */ - private WebActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** {@inheritDoc} */ - @Override - public WebActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } + /* + * Represents the headers that will be sent to the request. For example, to + * set the language and type on a request: "headers" : { "Accept-Language": + * "en-us", "Content-Type": "application/json" }. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.headers") + private Object headers; - /** {@inheritDoc} */ - @Override - public WebActivity withPolicy(ActivityPolicy policy) { - super.withPolicy(policy); - return this; - } + /* + * Represents the payload that will be sent to the endpoint. Required for + * POST/PUT method, not allowed for GET method Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.body") + private Object body; - /** {@inheritDoc} */ - @Override - public WebActivity withName(String name) { - super.withName(name); - return this; - } + /* + * Authentication method used for calling the endpoint. + */ + @JsonProperty(value = "typeProperties.authentication") + private WebActivityAuthentication authentication; - /** {@inheritDoc} */ - @Override - public WebActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * List of datasets passed to web endpoint. + */ + @JsonProperty(value = "typeProperties.datasets") + private List datasets; - /** {@inheritDoc} */ - @Override - public WebActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * List of linked services passed to web endpoint. + */ + @JsonProperty(value = "typeProperties.linkedServices") + private List linkedServices; - /** {@inheritDoc} */ - @Override - public WebActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * The integration runtime reference. + */ + @JsonProperty(value = "typeProperties.connectVia") + private IntegrationRuntimeReference connectVia; /** * Get the method property: Rest API method for target endpoint. @@ -83,7 +81,7 @@ public WebActivity withUserProperties(List userProperties) { * @return the method value. */ public WebActivityMethod method() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().method(); + return this.method; } /** @@ -93,10 +91,7 @@ public WebActivityMethod method() { * @return the WebActivity object itself. */ public WebActivity withMethod(WebActivityMethod method) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withMethod(method); + this.method = method; return this; } @@ -106,7 +101,7 @@ public WebActivity withMethod(WebActivityMethod method) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -116,10 +111,7 @@ public Object url() { * @return the WebActivity object itself. */ public WebActivity withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -131,7 +123,7 @@ public WebActivity withUrl(Object url) { * @return the headers value. */ public Object headers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); + return this.headers; } /** @@ -143,10 +135,7 @@ public Object headers() { * @return the WebActivity object itself. */ public WebActivity withHeaders(Object headers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withHeaders(headers); + this.headers = headers; return this; } @@ -157,7 +146,7 @@ public WebActivity withHeaders(Object headers) { * @return the body value. */ public Object body() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().body(); + return this.body; } /** @@ -168,10 +157,7 @@ public Object body() { * @return the WebActivity object itself. */ public WebActivity withBody(Object body) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withBody(body); + this.body = body; return this; } @@ -181,7 +167,7 @@ public WebActivity withBody(Object body) { * @return the authentication value. */ public WebActivityAuthentication authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); + return this.authentication; } /** @@ -191,10 +177,7 @@ public WebActivityAuthentication authentication() { * @return the WebActivity object itself. */ public WebActivity withAuthentication(WebActivityAuthentication authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); + this.authentication = authentication; return this; } @@ -204,7 +187,7 @@ public WebActivity withAuthentication(WebActivityAuthentication authentication) * @return the datasets value. */ public List datasets() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().datasets(); + return this.datasets; } /** @@ -214,10 +197,7 @@ public List datasets() { * @return the WebActivity object itself. */ public WebActivity withDatasets(List datasets) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withDatasets(datasets); + this.datasets = datasets; return this; } @@ -227,7 +207,7 @@ public WebActivity withDatasets(List datasets) { * @return the linkedServices value. */ public List linkedServices() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().linkedServices(); + return this.linkedServices; } /** @@ -237,10 +217,7 @@ public List linkedServices() { * @return the WebActivity object itself. */ public WebActivity withLinkedServices(List linkedServices) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withLinkedServices(linkedServices); + this.linkedServices = linkedServices; return this; } @@ -250,7 +227,7 @@ public WebActivity withLinkedServices(List linkedService * @return the connectVia value. */ public IntegrationRuntimeReference connectVia() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectVia(); + return this.connectVia; } /** @@ -260,10 +237,49 @@ public IntegrationRuntimeReference connectVia() { * @return the WebActivity object itself. */ public WebActivity withConnectVia(IntegrationRuntimeReference connectVia) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebActivityTypeProperties(); - } - this.innerTypeProperties().withConnectVia(connectVia); + this.connectVia = connectVia; + return this; + } + + /** {@inheritDoc} */ + @Override + public WebActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebActivity withPolicy(ActivityPolicy policy) { + super.withPolicy(policy); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -275,12 +291,27 @@ public WebActivity withConnectVia(IntegrationRuntimeReference connectVia) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (method() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model WebActivity")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property method in model WebActivity")); + } + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property url in model WebActivity")); + } + if (authentication() != null) { + authentication().validate(); + } + if (datasets() != null) { + datasets().forEach(e -> e.validate()); + } + if (linkedServices() != null) { + linkedServices().forEach(e -> e.validate()); + } + if (connectVia() != null) { + connectVia().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java index bd29db675ee5b..0ceb58de45539 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebTableDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WebTableDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,67 @@ /** The dataset points to a HTML table in the web page. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("WebTable") +@JsonFlatten @Fluent -public final class WebTableDataset extends Dataset { +public class WebTableDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTableDataset.class); /* - * Web table dataset properties. + * The zero-based index of the table in the web page. Type: integer (or + * Expression with resultType integer), minimum: 0. */ - @JsonProperty(value = "typeProperties", required = true) - private WebTableDatasetTypeProperties innerTypeProperties = new WebTableDatasetTypeProperties(); + @JsonProperty(value = "typeProperties.index", required = true) + private Object index; + + /* + * The relative URL to the web page from the linked service URL. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.path") + private Object path; + + /** + * Get the index property: The zero-based index of the table in the web page. Type: integer (or Expression with + * resultType integer), minimum: 0. + * + * @return the index value. + */ + public Object index() { + return this.index; + } + + /** + * Set the index property: The zero-based index of the table in the web page. Type: integer (or Expression with + * resultType integer), minimum: 0. + * + * @param index the index value to set. + * @return the WebTableDataset object itself. + */ + public WebTableDataset withIndex(Object index) { + this.index = index; + return this; + } + + /** + * Get the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression + * with resultType string). + * + * @return the path value. + */ + public Object path() { + return this.path; + } /** - * Get the innerTypeProperties property: Web table dataset properties. + * Set the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression + * with resultType string). * - * @return the innerTypeProperties value. + * @param path the path value to set. + * @return the WebTableDataset object itself. */ - private WebTableDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public WebTableDataset withPath(Object path) { + this.path = path; + return this; } /** {@inheritDoc} */ @@ -85,56 +129,6 @@ public WebTableDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @return the index value. - */ - public Object index() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().index(); - } - - /** - * Set the index property: The zero-based index of the table in the web page. Type: integer (or Expression with - * resultType integer), minimum: 0. - * - * @param index the index value to set. - * @return the WebTableDataset object itself. - */ - public WebTableDataset withIndex(Object index) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebTableDatasetTypeProperties(); - } - this.innerTypeProperties().withIndex(index); - return this; - } - - /** - * Get the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @return the path value. - */ - public Object path() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().path(); - } - - /** - * Set the path property: The relative URL to the web page from the linked service URL. Type: string (or Expression - * with resultType string). - * - * @param path the path value to set. - * @return the WebTableDataset object itself. - */ - public WebTableDataset withPath(Object path) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebTableDatasetTypeProperties(); - } - this.innerTypeProperties().withPath(path); - return this; - } - /** * Validates the instance. * @@ -143,13 +137,10 @@ public WebTableDataset withPath(Object path) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (index() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model WebTableDataset")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property index in model WebTableDataset")); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java index d8d29ade66619..0815f8d3885d8 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WebhookActivity.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.WebhookActivityTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,52 +16,63 @@ /** WebHook activity. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("WebHook") +@JsonFlatten @Fluent -public final class WebhookActivity extends ControlActivity { +public class WebhookActivity extends ControlActivity { @JsonIgnore private final ClientLogger logger = new ClientLogger(WebhookActivity.class); /* - * WebHook activity properties. + * Rest API method for target endpoint. */ - @JsonProperty(value = "typeProperties", required = true) - private WebhookActivityTypeProperties innerTypeProperties = new WebhookActivityTypeProperties(); + @JsonProperty(value = "typeProperties.method", required = true) + private WebhookActivityMethod method; - /** - * Get the innerTypeProperties property: WebHook activity properties. - * - * @return the innerTypeProperties value. + /* + * WebHook activity target endpoint and path. Type: string (or Expression + * with resultType string). */ - private WebhookActivityTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; - /** {@inheritDoc} */ - @Override - public WebhookActivity withName(String name) { - super.withName(name); - return this; - } + /* + * The timeout within which the webhook should be called back. If there is + * no value specified, it defaults to 10 minutes. Type: string. Pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "typeProperties.timeout") + private String timeout; - /** {@inheritDoc} */ - @Override - public WebhookActivity withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Represents the headers that will be sent to the request. For example, to + * set the language and type on a request: "headers" : { "Accept-Language": + * "en-us", "Content-Type": "application/json" }. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.headers") + private Object headers; - /** {@inheritDoc} */ - @Override - public WebhookActivity withDependsOn(List dependsOn) { - super.withDependsOn(dependsOn); - return this; - } + /* + * Represents the payload that will be sent to the endpoint. Required for + * POST/PUT method, not allowed for GET method Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.body") + private Object body; - /** {@inheritDoc} */ - @Override - public WebhookActivity withUserProperties(List userProperties) { - super.withUserProperties(userProperties); - return this; - } + /* + * Authentication method used for calling the endpoint. + */ + @JsonProperty(value = "typeProperties.authentication") + private WebActivityAuthentication authentication; + + /* + * When set to true, statusCode, output and error in callback request body + * will be consumed by activity. The activity can be marked as failed by + * setting statusCode >= 400 in callback request. Default is false. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "typeProperties.reportStatusOnCallBack") + private Object reportStatusOnCallBack; /** * Get the method property: Rest API method for target endpoint. @@ -69,7 +80,7 @@ public WebhookActivity withUserProperties(List userProperties) { * @return the method value. */ public WebhookActivityMethod method() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().method(); + return this.method; } /** @@ -79,10 +90,7 @@ public WebhookActivityMethod method() { * @return the WebhookActivity object itself. */ public WebhookActivity withMethod(WebhookActivityMethod method) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withMethod(method); + this.method = method; return this; } @@ -93,7 +101,7 @@ public WebhookActivity withMethod(WebhookActivityMethod method) { * @return the url value. */ public Object url() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().url(); + return this.url; } /** @@ -104,10 +112,7 @@ public Object url() { * @return the WebhookActivity object itself. */ public WebhookActivity withUrl(Object url) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withUrl(url); + this.url = url; return this; } @@ -119,7 +124,7 @@ public WebhookActivity withUrl(Object url) { * @return the timeout value. */ public String timeout() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().timeout(); + return this.timeout; } /** @@ -131,10 +136,7 @@ public String timeout() { * @return the WebhookActivity object itself. */ public WebhookActivity withTimeout(String timeout) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withTimeout(timeout); + this.timeout = timeout; return this; } @@ -146,7 +148,7 @@ public WebhookActivity withTimeout(String timeout) { * @return the headers value. */ public Object headers() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().headers(); + return this.headers; } /** @@ -158,10 +160,7 @@ public Object headers() { * @return the WebhookActivity object itself. */ public WebhookActivity withHeaders(Object headers) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withHeaders(headers); + this.headers = headers; return this; } @@ -172,7 +171,7 @@ public WebhookActivity withHeaders(Object headers) { * @return the body value. */ public Object body() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().body(); + return this.body; } /** @@ -183,10 +182,7 @@ public Object body() { * @return the WebhookActivity object itself. */ public WebhookActivity withBody(Object body) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withBody(body); + this.body = body; return this; } @@ -196,7 +192,7 @@ public WebhookActivity withBody(Object body) { * @return the authentication value. */ public WebActivityAuthentication authentication() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authentication(); + return this.authentication; } /** @@ -206,10 +202,7 @@ public WebActivityAuthentication authentication() { * @return the WebhookActivity object itself. */ public WebhookActivity withAuthentication(WebActivityAuthentication authentication) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withAuthentication(authentication); + this.authentication = authentication; return this; } @@ -221,7 +214,7 @@ public WebhookActivity withAuthentication(WebActivityAuthentication authenticati * @return the reportStatusOnCallBack value. */ public Object reportStatusOnCallBack() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().reportStatusOnCallBack(); + return this.reportStatusOnCallBack; } /** @@ -233,10 +226,35 @@ public Object reportStatusOnCallBack() { * @return the WebhookActivity object itself. */ public WebhookActivity withReportStatusOnCallBack(Object reportStatusOnCallBack) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new WebhookActivityTypeProperties(); - } - this.innerTypeProperties().withReportStatusOnCallBack(reportStatusOnCallBack); + this.reportStatusOnCallBack = reportStatusOnCallBack; + return this; + } + + /** {@inheritDoc} */ + @Override + public WebhookActivity withName(String name) { + super.withName(name); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebhookActivity withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebhookActivity withDependsOn(List dependsOn) { + super.withDependsOn(dependsOn); + return this; + } + + /** {@inheritDoc} */ + @Override + public WebhookActivity withUserProperties(List userProperties) { + super.withUserProperties(userProperties); return this; } @@ -248,13 +266,18 @@ public WebhookActivity withReportStatusOnCallBack(Object reportStatusOnCallBack) @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { + if (method() == null) { throw logger .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model WebhookActivity")); - } else { - innerTypeProperties().validate(); + new IllegalArgumentException("Missing required property method in model WebhookActivity")); + } + if (url() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property url in model WebhookActivity")); + } + if (authentication() != null) { + authentication().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java index 30dcee255291b..eb00bc4371797 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/WranglingDataFlow.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.PowerQueryTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,45 +16,28 @@ /** Power Query data flow. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("WranglingDataFlow") +@JsonFlatten @Fluent -public final class WranglingDataFlow extends DataFlow { +public class WranglingDataFlow extends DataFlow { @JsonIgnore private final ClientLogger logger = new ClientLogger(WranglingDataFlow.class); /* - * PowerQuery data flow type properties. + * List of sources in Power Query. */ - @JsonProperty(value = "typeProperties") - private PowerQueryTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.sources") + private List sources; - /** - * Get the innerTypeProperties property: PowerQuery data flow type properties. - * - * @return the innerTypeProperties value. + /* + * Power query mashup script. */ - private PowerQueryTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public WranglingDataFlow withDescription(String description) { - super.withDescription(description); - return this; - } + @JsonProperty(value = "typeProperties.script") + private String script; - /** {@inheritDoc} */ - @Override - public WranglingDataFlow withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } - - /** {@inheritDoc} */ - @Override - public WranglingDataFlow withFolder(DataFlowFolder folder) { - super.withFolder(folder); - return this; - } + /* + * Locale of the Power query mashup document. + */ + @JsonProperty(value = "typeProperties.documentLocale") + private String documentLocale; /** * Get the sources property: List of sources in Power Query. @@ -62,7 +45,7 @@ public WranglingDataFlow withFolder(DataFlowFolder folder) { * @return the sources value. */ public List sources() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().sources(); + return this.sources; } /** @@ -72,10 +55,7 @@ public List sources() { * @return the WranglingDataFlow object itself. */ public WranglingDataFlow withSources(List sources) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PowerQueryTypeProperties(); - } - this.innerTypeProperties().withSources(sources); + this.sources = sources; return this; } @@ -85,7 +65,7 @@ public WranglingDataFlow withSources(List sources) { * @return the script value. */ public String script() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().script(); + return this.script; } /** @@ -95,10 +75,48 @@ public String script() { * @return the WranglingDataFlow object itself. */ public WranglingDataFlow withScript(String script) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new PowerQueryTypeProperties(); - } - this.innerTypeProperties().withScript(script); + this.script = script; + return this; + } + + /** + * Get the documentLocale property: Locale of the Power query mashup document. + * + * @return the documentLocale value. + */ + public String documentLocale() { + return this.documentLocale; + } + + /** + * Set the documentLocale property: Locale of the Power query mashup document. + * + * @param documentLocale the documentLocale value to set. + * @return the WranglingDataFlow object itself. + */ + public WranglingDataFlow withDocumentLocale(String documentLocale) { + this.documentLocale = documentLocale; + return this; + } + + /** {@inheritDoc} */ + @Override + public WranglingDataFlow withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public WranglingDataFlow withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public WranglingDataFlow withFolder(DataFlowFolder folder) { + super.withFolder(folder); return this; } @@ -110,8 +128,8 @@ public WranglingDataFlow withScript(String script) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (sources() != null) { + sources().forEach(e -> e.validate()); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java index d449f43138ab0..646cea7734955 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.XeroLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,68 @@ /** Xero Service linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Xero") +@JsonFlatten @Fluent -public final class XeroLinkedService extends LinkedService { +public class XeroLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(XeroLinkedService.class); /* - * Xero Service linked service properties. + * Properties used to connect to Xero. It is mutually exclusive with any + * other properties in the linked service. Type: object. */ - @JsonProperty(value = "typeProperties", required = true) - private XeroLinkedServiceTypeProperties innerTypeProperties = new XeroLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionProperties") + private Object connectionProperties; - /** - * Get the innerTypeProperties property: Xero Service linked service properties. - * - * @return the innerTypeProperties value. + /* + * The endpoint of the Xero server. (i.e. api.xero.com) */ - private XeroLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.host") + private Object host; - /** {@inheritDoc} */ - @Override - public XeroLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The consumer key associated with the Xero application. + */ + @JsonProperty(value = "typeProperties.consumerKey") + private SecretBase consumerKey; - /** {@inheritDoc} */ - @Override - public XeroLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * The private key from the .pem file that was generated for your Xero + * private application. You must include all the text from the .pem file, + * including the Unix line endings( + * ). + */ + @JsonProperty(value = "typeProperties.privateKey") + private SecretBase privateKey; - /** {@inheritDoc} */ - @Override - public XeroLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public XeroLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; + + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionProperties property: Properties used to connect to Xero. It is mutually exclusive with any @@ -71,7 +87,7 @@ public XeroLinkedService withAnnotations(List annotations) { * @return the connectionProperties value. */ public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); + return this.connectionProperties; } /** @@ -82,10 +98,7 @@ public Object connectionProperties() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); + this.connectionProperties = connectionProperties; return this; } @@ -95,7 +108,7 @@ public XeroLinkedService withConnectionProperties(Object connectionProperties) { * @return the host value. */ public Object host() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host(); + return this.host; } /** @@ -105,10 +118,7 @@ public Object host() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withHost(Object host) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withHost(host); + this.host = host; return this; } @@ -118,7 +128,7 @@ public XeroLinkedService withHost(Object host) { * @return the consumerKey value. */ public SecretBase consumerKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().consumerKey(); + return this.consumerKey; } /** @@ -128,10 +138,7 @@ public SecretBase consumerKey() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withConsumerKey(SecretBase consumerKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConsumerKey(consumerKey); + this.consumerKey = consumerKey; return this; } @@ -142,7 +149,7 @@ public XeroLinkedService withConsumerKey(SecretBase consumerKey) { * @return the privateKey value. */ public SecretBase privateKey() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().privateKey(); + return this.privateKey; } /** @@ -153,10 +160,7 @@ public SecretBase privateKey() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withPrivateKey(SecretBase privateKey) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withPrivateKey(privateKey); + this.privateKey = privateKey; return this; } @@ -167,7 +171,7 @@ public XeroLinkedService withPrivateKey(SecretBase privateKey) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -178,10 +182,7 @@ public Object useEncryptedEndpoints() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -192,7 +193,7 @@ public XeroLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -203,10 +204,7 @@ public Object useHostVerification() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -217,7 +215,7 @@ public XeroLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -228,10 +226,7 @@ public Object usePeerVerification() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -242,7 +237,7 @@ public XeroLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -253,10 +248,35 @@ public Object encryptedCredential() { * @return the XeroLinkedService object itself. */ public XeroLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XeroLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public XeroLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public XeroLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public XeroLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public XeroLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -268,13 +288,11 @@ public XeroLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model XeroLinkedService")); - } else { - innerTypeProperties().validate(); + if (consumerKey() != null) { + consumerKey().validate(); + } + if (privateKey() != null) { + privateKey().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java index 9040a94dbd589..98218af69b3b7 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XeroObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Xero Service dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("XeroObject") +@JsonFlatten @Fluent -public final class XeroObjectDataset extends Dataset { +public class XeroObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(XeroObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the XeroObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public XeroObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public XeroObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the XeroObjectDataset object itself. - */ - public XeroObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public XeroObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java index 8a60b661dc8a0..da84a437fb055 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/XmlDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.XmlDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,73 +17,40 @@ /** Xml dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Xml") +@JsonFlatten @Fluent -public final class XmlDataset extends Dataset { +public class XmlDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(XmlDataset.class); /* - * Xml dataset properties. + * The location of the json data storage. */ - @JsonProperty(value = "typeProperties") - private XmlDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.location") + private DatasetLocation location; - /** - * Get the innerTypeProperties property: Xml dataset properties. - * - * @return the innerTypeProperties value. + /* + * The code page name of the preferred encoding. If not specified, the + * default value is UTF-8, unless BOM denotes another Unicode encoding. + * Refer to the name column of the table in the following link to set + * supported values: + * https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: + * string (or Expression with resultType string). */ - private XmlDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withDescription(String description) { - super.withDescription(description); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withStructure(Object structure) { - super.withStructure(structure); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withSchema(Object schema) { - super.withSchema(schema); - return this; - } + @JsonProperty(value = "typeProperties.encodingName") + private Object encodingName; - /** {@inheritDoc} */ - @Override - public XmlDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { - super.withLinkedServiceName(linkedServiceName); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } - - /** {@inheritDoc} */ - @Override - public XmlDataset withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.nullValue") + private Object nullValue; - /** {@inheritDoc} */ - @Override - public XmlDataset withFolder(DatasetFolder folder) { - super.withFolder(folder); - return this; - } + /* + * The data compression method used for the json dataset. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; /** * Get the location property: The location of the json data storage. @@ -91,7 +58,7 @@ public XmlDataset withFolder(DatasetFolder folder) { * @return the location value. */ public DatasetLocation location() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().location(); + return this.location; } /** @@ -101,10 +68,7 @@ public DatasetLocation location() { * @return the XmlDataset object itself. */ public XmlDataset withLocation(DatasetLocation location) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withLocation(location); + this.location = location; return this; } @@ -117,7 +81,7 @@ public XmlDataset withLocation(DatasetLocation location) { * @return the encodingName value. */ public Object encodingName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encodingName(); + return this.encodingName; } /** @@ -130,10 +94,7 @@ public Object encodingName() { * @return the XmlDataset object itself. */ public XmlDataset withEncodingName(Object encodingName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withEncodingName(encodingName); + this.encodingName = encodingName; return this; } @@ -143,7 +104,7 @@ public XmlDataset withEncodingName(Object encodingName) { * @return the nullValue value. */ public Object nullValue() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nullValue(); + return this.nullValue; } /** @@ -153,10 +114,7 @@ public Object nullValue() { * @return the XmlDataset object itself. */ public XmlDataset withNullValue(Object nullValue) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withNullValue(nullValue); + this.nullValue = nullValue; return this; } @@ -166,7 +124,7 @@ public XmlDataset withNullValue(Object nullValue) { * @return the compression value. */ public DatasetCompression compression() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression(); + return this.compression; } /** @@ -176,10 +134,56 @@ public DatasetCompression compression() { * @return the XmlDataset object itself. */ public XmlDataset withCompression(DatasetCompression compression) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new XmlDatasetTypeProperties(); - } - this.innerTypeProperties().withCompression(compression); + this.compression = compression; + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withStructure(Object structure) { + super.withStructure(structure); + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withSchema(Object schema) { + super.withSchema(schema); + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withLinkedServiceName(LinkedServiceReference linkedServiceName) { + super.withLinkedServiceName(linkedServiceName); + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withAnnotations(List annotations) { + super.withAnnotations(annotations); + return this; + } + + /** {@inheritDoc} */ + @Override + public XmlDataset withFolder(DatasetFolder folder) { + super.withFolder(folder); return this; } @@ -191,8 +195,11 @@ public XmlDataset withCompression(DatasetCompression compression) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); + if (location() != null) { + location().validate(); + } + if (compression() != null) { + compression().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java index 14d24cc079d88..7b6d0b25a91de 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoLinkedService.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.ZohoLinkedServiceTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,52 +17,59 @@ /** Zoho server linked service. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Zoho") +@JsonFlatten @Fluent -public final class ZohoLinkedService extends LinkedService { +public class ZohoLinkedService extends LinkedService { @JsonIgnore private final ClientLogger logger = new ClientLogger(ZohoLinkedService.class); /* - * Zoho server linked service properties. + * Properties used to connect to Zoho. It is mutually exclusive with any + * other properties in the linked service. Type: object. */ - @JsonProperty(value = "typeProperties", required = true) - private ZohoLinkedServiceTypeProperties innerTypeProperties = new ZohoLinkedServiceTypeProperties(); + @JsonProperty(value = "typeProperties.connectionProperties") + private Object connectionProperties; - /** - * Get the innerTypeProperties property: Zoho server linked service properties. - * - * @return the innerTypeProperties value. + /* + * The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) */ - private ZohoLinkedServiceTypeProperties innerTypeProperties() { - return this.innerTypeProperties; - } + @JsonProperty(value = "typeProperties.endpoint") + private Object endpoint; - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { - super.withConnectVia(connectVia); - return this; - } + /* + * The access token for Zoho authentication. + */ + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withDescription(String description) { - super.withDescription(description); - return this; - } + /* + * Specifies whether the data source endpoints are encrypted using HTTPS. + * The default value is true. + */ + @JsonProperty(value = "typeProperties.useEncryptedEndpoints") + private Object useEncryptedEndpoints; - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withParameters(Map parameters) { - super.withParameters(parameters); - return this; - } + /* + * Specifies whether to require the host name in the server's certificate + * to match the host name of the server when connecting over SSL. The + * default value is true. + */ + @JsonProperty(value = "typeProperties.useHostVerification") + private Object useHostVerification; - /** {@inheritDoc} */ - @Override - public ZohoLinkedService withAnnotations(List annotations) { - super.withAnnotations(annotations); - return this; - } + /* + * Specifies whether to verify the identity of the server when connecting + * over SSL. The default value is true. + */ + @JsonProperty(value = "typeProperties.usePeerVerification") + private Object usePeerVerification; + + /* + * The encrypted credential used for authentication. Credentials are + * encrypted using the integration runtime credential manager. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.encryptedCredential") + private Object encryptedCredential; /** * Get the connectionProperties property: Properties used to connect to Zoho. It is mutually exclusive with any @@ -71,7 +78,7 @@ public ZohoLinkedService withAnnotations(List annotations) { * @return the connectionProperties value. */ public Object connectionProperties() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().connectionProperties(); + return this.connectionProperties; } /** @@ -82,10 +89,7 @@ public Object connectionProperties() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withConnectionProperties(Object connectionProperties) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withConnectionProperties(connectionProperties); + this.connectionProperties = connectionProperties; return this; } @@ -95,7 +99,7 @@ public ZohoLinkedService withConnectionProperties(Object connectionProperties) { * @return the endpoint value. */ public Object endpoint() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().endpoint(); + return this.endpoint; } /** @@ -105,10 +109,7 @@ public Object endpoint() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withEndpoint(Object endpoint) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEndpoint(endpoint); + this.endpoint = endpoint; return this; } @@ -118,7 +119,7 @@ public ZohoLinkedService withEndpoint(Object endpoint) { * @return the accessToken value. */ public SecretBase accessToken() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().accessToken(); + return this.accessToken; } /** @@ -128,10 +129,7 @@ public SecretBase accessToken() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withAccessToken(SecretBase accessToken) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withAccessToken(accessToken); + this.accessToken = accessToken; return this; } @@ -142,7 +140,7 @@ public ZohoLinkedService withAccessToken(SecretBase accessToken) { * @return the useEncryptedEndpoints value. */ public Object useEncryptedEndpoints() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useEncryptedEndpoints(); + return this.useEncryptedEndpoints; } /** @@ -153,10 +151,7 @@ public Object useEncryptedEndpoints() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseEncryptedEndpoints(useEncryptedEndpoints); + this.useEncryptedEndpoints = useEncryptedEndpoints; return this; } @@ -167,7 +162,7 @@ public ZohoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) * @return the useHostVerification value. */ public Object useHostVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useHostVerification(); + return this.useHostVerification; } /** @@ -178,10 +173,7 @@ public Object useHostVerification() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withUseHostVerification(Object useHostVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUseHostVerification(useHostVerification); + this.useHostVerification = useHostVerification; return this; } @@ -192,7 +184,7 @@ public ZohoLinkedService withUseHostVerification(Object useHostVerification) { * @return the usePeerVerification value. */ public Object usePeerVerification() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().usePeerVerification(); + return this.usePeerVerification; } /** @@ -203,10 +195,7 @@ public Object usePeerVerification() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withUsePeerVerification(Object usePeerVerification) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withUsePeerVerification(usePeerVerification); + this.usePeerVerification = usePeerVerification; return this; } @@ -217,7 +206,7 @@ public ZohoLinkedService withUsePeerVerification(Object usePeerVerification) { * @return the encryptedCredential value. */ public Object encryptedCredential() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().encryptedCredential(); + return this.encryptedCredential; } /** @@ -228,10 +217,35 @@ public Object encryptedCredential() { * @return the ZohoLinkedService object itself. */ public ZohoLinkedService withEncryptedCredential(Object encryptedCredential) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new ZohoLinkedServiceTypeProperties(); - } - this.innerTypeProperties().withEncryptedCredential(encryptedCredential); + this.encryptedCredential = encryptedCredential; + return this; + } + + /** {@inheritDoc} */ + @Override + public ZohoLinkedService withConnectVia(IntegrationRuntimeReference connectVia) { + super.withConnectVia(connectVia); + return this; + } + + /** {@inheritDoc} */ + @Override + public ZohoLinkedService withDescription(String description) { + super.withDescription(description); + return this; + } + + /** {@inheritDoc} */ + @Override + public ZohoLinkedService withParameters(Map parameters) { + super.withParameters(parameters); + return this; + } + + /** {@inheritDoc} */ + @Override + public ZohoLinkedService withAnnotations(List annotations) { + super.withAnnotations(annotations); return this; } @@ -243,13 +257,8 @@ public ZohoLinkedService withEncryptedCredential(Object encryptedCredential) { @Override public void validate() { super.validate(); - if (innerTypeProperties() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ZohoLinkedService")); - } else { - innerTypeProperties().validate(); + if (accessToken() != null) { + accessToken().validate(); } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java index 15a29834d71ac..ff466509a1093 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java +++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ZohoObjectDataset.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.datafactory.models; import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,23 +17,35 @@ /** Zoho server dataset. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ZohoObject") +@JsonFlatten @Fluent -public final class ZohoObjectDataset extends Dataset { +public class ZohoObjectDataset extends Dataset { @JsonIgnore private final ClientLogger logger = new ClientLogger(ZohoObjectDataset.class); /* - * Properties specific to this dataset type. + * The table name. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties") - private GenericDatasetTypeProperties innerTypeProperties; + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; /** - * Get the innerTypeProperties property: Properties specific to this dataset type. + * Get the tableName property: The table name. Type: string (or Expression with resultType string). + * + * @return the tableName value. + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName property: The table name. Type: string (or Expression with resultType string). * - * @return the innerTypeProperties value. + * @param tableName the tableName value to set. + * @return the ZohoObjectDataset object itself. */ - private GenericDatasetTypeProperties innerTypeProperties() { - return this.innerTypeProperties; + public ZohoObjectDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; } /** {@inheritDoc} */ @@ -85,29 +97,6 @@ public ZohoObjectDataset withFolder(DatasetFolder folder) { return this; } - /** - * Get the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @return the tableName value. - */ - public Object tableName() { - return this.innerTypeProperties() == null ? null : this.innerTypeProperties().tableName(); - } - - /** - * Set the tableName property: The table name. Type: string (or Expression with resultType string). - * - * @param tableName the tableName value to set. - * @return the ZohoObjectDataset object itself. - */ - public ZohoObjectDataset withTableName(Object tableName) { - if (this.innerTypeProperties() == null) { - this.innerTypeProperties = new GenericDatasetTypeProperties(); - } - this.innerTypeProperties().withTableName(tableName); - return this; - } - /** * Validates the instance. * @@ -116,8 +105,5 @@ public ZohoObjectDataset withTableName(Object tableName) { @Override public void validate() { super.validate(); - if (innerTypeProperties() != null) { - innerTypeProperties().validate(); - } } } diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java deleted file mode 100644 index 2b3eea7c3aca0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ActivityRunsQueryByPipelineRunSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import java.time.OffsetDateTime; - -/** Samples for ActivityRuns QueryByPipelineRun. */ -public final class ActivityRunsQueryByPipelineRunSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json - */ - /** - * Sample code: ActivityRuns_QueryByPipelineRun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void activityRunsQueryByPipelineRun( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .activityRuns() - .queryByPipelineRunWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - new RunFilterParameters() - .withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java deleted file mode 100644 index 7b7c706fa9da0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionAddDataFlowSamples.java +++ /dev/null @@ -1,139 +0,0 @@ -// 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.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLinkedService; -import com.azure.resourcemanager.datafactory.models.AzureBlobStorageLocation; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackageDebugSettings; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugResource; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DataFlowSourceSetting; -import com.azure.resourcemanager.datafactory.models.DatasetDebugResource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.DelimitedTextDataset; -import com.azure.resourcemanager.datafactory.models.LinkedServiceDebugResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for DataFlowDebugSession AddDataFlow. */ -public final class DataFlowDebugSessionAddDataFlowSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json - */ - /** - * Sample code: DataFlowDebugSession_AddDataFlow. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionAddDataFlow(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .dataFlowDebugSessions() - .addDataFlowWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new DataFlowDebugPackage() - .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e") - .withDataFlow( - new DataFlowDebugResource() - .withName("dataflow1") - .withProperties( - new MappingDataFlow() - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("source1") - .withDataset( - new DatasetReference().withReferenceName("DelimitedText2")))) - .withSinks(Arrays.asList()) - .withTransformations(Arrays.asList()) - .withScript( - "\n\n" - + "source(output(\n" - + "\t\tColumn_1 as string\n" - + "\t),\n" - + "\tallowSchemaDrift: true,\n" - + "\tvalidateSchema: false) ~> source1"))) - .withDatasets( - Arrays - .asList( - new DatasetDebugResource() - .withName("dataset1") - .withProperties( - new DelimitedTextDataset() - .withSchema( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "[{\"type\":\"String\"}]", - Object.class, - SerializerEncoding.JSON)) - .withLinkedServiceName( - new LinkedServiceReference().withReferenceName("linkedService5")) - .withAnnotations(Arrays.asList()) - .withLocation( - new AzureBlobStorageLocation() - .withFileName("Ansiencoding.csv") - .withContainer("dataflow-sample-data")) - .withColumnDelimiter(",") - .withQuoteChar("\"") - .withEscapeChar("\\") - .withFirstRowAsHeader(true)))) - .withLinkedServices( - Arrays - .asList( - new LinkedServiceDebugResource() - .withName("linkedService1") - .withProperties( - new AzureBlobStorageLinkedService() - .withAnnotations(Arrays.asList()) - .withConnectionString( - "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;") - .withEncryptedCredential("")))) - .withDebugSettings( - new DataFlowDebugPackageDebugSettings() - .withSourceSettings( - Arrays - .asList( - new DataFlowSourceSetting() - .withSourceName("source1") - .withRowLimit(1000) - .withAdditionalProperties(mapOf()), - new DataFlowSourceSetting() - .withSourceName("source2") - .withRowLimit(222) - .withAdditionalProperties(mapOf()))) - .withParameters(mapOf("sourcePath", "Toy")) - .withDatasetParameters( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"Movies\":{\"path\":\"abc\"},\"Output\":{\"time\":\"def\"}}", - Object.class, - SerializerEncoding.JSON))) - .withAdditionalProperties(mapOf()), - Context.NONE); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionCreateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionCreateSamples.java deleted file mode 100644 index a2dcc9635769b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionCreateSamples.java +++ /dev/null @@ -1,63 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.CreateDataFlowDebugSessionRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowComputeType; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeDebugResource; -import com.azure.resourcemanager.datafactory.models.ManagedIntegrationRuntime; -import java.util.HashMap; -import java.util.Map; - -/** Samples for DataFlowDebugSession Create. */ -public final class DataFlowDebugSessionCreateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json - */ - /** - * Sample code: DataFlowDebugSession_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlowDebugSessions() - .create( - "exampleResourceGroup", - "exampleFactoryName", - new CreateDataFlowDebugSessionRequest() - .withTimeToLive(60) - .withIntegrationRuntime( - new IntegrationRuntimeDebugResource() - .withName("ir1") - .withProperties( - new ManagedIntegrationRuntime() - .withComputeProperties( - new IntegrationRuntimeComputeProperties() - .withLocation("AutoResolve") - .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(48) - .withTimeToLive(10) - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())))), - Context.NONE); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java deleted file mode 100644 index c22fa982922c4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionDeleteSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest; - -/** Samples for DataFlowDebugSession Delete. */ -public final class DataFlowDebugSessionDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json - */ - /** - * Sample code: DataFlowDebugSession_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlowDebugSessions() - .deleteWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new DeleteDataFlowDebugSessionRequest().withSessionId("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionExecuteCommandSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionExecuteCommandSamples.java deleted file mode 100644 index 1fd0ccc08c606..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionExecuteCommandSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandPayload; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest; -import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandType; - -/** Samples for DataFlowDebugSession ExecuteCommand. */ -public final class DataFlowDebugSessionExecuteCommandSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json - */ - /** - * Sample code: DataFlowDebugSession_ExecuteCommand. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionExecuteCommand( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlowDebugSessions() - .executeCommand( - "exampleResourceGroup", - "exampleFactoryName", - new DataFlowDebugCommandRequest() - .withSessionId("f06ed247-9d07-49b2-b05e-2cb4a2fc871e") - .withCommand(DataFlowDebugCommandType.EXECUTE_PREVIEW_QUERY) - .withCommandPayload(new DataFlowDebugCommandPayload().withStreamName("source1").withRowLimits(100)), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java deleted file mode 100644 index 60c2497233b15..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowDebugSessionQueryByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlowDebugSession QueryByFactory. */ -public final class DataFlowDebugSessionQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json - */ - /** - * Sample code: DataFlowDebugSession_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowDebugSessionQueryByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlowDebugSessions().queryByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java deleted file mode 100644 index 8724324fd9f82..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsCreateOrUpdateSamples.java +++ /dev/null @@ -1,125 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.DataFlowResource; -import com.azure.resourcemanager.datafactory.models.DataFlowSink; -import com.azure.resourcemanager.datafactory.models.DataFlowSource; -import com.azure.resourcemanager.datafactory.models.DatasetReference; -import com.azure.resourcemanager.datafactory.models.MappingDataFlow; -import java.util.Arrays; - -/** Samples for DataFlows CreateOrUpdate. */ -public final class DataFlowsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json - */ - /** - * Sample code: DataFlows_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlows() - .define("exampleDataFlow") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new MappingDataFlow() - .withDescription( - "Sample demo data flow to convert currencies showing usage of union, derive and conditional" - + " split transformation.") - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("USDCurrency") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), - new DataFlowSource() - .withName("CADSource") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("USDSink") - .withDataset(new DatasetReference().withReferenceName("USDOutput")), - new DataFlowSink() - .withName("CADSink") - .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScript( - "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" - + " ~> USDCurrency\n" - + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" - + " ~> CADSource\n" - + "USDCurrency, CADSource union(byName: true)~> Union\n" - + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>" - + " NewCurrencyColumn\n" - + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" - + " ConditionalSplit1@(USD, CAD)\n" - + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" - + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json - */ - /** - * Sample code: DataFlows_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - DataFlowResource resource = - manager - .dataFlows() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new MappingDataFlow() - .withDescription( - "Sample demo data flow to convert currencies showing usage of union, derive and conditional" - + " split transformation.") - .withSources( - Arrays - .asList( - new DataFlowSource() - .withName("USDCurrency") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetUSD")), - new DataFlowSource() - .withName("CADSource") - .withDataset(new DatasetReference().withReferenceName("CurrencyDatasetCAD")))) - .withSinks( - Arrays - .asList( - new DataFlowSink() - .withName("USDSink") - .withDataset(new DatasetReference().withReferenceName("USDOutput")), - new DataFlowSink() - .withName("CADSink") - .withDataset(new DatasetReference().withReferenceName("CADOutput")))) - .withScript( - "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false)" - + " ~> USDCurrency\n" - + "source(output(PreviousConversionRate as double,Country as string,DateTime1 as" - + " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)" - + " ~> CADSource\n" - + "USDCurrency, CADSource union(byName: true)~> Union\n" - + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>" - + " NewCurrencyColumn\n" - + "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>" - + " ConditionalSplit1@(USD, CAD)\n" - + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n" - + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")) - .apply(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java deleted file mode 100644 index 69c352bbd9196..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlows Delete. */ -public final class DataFlowsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json - */ - /** - * Sample code: DataFlows_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlows() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java deleted file mode 100644 index 92fdede5d290f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlows Get. */ -public final class DataFlowsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json - */ - /** - * Sample code: DataFlows_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .dataFlows() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java deleted file mode 100644 index c7e87b2469e36..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DataFlowsListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for DataFlows ListByFactory. */ -public final class DataFlowsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json - */ - /** - * Sample code: DataFlows_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void dataFlowsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.dataFlows().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java deleted file mode 100644 index b15bf4c828a28..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsCreateOrUpdateSamples.java +++ /dev/null @@ -1,118 +0,0 @@ -// 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.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureBlobDataset; -import com.azure.resourcemanager.datafactory.models.DatasetResource; -import com.azure.resourcemanager.datafactory.models.LinkedServiceReference; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.TextFormat; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Datasets CreateOrUpdate. */ -public final class DatasetsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json - */ - /** - * Sample code: Datasets_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .datasets() - .define("exampleDataset") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new AzureBlobDataset() - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) - .withParameters( - mapOf( - "MyFileName", - new ParameterSpecification().withType(ParameterType.STRING), - "MyFolderPath", - new ParameterSpecification().withType(ParameterType.STRING))) - .withFolderPath( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", - Object.class, - SerializerEncoding.JSON)) - .withFileName( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", - Object.class, - SerializerEncoding.JSON)) - .withFormat(new TextFormat())) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json - */ - /** - * Sample code: Datasets_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - DatasetResource resource = - manager - .datasets() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new AzureBlobDataset() - .withDescription("Example description") - .withLinkedServiceName(new LinkedServiceReference().withReferenceName("exampleLinkedService")) - .withParameters( - mapOf( - "MyFileName", - new ParameterSpecification().withType(ParameterType.STRING), - "MyFolderPath", - new ParameterSpecification().withType(ParameterType.STRING))) - .withFolderPath( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFolderPath\"}", - Object.class, - SerializerEncoding.JSON)) - .withFileName( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@dataset().MyFileName\"}", - Object.class, - SerializerEncoding.JSON)) - .withFormat(new TextFormat())) - .apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java deleted file mode 100644 index 86fd91372c5e1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Datasets Delete. */ -public final class DatasetsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json - */ - /** - * Sample code: Datasets_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .datasets() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java deleted file mode 100644 index 3c40a0fac366f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Datasets Get. */ -public final class DatasetsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json - */ - /** - * Sample code: Datasets_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .datasets() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleDataset", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java deleted file mode 100644 index 085c0a9e51a4b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/DatasetsListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Datasets ListByFactory. */ -public final class DatasetsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json - */ - /** - * Sample code: Datasets_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void datasetsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.datasets().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java deleted file mode 100644 index 08a78dcd4d01e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueByFactorySamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; - -/** Samples for ExposureControl GetFeatureValueByFactory. */ -public final class ExposureControlGetFeatureValueByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json - */ - /** - * Sample code: ExposureControl_GetFeatureValueByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void exposureControlGetFeatureValueByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .exposureControls() - .getFeatureValueByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new ExposureControlRequest() - .withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java deleted file mode 100644 index 12be3f15c2060..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlGetFeatureValueSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; - -/** Samples for ExposureControl GetFeatureValue. */ -public final class ExposureControlGetFeatureValueSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json - */ - /** - * Sample code: ExposureControl_GetFeatureValue. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void exposureControlGetFeatureValue( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .exposureControls() - .getFeatureValueWithResponse( - "WestEurope", - new ExposureControlRequest() - .withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java deleted file mode 100644 index 27965002e78c6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ExposureControlQueryFeatureValuesByFactorySamples.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.ExposureControlBatchRequest; -import com.azure.resourcemanager.datafactory.models.ExposureControlRequest; -import java.util.Arrays; - -/** Samples for ExposureControl QueryFeatureValuesByFactory. */ -public final class ExposureControlQueryFeatureValuesByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json - */ - /** - * Sample code: ExposureControl_QueryFeatureValuesByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void exposureControlQueryFeatureValuesByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .exposureControls() - .queryFeatureValuesByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new ExposureControlBatchRequest() - .withExposureControlRequests( - Arrays - .asList( - new ExposureControlRequest() - .withFeatureName("ADFIntegrationRuntimeSharingRbac") - .withFeatureType("Feature"), - new ExposureControlRequest() - .withFeatureName("ADFSampleFeature") - .withFeatureType("Feature"))), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java deleted file mode 100644 index c3f6a03f617da..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesConfigureFactoryRepoSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.FactoryRepoUpdate; -import com.azure.resourcemanager.datafactory.models.FactoryVstsConfiguration; - -/** Samples for Factories ConfigureFactoryRepo. */ -public final class FactoriesConfigureFactoryRepoSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json - */ - /** - * Sample code: Factories_ConfigureFactoryRepo. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesConfigureFactoryRepo(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .configureFactoryRepoWithResponse( - "East US", - new FactoryRepoUpdate() - .withFactoryResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName") - .withRepoConfiguration( - new FactoryVstsConfiguration() - .withAccountName("ADF") - .withRepositoryName("repo") - .withCollaborationBranch("master") - .withRootFolder("/") - .withLastCommitId("") - .withProjectName("project") - .withTenantId("")), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java deleted file mode 100644 index 3adecfa543cc1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesCreateOrUpdateSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -/** Samples for Factories CreateOrUpdate. */ -public final class FactoriesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json - */ - /** - * Sample code: Factories_CreateOrUpdate. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesCreateOrUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .define("exampleFactoryName") - .withRegion("East US") - .withExistingResourceGroup("exampleResourceGroup") - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java deleted file mode 100644 index ebbf36212d46a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories Delete. */ -public final class FactoriesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json - */ - /** - * Sample code: Factories_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().deleteWithResponse("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java deleted file mode 100644 index d20e350ee38c2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories GetByResourceGroup. */ -public final class FactoriesGetByResourceGroupSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json - */ - /** - * Sample code: Factories_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java deleted file mode 100644 index 25429b9f27300..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetDataPlaneAccessSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.UserAccessPolicy; - -/** Samples for Factories GetDataPlaneAccess. */ -public final class FactoriesGetDataPlaneAccessSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json - */ - /** - * Sample code: Factories_GetDataPlaneAccess. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesGetDataPlaneAccess(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .getDataPlaneAccessWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new UserAccessPolicy() - .withPermissions("r") - .withAccessResourcePath("") - .withProfileName("DefaultProfile") - .withStartTime("2018-11-10T02:46:20.2659347Z") - .withExpireTime("2018-11-10T09:46:20.2659347Z"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java deleted file mode 100644 index 1c6c1d1bfda60..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesGetGitHubAccessTokenSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest; - -/** Samples for Factories GetGitHubAccessToken. */ -public final class FactoriesGetGitHubAccessTokenSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json - */ - /** - * Sample code: Factories_GetGitHubAccessToken. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesGetGitHubAccessToken(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .factories() - .getGitHubAccessTokenWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new GitHubAccessTokenRequest() - .withGitHubAccessCode("some") - .withGitHubClientId("some") - .withGitHubAccessTokenBaseUrl("some"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java deleted file mode 100644 index 820bd84176a7b..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListByResourceGroupSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories ListByResourceGroup. */ -public final class FactoriesListByResourceGroupSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json - */ - /** - * Sample code: Factories_ListByResourceGroup. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesListByResourceGroup(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().listByResourceGroup("exampleResourceGroup", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java deleted file mode 100644 index 4918a603457fc..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Factories List. */ -public final class FactoriesListSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json - */ - /** - * Sample code: Factories_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.factories().list(Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java deleted file mode 100644 index e26a3b243d5e6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/FactoriesUpdateSamples.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.Factory; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Factories Update. */ -public final class FactoriesUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json - */ - /** - * Sample code: Factories_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void factoriesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - Factory resource = - manager - .factories() - .getByResourceGroupWithResponse("exampleResourceGroup", "exampleFactoryName", null, Context.NONE) - .getValue(); - resource.update().withTags(mapOf("exampleTag", "exampleValue")).apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java deleted file mode 100644 index cff8f2445df7c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeNodes Delete. */ -public final class IntegrationRuntimeNodesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json - */ - /** - * Sample code: IntegrationRuntimesNodes_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesNodesDelete( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .deleteWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java deleted file mode 100644 index 36d04b3d8ed0f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetIpAddressSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeNodes GetIpAddress. */ -public final class IntegrationRuntimeNodesGetIpAddressSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json - */ - /** - * Sample code: IntegrationRuntimeNodes_GetIpAddress. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeNodesGetIpAddress( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .getIpAddressWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java deleted file mode 100644 index 6970a6a719370..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeNodes Get. */ -public final class IntegrationRuntimeNodesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json - */ - /** - * Sample code: IntegrationRuntimeNodes_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeNodesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java deleted file mode 100644 index 7101453d2305e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeNodesUpdateSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.UpdateIntegrationRuntimeNodeRequest; - -/** Samples for IntegrationRuntimeNodes Update. */ -public final class IntegrationRuntimeNodesUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json - */ - /** - * Sample code: IntegrationRuntimeNodes_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeNodesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeNodes() - .updateWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - "Node_1", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java deleted file mode 100644 index f63650f5093eb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataGetSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest; - -/** Samples for IntegrationRuntimeObjectMetadata Get. */ -public final class IntegrationRuntimeObjectMetadataGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json - */ - /** - * Sample code: IntegrationRuntimeObjectMetadata_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeObjectMetadataGet( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .getWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "testactivityv2", - new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java deleted file mode 100644 index 669c72c17b047..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimeObjectMetadata Refresh. */ -public final class IntegrationRuntimeObjectMetadataRefreshSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json - */ - /** - * Sample code: IntegrationRuntimeObjectMetadata_Refresh. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimeObjectMetadataRefresh( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .refresh("exampleResourceGroup", "exampleFactoryName", "testactivityv2", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java deleted file mode 100644 index c9529005a49bb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; - -/** Samples for IntegrationRuntimes CreateLinkedIntegrationRuntime. */ -public final class IntegrationRuntimesCreateLinkedIntegrationRuntimeSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json - */ - /** - * Sample code: IntegrationRuntimes_CreateLinkedIntegrationRuntime. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesCreateLinkedIntegrationRuntime( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .createLinkedIntegrationRuntimeWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - new CreateLinkedIntegrationRuntimeRequest() - .withName("bfa92911-9fb6-4fbe-8f23-beae87bc1c83") - .withSubscriptionId("061774c7-4b5a-4159-a55b-365581830283") - .withDataFactoryName("e9955d6d-56ea-4be3-841c-52a12c1a9981") - .withDataFactoryLocation("West US"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java deleted file mode 100644 index d1ec5a4a5c3fb..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesCreateOrUpdateSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.generated; - -import com.azure.resourcemanager.datafactory.models.SelfHostedIntegrationRuntime; - -/** Samples for IntegrationRuntimes CreateOrUpdate. */ -public final class IntegrationRuntimesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json - */ - /** - * Sample code: IntegrationRuntimes_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .define("exampleIntegrationRuntime") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime")) - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java deleted file mode 100644 index 7096cad9b7274..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Delete. */ -public final class IntegrationRuntimesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json - */ - /** - * Sample code: IntegrationRuntimes_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .deleteWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java deleted file mode 100644 index 214af03e5890d..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetConnectionInfoSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes GetConnectionInfo. */ -public final class IntegrationRuntimesGetConnectionInfoSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json - */ - /** - * Sample code: IntegrationRuntimes_GetConnectionInfo. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGetConnectionInfo( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getConnectionInfoWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java deleted file mode 100644 index cd39eaf3c99a4..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetMonitoringDataSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes GetMonitoringData. */ -public final class IntegrationRuntimesGetMonitoringDataSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json - */ - /** - * Sample code: IntegrationRuntimes_GetMonitoringData. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGetMonitoringData( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getMonitoringDataWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java deleted file mode 100644 index 69264af895a63..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Get. */ -public final class IntegrationRuntimesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json - */ - /** - * Sample code: IntegrationRuntimes_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java deleted file mode 100644 index f9152bb3b400c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesGetStatusSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes GetStatus. */ -public final class IntegrationRuntimesGetStatusSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json - */ - /** - * Sample code: IntegrationRuntimes_GetStatus. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesGetStatus(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .getStatusWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java deleted file mode 100644 index db64fe3aba65a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListAuthKeysSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes ListAuthKeys. */ -public final class IntegrationRuntimesListAuthKeysSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json - */ - /** - * Sample code: IntegrationRuntimes_ListAuthKeys. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesListAuthKeys( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .listAuthKeysWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java deleted file mode 100644 index c7161a7a1bde0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes ListByFactory. */ -public final class IntegrationRuntimesListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json - */ - /** - * Sample code: IntegrationRuntimes_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.integrationRuntimes().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java deleted file mode 100644 index 45b151cbec07e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. */ -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json - */ - /** - * Sample code: IntegrationRuntimes_OutboundNetworkDependenciesEndpoints. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesOutboundNetworkDependenciesEndpoints( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java deleted file mode 100644 index 27a666c814f11..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRegenerateAuthKeySamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAuthKeyName; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeRegenerateKeyParameters; - -/** Samples for IntegrationRuntimes RegenerateAuthKey. */ -public final class IntegrationRuntimesRegenerateAuthKeySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json - */ - /** - * Sample code: IntegrationRuntimes_RegenerateAuthKey. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesRegenerateAuthKey( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .regenerateAuthKeyWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java deleted file mode 100644 index 55222df6845c8..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesRemoveLinksSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeRequest; - -/** Samples for IntegrationRuntimes RemoveLinks. */ -public final class IntegrationRuntimesRemoveLinksSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json - */ - /** - * Sample code: IntegrationRuntimes_Upgrade. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .removeLinksWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - new LinkedIntegrationRuntimeRequest().withLinkedFactoryName("exampleFactoryName-linked"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartSamples.java deleted file mode 100644 index 82178856feff2..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStartSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Start. */ -public final class IntegrationRuntimesStartSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json - */ - /** - * Sample code: IntegrationRuntimes_Start. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .start("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopSamples.java deleted file mode 100644 index 3d5529be92b05..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesStopSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Stop. */ -public final class IntegrationRuntimesStopSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json - */ - /** - * Sample code: IntegrationRuntimes_Stop. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .stop("exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java deleted file mode 100644 index 53240d8f2ae51..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesSyncCredentialsSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes SyncCredentials. */ -public final class IntegrationRuntimesSyncCredentialsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json - */ - /** - * Sample code: IntegrationRuntimes_SyncCredentials. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesSyncCredentials( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .syncCredentialsWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java deleted file mode 100644 index b59a4b2171011..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpdateSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeResource; - -/** Samples for IntegrationRuntimes Update. */ -public final class IntegrationRuntimesUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json - */ - /** - * Sample code: IntegrationRuntimes_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - IntegrationRuntimeResource resource = - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", null, Context.NONE) - .getValue(); - resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java deleted file mode 100644 index 2f0227921680a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/IntegrationRuntimesUpgradeSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for IntegrationRuntimes Upgrade. */ -public final class IntegrationRuntimesUpgradeSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json - */ - /** - * Sample code: IntegrationRuntimes_Upgrade. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void integrationRuntimesUpgrade(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .integrationRuntimes() - .upgradeWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java deleted file mode 100644 index da70d3f9504b0..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesCreateOrUpdateSamples.java +++ /dev/null @@ -1,74 +0,0 @@ -// 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.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.AzureStorageLinkedService; -import com.azure.resourcemanager.datafactory.models.LinkedServiceResource; -import java.io.IOException; - -/** Samples for LinkedServices CreateOrUpdate. */ -public final class LinkedServicesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json - */ - /** - * Sample code: LinkedServices_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .linkedServices() - .define("exampleLinkedService") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new AzureStorageLinkedService() - .withConnectionString( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", - Object.class, - SerializerEncoding.JSON))) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json - */ - /** - * Sample code: LinkedServices_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - LinkedServiceResource resource = - manager - .linkedServices() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new AzureStorageLinkedService() - .withDescription("Example description") - .withConnectionString( - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"SecureString\",\"value\":\"DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=\"}", - Object.class, - SerializerEncoding.JSON))) - .apply(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java deleted file mode 100644 index 8522ce6b2bf2c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for LinkedServices Delete. */ -public final class LinkedServicesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json - */ - /** - * Sample code: LinkedServices_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .linkedServices() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java deleted file mode 100644 index a23808e6a8616..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for LinkedServices Get. */ -public final class LinkedServicesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json - */ - /** - * Sample code: LinkedServices_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .linkedServices() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java deleted file mode 100644 index 800660c4f103a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/LinkedServicesListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for LinkedServices ListByFactory. */ -public final class LinkedServicesListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json - */ - /** - * Sample code: LinkedServices_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void linkedServicesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.linkedServices().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java deleted file mode 100644 index 8c53bf50f39b3..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsCreateOrUpdateSamples.java +++ /dev/null @@ -1,48 +0,0 @@ -// 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.generated; - -import com.azure.resourcemanager.datafactory.models.ManagedPrivateEndpoint; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for ManagedPrivateEndpoints CreateOrUpdate. */ -public final class ManagedPrivateEndpointsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json - */ - /** - * Sample code: ManagedVirtualNetworks_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .define("exampleManagedPrivateEndpointName") - .withExistingManagedVirtualNetwork( - "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName") - .withProperties( - new ManagedPrivateEndpoint() - .withFqdns(Arrays.asList()) - .withGroupId("blob") - .withPrivateLinkResourceId( - "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage") - .withAdditionalProperties(mapOf())) - .create(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java deleted file mode 100644 index 42fe0e1013597..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsDeleteSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedPrivateEndpoints Delete. */ -public final class ManagedPrivateEndpointsDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json - */ - /** - * Sample code: ManagedVirtualNetworks_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .deleteWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java deleted file mode 100644 index 73c0f2c50588e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsGetSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedPrivateEndpoints Get. */ -public final class ManagedPrivateEndpointsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json - */ - /** - * Sample code: ManagedPrivateEndpoints_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedPrivateEndpointsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .getWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", - null, - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java deleted file mode 100644 index c3864d12ed962..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedPrivateEndpointsListByFactorySamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedPrivateEndpoints ListByFactory. */ -public final class ManagedPrivateEndpointsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json - */ - /** - * Sample code: ManagedPrivateEndpoints_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedPrivateEndpointsListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedPrivateEndpoints() - .listByFactory( - "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java deleted file mode 100644 index 31004ccbc33e5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksCreateOrUpdateSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// 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.generated; - -import com.azure.resourcemanager.datafactory.models.ManagedVirtualNetwork; -import java.util.HashMap; -import java.util.Map; - -/** Samples for ManagedVirtualNetworks CreateOrUpdate. */ -public final class ManagedVirtualNetworksCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json - */ - /** - * Sample code: ManagedVirtualNetworks_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedVirtualNetworks() - .define("exampleManagedVirtualNetworkName") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties(new ManagedVirtualNetwork().withAdditionalProperties(mapOf())) - .create(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java deleted file mode 100644 index 67c402777c30c..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedVirtualNetworks Get. */ -public final class ManagedVirtualNetworksGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json - */ - /** - * Sample code: ManagedVirtualNetworks_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .managedVirtualNetworks() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java deleted file mode 100644 index 47170a30b40bd..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/ManagedVirtualNetworksListByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for ManagedVirtualNetworks ListByFactory. */ -public final class ManagedVirtualNetworksListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json - */ - /** - * Sample code: ManagedVirtualNetworks_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void managedVirtualNetworksListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.managedVirtualNetworks().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java deleted file mode 100644 index 1d16c04301f20..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/OperationsListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Operations List. */ -public final class OperationsListSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json - */ - /** - * Sample code: Operations_List. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void operationsList(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.operations().list(Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java deleted file mode 100644 index 98996d4733df6..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsCancelSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for PipelineRuns Cancel. */ -public final class PipelineRunsCancelSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json - */ - /** - * Sample code: PipelineRuns_Cancel. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelineRunsCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelineRuns() - .cancelWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "16ac5348-ff82-4f95-a80d-638c1d47b721", - null, - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java deleted file mode 100644 index 0af5695b20031..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for PipelineRuns Get. */ -public final class PipelineRunsGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json - */ - /** - * Sample code: PipelineRuns_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelineRunsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelineRuns() - .getWithResponse( - "exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java deleted file mode 100644 index 3635688fc78d5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelineRunsQueryByFactorySamples.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.time.OffsetDateTime; -import java.util.Arrays; - -/** Samples for PipelineRuns QueryByFactory. */ -public final class PipelineRunsQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json - */ - /** - * Sample code: PipelineRuns_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelineRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelineRuns() - .queryByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new RunFilterParameters() - .withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) - .withFilters( - Arrays - .asList( - new RunQueryFilter() - .withOperand(RunQueryFilterOperand.PIPELINE_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("examplePipeline")))), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java deleted file mode 100644 index b9a10d9c03de5..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateOrUpdateSamples.java +++ /dev/null @@ -1,128 +0,0 @@ -// 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.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.Activity; -import com.azure.resourcemanager.datafactory.models.ParameterSpecification; -import com.azure.resourcemanager.datafactory.models.ParameterType; -import com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy; -import com.azure.resourcemanager.datafactory.models.PipelinePolicy; -import com.azure.resourcemanager.datafactory.models.PipelineResource; -import com.azure.resourcemanager.datafactory.models.VariableSpecification; -import com.azure.resourcemanager.datafactory.models.VariableType; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Pipelines CreateOrUpdate. */ -public final class PipelinesCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json - */ - /** - * Sample code: Pipelines_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .pipelines() - .define("examplePipeline") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withActivities( - Arrays - .asList( - new Activity() - .withName("ExampleForeachActivity") - .withAdditionalProperties( - mapOf( - "typeProperties", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"activities\":[{\"name\":\"ExampleCopyActivity\",\"type\":\"Copy\",\"inputs\":[{\"type\":\"DatasetReference\",\"parameters\":{\"MyFileName\":\"examplecontainer.csv\",\"MyFolderPath\":\"examplecontainer\"},\"referenceName\":\"exampleDataset\"}],\"outputs\":[{\"type\":\"DatasetReference\",\"parameters\":{\"MyFileName\":{\"type\":\"Expression\",\"value\":\"@item()\"},\"MyFolderPath\":\"examplecontainer\"},\"referenceName\":\"exampleDataset\"}],\"typeProperties\":{\"dataIntegrationUnits\":32,\"sink\":{\"type\":\"BlobSink\"},\"source\":{\"type\":\"BlobSource\"}}}],\"isSequential\":true,\"items\":{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.OutputBlobNameList\"}}", - Object.class, - SerializerEncoding.JSON), - "type", - "ForEach")))) - .withParameters( - mapOf( - "JobId", - new ParameterSpecification().withType(ParameterType.STRING), - "OutputBlobNameList", - new ParameterSpecification().withType(ParameterType.ARRAY))) - .withVariables(mapOf("TestVariableArray", new VariableSpecification().withType(VariableType.ARRAY))) - .withRunDimensions( - mapOf( - "JobId", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.JobId\"}", - Object.class, - SerializerEncoding.JSON))) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json - */ - /** - * Sample code: Pipelines_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - PipelineResource resource = - manager - .pipelines() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, Context.NONE) - .getValue(); - resource - .update() - .withDescription("Example description") - .withActivities( - Arrays - .asList( - new Activity() - .withName("ExampleForeachActivity") - .withAdditionalProperties( - mapOf( - "typeProperties", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"activities\":[{\"name\":\"ExampleCopyActivity\",\"type\":\"Copy\",\"inputs\":[{\"type\":\"DatasetReference\",\"parameters\":{\"MyFileName\":\"examplecontainer.csv\",\"MyFolderPath\":\"examplecontainer\"},\"referenceName\":\"exampleDataset\"}],\"outputs\":[{\"type\":\"DatasetReference\",\"parameters\":{\"MyFileName\":{\"type\":\"Expression\",\"value\":\"@item()\"},\"MyFolderPath\":\"examplecontainer\"},\"referenceName\":\"exampleDataset\"}],\"typeProperties\":{\"dataIntegrationUnits\":32,\"sink\":{\"type\":\"BlobSink\"},\"source\":{\"type\":\"BlobSource\"}}}],\"isSequential\":true,\"items\":{\"type\":\"Expression\",\"value\":\"@pipeline().parameters.OutputBlobNameList\"}}", - Object.class, - SerializerEncoding.JSON), - "type", - "ForEach")))) - .withParameters(mapOf("OutputBlobNameList", new ParameterSpecification().withType(ParameterType.ARRAY))) - .withPolicy( - new PipelinePolicy() - .withElapsedTimeMetric(new PipelineElapsedTimeMetricPolicy().withDuration("0.00:10:00"))) - .apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java deleted file mode 100644 index 13edf00d34d3f..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesCreateRunSamples.java +++ /dev/null @@ -1,54 +0,0 @@ -// 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.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Pipelines CreateRun. */ -public final class PipelinesCreateRunSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json - */ - /** - * Sample code: Pipelines_CreateRun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesCreateRun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .pipelines() - .createRunWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "examplePipeline", - null, - null, - null, - null, - mapOf( - "OutputBlobNameList", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize("[\"exampleoutput.csv\"]", Object.class, SerializerEncoding.JSON)), - Context.NONE); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java deleted file mode 100644 index d66ba37801291..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Pipelines Delete. */ -public final class PipelinesDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json - */ - /** - * Sample code: Pipelines_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelines() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java deleted file mode 100644 index 8365a4974a467..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Pipelines Get. */ -public final class PipelinesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json - */ - /** - * Sample code: Pipelines_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .pipelines() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "examplePipeline", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java deleted file mode 100644 index 83c9d4e7f5a40..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PipelinesListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Pipelines ListByFactory. */ -public final class PipelinesListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json - */ - /** - * Sample code: Pipelines_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void pipelinesListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.pipelines().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java deleted file mode 100644 index 5c141f97c9ae1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndPointConnectionsListByFactorySamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateEndPointConnections ListByFactory. */ -public final class PrivateEndPointConnectionsListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json - */ - /** - * Sample code: privateEndPointConnections_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void privateEndPointConnectionsListByFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateEndPointConnections().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java deleted file mode 100644 index dd55ed300df59..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.generated; - -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest; -import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState; - -/** Samples for PrivateEndpointConnectionOperation CreateOrUpdate. */ -public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json - */ - /** - * Sample code: Approves or rejects a private endpoint connection for a factory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void approvesOrRejectsAPrivateEndpointConnectionForAFactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .privateEndpointConnectionOperations() - .define("connection") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new PrivateLinkConnectionApprovalRequest() - .withPrivateLinkServiceConnectionState( - new PrivateLinkConnectionState() - .withStatus("Approved") - .withDescription("Approved by admin.") - .withActionsRequired(""))) - .create(); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java deleted file mode 100644 index 12a65773b3c2a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationDeleteSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateEndpointConnectionOperation Delete. */ -public final class PrivateEndpointConnectionOperationDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json - */ - /** - * Sample code: Delete a private endpoint connection for a datafactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void deleteAPrivateEndpointConnectionForADatafactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .privateEndpointConnectionOperations() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java deleted file mode 100644 index 5ad6a87ea0a70..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateEndpointConnectionOperation Get. */ -public final class PrivateEndpointConnectionOperationGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json - */ - /** - * Sample code: Get a private endpoint connection for a datafactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void getAPrivateEndpointConnectionForADatafactory( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .privateEndpointConnectionOperations() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "connection", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java deleted file mode 100644 index bff68ed64efd1..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateLinkResourcesGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for PrivateLinkResources Get. */ -public final class PrivateLinkResourcesGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json - */ - /** - * Sample code: Get private link resources of a site. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void getPrivateLinkResourcesOfASite( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.privateLinkResources().getWithResponse("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java deleted file mode 100644 index 630ee7271bf5a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsCancelSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for TriggerRuns Cancel. */ -public final class TriggerRunsCancelSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json - */ - /** - * Sample code: Triggers_Cancel. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersCancel(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggerRuns() - .cancelWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java deleted file mode 100644 index 3bf30e3b43242..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsQueryByFactorySamples.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.RunFilterParameters; -import com.azure.resourcemanager.datafactory.models.RunQueryFilter; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperand; -import com.azure.resourcemanager.datafactory.models.RunQueryFilterOperator; -import java.time.OffsetDateTime; -import java.util.Arrays; - -/** Samples for TriggerRuns QueryByFactory. */ -public final class TriggerRunsQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json - */ - /** - * Sample code: TriggerRuns_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggerRunsQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggerRuns() - .queryByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new RunFilterParameters() - .withLastUpdatedAfter(OffsetDateTime.parse("2018-06-16T00:36:44.3345758Z")) - .withLastUpdatedBefore(OffsetDateTime.parse("2018-06-16T00:49:48.3686473Z")) - .withFilters( - Arrays - .asList( - new RunQueryFilter() - .withOperand(RunQueryFilterOperand.TRIGGER_NAME) - .withOperator(RunQueryFilterOperator.EQUALS) - .withValues(Arrays.asList("exampleTrigger")))), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java deleted file mode 100644 index 379c02f6f8528..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggerRunsRerunSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for TriggerRuns Rerun. */ -public final class TriggerRunsRerunSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json - */ - /** - * Sample code: Triggers_Rerun. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersRerun(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggerRuns() - .rerunWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java deleted file mode 100644 index 052d1c592cd38..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersCreateOrUpdateSamples.java +++ /dev/null @@ -1,106 +0,0 @@ -// 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.generated; - -import com.azure.core.management.serializer.SerializerFactory; -import com.azure.core.util.Context; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.datafactory.models.Trigger; -import com.azure.resourcemanager.datafactory.models.TriggerResource; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -/** Samples for Triggers CreateOrUpdate. */ -public final class TriggersCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json - */ - /** - * Sample code: Triggers_Create. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - manager - .triggers() - .define("exampleTrigger") - .withExistingFactory("exampleResourceGroup", "exampleFactoryName") - .withProperties( - new Trigger() - .withAdditionalProperties( - mapOf( - "typeProperties", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"recurrence\":{\"endTime\":\"2018-06-16T00:55:13.8441801Z\",\"frequency\":\"Minute\",\"interval\":4,\"startTime\":\"2018-06-16T00:39:13.8441801Z\",\"timeZone\":\"UTC\"}}", - Object.class, - SerializerEncoding.JSON), - "pipelines", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "[{\"parameters\":{\"OutputBlobNameList\":[\"exampleoutput.csv\"]},\"pipelineReference\":{\"type\":\"PipelineReference\",\"referenceName\":\"examplePipeline\"}}]", - Object.class, - SerializerEncoding.JSON), - "type", - "ScheduleTrigger"))) - .create(); - } - - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json - */ - /** - * Sample code: Triggers_Update. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) - throws IOException { - TriggerResource resource = - manager - .triggers() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, Context.NONE) - .getValue(); - resource - .update() - .withProperties( - new Trigger() - .withDescription("Example description") - .withAdditionalProperties( - mapOf( - "typeProperties", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "{\"recurrence\":{\"endTime\":\"2018-06-16T00:55:14.905167Z\",\"frequency\":\"Minute\",\"interval\":4,\"startTime\":\"2018-06-16T00:39:14.905167Z\",\"timeZone\":\"UTC\"}}", - Object.class, - SerializerEncoding.JSON), - "pipelines", - SerializerFactory - .createDefaultManagementSerializerAdapter() - .deserialize( - "[{\"parameters\":{\"OutputBlobNameList\":[\"exampleoutput.csv\"]},\"pipelineReference\":{\"type\":\"PipelineReference\",\"referenceName\":\"examplePipeline\"}}]", - Object.class, - SerializerEncoding.JSON), - "type", - "ScheduleTrigger"))) - .apply(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java deleted file mode 100644 index 233a0221af72a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Delete. */ -public final class TriggersDeleteSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json - */ - /** - * Sample code: Triggers_Delete. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java deleted file mode 100644 index a6226b768033e..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetEventSubscriptionStatusSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers GetEventSubscriptionStatus. */ -public final class TriggersGetEventSubscriptionStatusSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json - */ - /** - * Sample code: Triggers_GetEventSubscriptionStatus. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersGetEventSubscriptionStatus( - com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .getEventSubscriptionStatusWithResponse( - "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java deleted file mode 100644 index 40312e9f76fb7..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Get. */ -public final class TriggersGetSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json - */ - /** - * Sample code: Triggers_Get. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", null, Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java deleted file mode 100644 index 57326957f5863..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersListByFactorySamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers ListByFactory. */ -public final class TriggersListByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json - */ - /** - * Sample code: Triggers_ListByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java deleted file mode 100644 index 9b50eb2a77a81..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersQueryByFactorySamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.datafactory.models.TriggerFilterParameters; - -/** Samples for Triggers QueryByFactory. */ -public final class TriggersQueryByFactorySamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json - */ - /** - * Sample code: Triggers_QueryByFactory. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersQueryByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .queryByFactoryWithResponse( - "exampleResourceGroup", - "exampleFactoryName", - new TriggerFilterParameters().withParentTriggerName("exampleTrigger"), - Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStartSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStartSamples.java deleted file mode 100644 index 46f4c8827d400..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStartSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Start. */ -public final class TriggersStartSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json - */ - /** - * Sample code: Triggers_Start. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers().start("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStopSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStopSamples.java deleted file mode 100644 index 58da81cfe268a..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersStopSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers Stop. */ -public final class TriggersStopSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json - */ - /** - * Sample code: Triggers_Stop. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager.triggers().stop("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsSamples.java deleted file mode 100644 index 138407cbdc040..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersSubscribeToEventsSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers SubscribeToEvents. */ -public final class TriggersSubscribeToEventsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json - */ - /** - * Sample code: Triggers_SubscribeToEvents. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersSubscribeToEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .subscribeToEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -} diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsSamples.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsSamples.java deleted file mode 100644 index 59470f3eee277..0000000000000 --- a/sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/TriggersUnsubscribeFromEventsSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// 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.generated; - -import com.azure.core.util.Context; - -/** Samples for Triggers UnsubscribeFromEvents. */ -public final class TriggersUnsubscribeFromEventsSamples { - /* - * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json - */ - /** - * Sample code: Triggers_UnsubscribeFromEvents. - * - * @param manager Entry point to DataFactoryManager. - */ - public static void triggersUnsubscribeFromEvents(com.azure.resourcemanager.datafactory.DataFactoryManager manager) { - manager - .triggers() - .unsubscribeFromEvents("exampleResourceGroup", "exampleFactoryName", "exampleTrigger", Context.NONE); - } -}