diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/AzureSqlMILinkedService.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/AzureSqlMILinkedService.java new file mode 100644 index 000000000000..cc697d4157dc --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/AzureSqlMILinkedService.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Azure SQL Managed Instance linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlMI") +@JsonFlatten +public class AzureSqlMILinkedService extends LinkedServiceInner { + /** + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /** + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The key of the service principal used to authenticate against Azure SQL + * Managed Instance. + */ + @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; + + /** + * 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 connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @return the connectionString value + */ + public Object connectionString() { + return this.connectionString; + } + + /** + * Set the connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + * + * @param connectionString the connectionString value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withConnectionString(Object connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the Azure key vault secret reference of password in connection string. + * + * @return the password value + */ + public AzureKeyVaultSecretReference password() { + return this.password; + } + + /** + * Set the Azure key vault secret reference of password in connection string. + * + * @param password the password value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withPassword(AzureKeyVaultSecretReference password) { + this.password = password; + return this; + } + + /** + * Get 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 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 AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get 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 key of the service principal used to authenticate against Azure SQL Managed Instance. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get 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 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 AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get 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 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 AzureSqlMILinkedService object itself. + */ + public AzureSqlMILinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/AzureSqlMITableDataset.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/AzureSqlMITableDataset.java new file mode 100644 index 000000000000..aa47856fcee6 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/AzureSqlMITableDataset.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.DatasetInner; + +/** + * The Azure SQL Managed Instance dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlMITable") +@JsonFlatten +public class AzureSqlMITableDataset extends DatasetInner { + /** + * This property will be retired. Please consider using schema + table + * properties instead. + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * The schema name of the Azure SQL Managed Instance. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object azureSqlMITableDatasetSchema; + + /** + * 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 this property will be retired. Please consider using schema + table properties instead. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set this property will be retired. Please consider using schema + table properties instead. + * + * @param tableName the tableName value to set + * @return the AzureSqlMITableDataset object itself. + */ + public AzureSqlMITableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). + * + * @return the azureSqlMITableDatasetSchema value + */ + public Object azureSqlMITableDatasetSchema() { + return this.azureSqlMITableDatasetSchema; + } + + /** + * Set the schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). + * + * @param azureSqlMITableDatasetSchema the azureSqlMITableDatasetSchema value to set + * @return the AzureSqlMITableDataset object itself. + */ + public AzureSqlMITableDataset withAzureSqlMITableDatasetSchema(Object azureSqlMITableDatasetSchema) { + this.azureSqlMITableDatasetSchema = azureSqlMITableDatasetSchema; + return this; + } + + /** + * Get 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 name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). + * + * @param table the table value to set + * @return the AzureSqlMITableDataset object itself. + */ + public AzureSqlMITableDataset withTable(Object table) { + this.table = table; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsEntityDataset.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsEntityDataset.java new file mode 100644 index 000000000000..edd3d7b9af91 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsEntityDataset.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.DatasetInner; + +/** + * The Common Data Service for Apps entity dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForAppsEntity") +@JsonFlatten +public class CommonDataServiceForAppsEntityDataset extends DatasetInner { + /** + * The logical name of the entity. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; + + /** + * Get 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 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) { + this.entityName = entityName; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsLinkedService.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsLinkedService.java new file mode 100644 index 000000000000..61d375d6e70d --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsLinkedService.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Common Data Service for Apps linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForApps") +@JsonFlatten +public class CommonDataServiceForAppsLinkedService extends LinkedServiceInner { + /** + * 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). Possible values include: 'Online', + * 'OnPremisesWithIfd'. + */ + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private DynamicsDeploymentType 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 = "typeProperties.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 = "typeProperties.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 = "typeProperties.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 = "typeProperties.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. Type: string (or Expression with resultType string). Possible + * values include: 'Office365', 'Ifd'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private DynamicsAuthenticationType authenticationType; + + /** + * User name to access the Common Data Service for Apps instance. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * Password to access the Common Data Service for Apps instance. + */ + @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 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). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @return the deploymentType value + */ + public DynamicsDeploymentType deploymentType() { + return this.deploymentType; + } + + /** + * Set 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). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @param deploymentType the deploymentType value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withDeploymentType(DynamicsDeploymentType deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Get 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 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 CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withHostName(Object hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get 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 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 CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get 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 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 CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withServiceUri(Object serviceUri) { + this.serviceUri = serviceUri; + return this; + } + + /** + * Get 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 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 CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withOrganizationName(Object organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get the authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @return the authenticationType value + */ + public DynamicsAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @param authenticationType the authenticationType value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withAuthenticationType(DynamicsAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get 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 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 CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password to access the Common Data Service for Apps instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the Common Data Service for Apps instance. + * + * @param password the password value to set + * @return the CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get 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 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 CommonDataServiceForAppsLinkedService object itself. + */ + public CommonDataServiceForAppsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsSink.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsSink.java new file mode 100644 index 000000000000..8ae881c5b0a2 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsSink.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Common Data Service for Apps sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForAppsSink") +public class CommonDataServiceForAppsSink extends CopySink { + /** + * The write behavior for the operation. + */ + @JsonProperty(value = "writeBehavior", required = true) + private String writeBehavior; + + /** + * The flag indicating whether to ignore null values from input dataset + * (except key fields) during write operation. Default is false. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "ignoreNullValues") + private Object ignoreNullValues; + + /** + * Creates an instance of CommonDataServiceForAppsSink class. + */ + public CommonDataServiceForAppsSink() { + writeBehavior = "Upsert"; + } + + /** + * Get the write behavior for the operation. + * + * @return the writeBehavior value + */ + public String writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. + * + * @param writeBehavior the writeBehavior value to set + * @return the CommonDataServiceForAppsSink object itself. + */ + public CommonDataServiceForAppsSink withWriteBehavior(String writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the CommonDataServiceForAppsSink object itself. + */ + public CommonDataServiceForAppsSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsSource.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsSource.java new file mode 100644 index 000000000000..fd31d6a242ab --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CommonDataServiceForAppsSource.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Common Data Service for Apps source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CommonDataServiceForAppsSource") +public class CommonDataServiceForAppsSource extends CopySource { + /** + * FetchXML is a proprietary query language that is used in Microsoft + * Common Data Service for Apps (online & on-premises). Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get fetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set fetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the CommonDataServiceForAppsSource object itself. + */ + public CommonDataServiceForAppsSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySink.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySink.java index 51fd5779d684..79a24adba9e5 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySink.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySink.java @@ -23,6 +23,8 @@ @JsonSubTypes.Type(name = "CosmosDbMongoDbApiSink", value = CosmosDbMongoDbApiSink.class), @JsonSubTypes.Type(name = "SalesforceSink", value = SalesforceSink.class), @JsonSubTypes.Type(name = "AzureDataExplorerSink", value = AzureDataExplorerSink.class), + @JsonSubTypes.Type(name = "CommonDataServiceForAppsSink", value = CommonDataServiceForAppsSink.class), + @JsonSubTypes.Type(name = "DynamicsCrmSink", value = DynamicsCrmSink.class), @JsonSubTypes.Type(name = "DynamicsSink", value = DynamicsSink.class), @JsonSubTypes.Type(name = "OdbcSink", value = OdbcSink.class), @JsonSubTypes.Type(name = "AzureSearchIndexSink", value = AzureSearchIndexSink.class), @@ -30,6 +32,7 @@ @JsonSubTypes.Type(name = "AzureDataLakeStoreSink", value = AzureDataLakeStoreSink.class), @JsonSubTypes.Type(name = "OracleSink", value = OracleSink.class), @JsonSubTypes.Type(name = "SqlDWSink", value = SqlDWSink.class), + @JsonSubTypes.Type(name = "SqlMISink", value = SqlMISink.class), @JsonSubTypes.Type(name = "AzureSqlSink", value = AzureSqlSink.class), @JsonSubTypes.Type(name = "SqlServerSink", value = SqlServerSink.class), @JsonSubTypes.Type(name = "SqlSink", value = SqlSink.class), diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySource.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySource.java index 8358e3f3e1d7..a2be62544476 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySource.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/CopySource.java @@ -69,6 +69,7 @@ @JsonSubTypes.Type(name = "HdfsSource", value = HdfsSource.class), @JsonSubTypes.Type(name = "FileSystemSource", value = FileSystemSource.class), @JsonSubTypes.Type(name = "SqlDWSource", value = SqlDWSource.class), + @JsonSubTypes.Type(name = "SqlMISource", value = SqlMISource.class), @JsonSubTypes.Type(name = "AzureSqlSource", value = AzureSqlSource.class), @JsonSubTypes.Type(name = "SqlServerSource", value = SqlServerSource.class), @JsonSubTypes.Type(name = "SqlSource", value = SqlSource.class), @@ -80,6 +81,8 @@ @JsonSubTypes.Type(name = "SapCloudForCustomerSource", value = SapCloudForCustomerSource.class), @JsonSubTypes.Type(name = "SalesforceSource", value = SalesforceSource.class), @JsonSubTypes.Type(name = "RelationalSource", value = RelationalSource.class), + @JsonSubTypes.Type(name = "CommonDataServiceForAppsSource", value = CommonDataServiceForAppsSource.class), + @JsonSubTypes.Type(name = "DynamicsCrmSource", value = DynamicsCrmSource.class), @JsonSubTypes.Type(name = "DynamicsSource", value = DynamicsSource.class), @JsonSubTypes.Type(name = "DocumentDbCollectionSource", value = DocumentDbCollectionSource.class), @JsonSubTypes.Type(name = "BlobSource", value = BlobSource.class), diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsAuthenticationType.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsAuthenticationType.java new file mode 100644 index 000000000000..3d8d34b63682 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsAuthenticationType.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DynamicsAuthenticationType. + */ +public final class DynamicsAuthenticationType extends ExpandableStringEnum { + /** Static value Office365 for DynamicsAuthenticationType. */ + public static final DynamicsAuthenticationType OFFICE365 = fromString("Office365"); + + /** Static value Ifd for DynamicsAuthenticationType. */ + public static final DynamicsAuthenticationType IFD = fromString("Ifd"); + + /** + * Creates or finds a DynamicsAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding DynamicsAuthenticationType + */ + @JsonCreator + public static DynamicsAuthenticationType fromString(String name) { + return fromString(name, DynamicsAuthenticationType.class); + } + + /** + * @return known DynamicsAuthenticationType values + */ + public static Collection values() { + return values(DynamicsAuthenticationType.class); + } +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmEntityDataset.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmEntityDataset.java new file mode 100644 index 000000000000..0251135412c6 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmEntityDataset.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.DatasetInner; + +/** + * The Dynamics CRM entity dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrmEntity") +@JsonFlatten +public class DynamicsCrmEntityDataset extends DatasetInner { + /** + * The logical name of the entity. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; + + /** + * Get 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 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) { + this.entityName = entityName; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmLinkedService.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmLinkedService.java new file mode 100644 index 000000000000..8bfd40d23e91 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmLinkedService.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.datafactoryv2.v2018_06_01.implementation.LinkedServiceInner; + +/** + * Dynamics CRM linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrm") +@JsonFlatten +public class DynamicsCrmLinkedService extends LinkedServiceInner { + /** + * 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). Possible + * values include: 'Online', 'OnPremisesWithIfd'. + */ + @JsonProperty(value = "typeProperties.deploymentType", required = true) + private DynamicsDeploymentType 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 = "typeProperties.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 = "typeProperties.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 = "typeProperties.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 = "typeProperties.organizationName") + private Object organizationName; + + /** + * The authentication type to connect to Dynamics CRM server. 'Office365' + * for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: + * string (or Expression with resultType string). Possible values include: + * 'Office365', 'Ifd'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private DynamicsAuthenticationType authenticationType; + + /** + * User name to access the Dynamics CRM instance. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * Password to access the Dynamics CRM instance. + */ + @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 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). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @return the deploymentType value + */ + public DynamicsDeploymentType deploymentType() { + return this.deploymentType; + } + + /** + * Set 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). Possible values include: 'Online', 'OnPremisesWithIfd'. + * + * @param deploymentType the deploymentType value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withDeploymentType(DynamicsDeploymentType deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Get 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 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 DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withHostName(Object hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get 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 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 DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get 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 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 DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withServiceUri(Object serviceUri) { + this.serviceUri = serviceUri; + return this; + } + + /** + * Get 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 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 DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withOrganizationName(Object organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get the authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @return the authenticationType value + */ + public DynamicsAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'. + * + * @param authenticationType the authenticationType value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withAuthenticationType(DynamicsAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get 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 user name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). + * + * @param username the username value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get password to access the Dynamics CRM instance. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set password to access the Dynamics CRM instance. + * + * @param password the password value to set + * @return the DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get 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 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 DynamicsCrmLinkedService object itself. + */ + public DynamicsCrmLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmSink.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmSink.java new file mode 100644 index 000000000000..1ce605fdfb35 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmSink.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics CRM sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrmSink") +public class DynamicsCrmSink extends CopySink { + /** + * The write behavior for the operation. + */ + @JsonProperty(value = "writeBehavior", required = true) + private String writeBehavior; + + /** + * The flag indicating whether to ignore null values from input dataset + * (except key fields) during write operation. Default is false. Type: + * boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "ignoreNullValues") + private Object ignoreNullValues; + + /** + * Creates an instance of DynamicsCrmSink class. + */ + public DynamicsCrmSink() { + writeBehavior = "Upsert"; + } + + /** + * Get the write behavior for the operation. + * + * @return the writeBehavior value + */ + public String writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the write behavior for the operation. + * + * @param writeBehavior the writeBehavior value to set + * @return the DynamicsCrmSink object itself. + */ + public DynamicsCrmSink withWriteBehavior(String writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set the flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the DynamicsCrmSink object itself. + */ + public DynamicsCrmSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmSource.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmSource.java new file mode 100644 index 000000000000..1d459e16b274 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsCrmSource.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics CRM source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsCrmSource") +public class DynamicsCrmSource extends CopySource { + /** + * FetchXML is a proprietary query language that is used in Microsoft + * Dynamics CRM (online & on-premises). Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get fetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string). + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set fetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or Expression with resultType string). + * + * @param query the query value to set + * @return the DynamicsCrmSource object itself. + */ + public DynamicsCrmSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsDeploymentType.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsDeploymentType.java new file mode 100644 index 000000000000..4299a717fed1 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/DynamicsDeploymentType.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DynamicsDeploymentType. + */ +public final class DynamicsDeploymentType extends ExpandableStringEnum { + /** Static value Online for DynamicsDeploymentType. */ + public static final DynamicsDeploymentType ONLINE = fromString("Online"); + + /** Static value OnPremisesWithIfd for DynamicsDeploymentType. */ + public static final DynamicsDeploymentType ON_PREMISES_WITH_IFD = fromString("OnPremisesWithIfd"); + + /** + * Creates or finds a DynamicsDeploymentType from its string representation. + * @param name a name to look for + * @return the corresponding DynamicsDeploymentType + */ + @JsonCreator + public static DynamicsDeploymentType fromString(String name) { + return fromString(name, DynamicsDeploymentType.class); + } + + /** + * @return known DynamicsDeploymentType values + */ + public static Collection values() { + return values(DynamicsDeploymentType.class); + } +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SqlMISink.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SqlMISink.java new file mode 100644 index 000000000000..e80572c21f71 --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SqlMISink.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure SQL Managed Instance sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlMISink") +public class SqlMISink extends CopySink { + /** + * SQL writer stored procedure name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "sqlWriterStoredProcedureName") + private Object sqlWriterStoredProcedureName; + + /** + * SQL writer table type. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "sqlWriterTableType") + private Object sqlWriterTableType; + + /** + * SQL pre-copy script. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * SQL stored procedure parameters. + */ + @JsonProperty(value = "storedProcedureParameters") + private Map storedProcedureParameters; + + /** + * The stored procedure parameter name of the table type. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "storedProcedureTableTypeParameterName") + private Object storedProcedureTableTypeParameterName; + + /** + * Get sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @return the sqlWriterStoredProcedureName value + */ + public Object sqlWriterStoredProcedureName() { + return this.sqlWriterStoredProcedureName; + } + + /** + * Set sQL writer stored procedure name. Type: string (or Expression with resultType string). + * + * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { + this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + return this; + } + + /** + * Get sQL writer table type. Type: string (or Expression with resultType string). + * + * @return the sqlWriterTableType value + */ + public Object sqlWriterTableType() { + return this.sqlWriterTableType; + } + + /** + * Set sQL writer table type. Type: string (or Expression with resultType string). + * + * @param sqlWriterTableType the sqlWriterTableType value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withSqlWriterTableType(Object sqlWriterTableType) { + this.sqlWriterTableType = sqlWriterTableType; + return this; + } + + /** + * Get sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set sQL pre-copy script. Type: string (or Expression with resultType string). + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get sQL stored procedure parameters. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set sQL stored procedure parameters. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @return the storedProcedureTableTypeParameterName value + */ + public Object storedProcedureTableTypeParameterName() { + return this.storedProcedureTableTypeParameterName; + } + + /** + * Set the stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + * + * @param storedProcedureTableTypeParameterName the storedProcedureTableTypeParameterName value to set + * @return the SqlMISink object itself. + */ + public SqlMISink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName) { + this.storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SqlMISource.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SqlMISource.java new file mode 100644 index 000000000000..251e8e0c524a --- /dev/null +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/SqlMISource.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.datafactoryv2.v2018_06_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure SQL Managed Instance source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlMISource") +public class SqlMISource extends CopySource { + /** + * SQL reader query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "sqlReaderQuery") + private Object sqlReaderQuery; + + /** + * Name of the stored procedure for a Azure SQL Managed Instance source. + * This cannot be used at the same time as SqlReaderQuery. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "sqlReaderStoredProcedureName") + private Object sqlReaderStoredProcedureName; + + /** + * Value and type setting for stored procedure parameters. Example: + * "{Parameter1: {value: "1", type: "int"}}". + */ + @JsonProperty(value = "storedProcedureParameters") + private Map storedProcedureParameters; + + /** + * Which additional types to produce. + */ + @JsonProperty(value = "produceAdditionalTypes") + private Object produceAdditionalTypes; + + /** + * Get sQL reader query. Type: string (or Expression with resultType string). + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set sQL reader query. Type: string (or Expression with resultType string). + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get 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 value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get which additional types to produce. + * + * @return the produceAdditionalTypes value + */ + public Object produceAdditionalTypes() { + return this.produceAdditionalTypes; + } + + /** + * Set which additional types to produce. + * + * @param produceAdditionalTypes the produceAdditionalTypes value to set + * @return the SqlMISource object itself. + */ + public SqlMISource withProduceAdditionalTypes(Object produceAdditionalTypes) { + this.produceAdditionalTypes = produceAdditionalTypes; + return this; + } + +} diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java index ed3344393ae3..6c2d8ee3b425 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/DatasetInner.java @@ -81,11 +81,14 @@ @JsonSubTypes.Type(name = "Office365Table", value = Office365Dataset.class), @JsonSubTypes.Type(name = "AzureBlobFSFile", value = AzureBlobFSDataset.class), @JsonSubTypes.Type(name = "AzureDataLakeStoreFile", value = AzureDataLakeStoreDataset.class), + @JsonSubTypes.Type(name = "CommonDataServiceForAppsEntity", value = CommonDataServiceForAppsEntityDataset.class), + @JsonSubTypes.Type(name = "DynamicsCrmEntity", value = DynamicsCrmEntityDataset.class), @JsonSubTypes.Type(name = "DynamicsEntity", value = DynamicsEntityDataset.class), @JsonSubTypes.Type(name = "DocumentDbCollection", value = DocumentDbCollectionDataset.class), @JsonSubTypes.Type(name = "CustomDataset", value = CustomDataset.class), @JsonSubTypes.Type(name = "CassandraTable", value = CassandraTableDataset.class), @JsonSubTypes.Type(name = "AzureSqlDWTable", value = AzureSqlDWTableDataset.class), + @JsonSubTypes.Type(name = "AzureSqlMITable", value = AzureSqlMITableDataset.class), @JsonSubTypes.Type(name = "AzureSqlTable", value = AzureSqlTableDataset.class), @JsonSubTypes.Type(name = "AzureTable", value = AzureTableDataset.class), @JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class), diff --git a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/LinkedServiceInner.java b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/LinkedServiceInner.java index 138560a8bd87..8a513d7a950e 100644 --- a/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/LinkedServiceInner.java +++ b/datafactoryv2/resource-manager/v2018_06_01/src/main/java/com/microsoft/azure/management/datafactoryv2/v2018_06_01/implementation/LinkedServiceInner.java @@ -99,10 +99,13 @@ @JsonSubTypes.Type(name = "Oracle", value = OracleLinkedService.class), @JsonSubTypes.Type(name = "FileServer", value = FileServerLinkedService.class), @JsonSubTypes.Type(name = "HDInsight", value = HDInsightLinkedService.class), + @JsonSubTypes.Type(name = "CommonDataServiceForApps", value = CommonDataServiceForAppsLinkedService.class), + @JsonSubTypes.Type(name = "DynamicsCrm", value = DynamicsCrmLinkedService.class), @JsonSubTypes.Type(name = "Dynamics", value = DynamicsLinkedService.class), @JsonSubTypes.Type(name = "CosmosDb", value = CosmosDbLinkedService.class), @JsonSubTypes.Type(name = "AzureKeyVault", value = AzureKeyVaultLinkedService.class), @JsonSubTypes.Type(name = "AzureBatch", value = AzureBatchLinkedService.class), + @JsonSubTypes.Type(name = "AzureSqlMI", value = AzureSqlMILinkedService.class), @JsonSubTypes.Type(name = "AzureSqlDatabase", value = AzureSqlDatabaseLinkedService.class), @JsonSubTypes.Type(name = "SqlServer", value = SqlServerLinkedService.class), @JsonSubTypes.Type(name = "AzureSqlDW", value = AzureSqlDWLinkedService.class),