diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Activity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Activity.java new file mode 100644 index 00000000000..1a25a50b17f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Activity.java @@ -0,0 +1,132 @@ +/** + * 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.datafactory; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * A pipeline activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Activity") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Execution", value = ExecutionActivity.class), + @JsonSubTypes.Type(name = "Container", value = ControlActivity.class) +}) +public class Activity { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Activity name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * Activity description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Activity depends on condition. + */ + @JsonProperty(value = "dependsOn") + private List dependsOn; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the Activity object itself. + */ + public Activity withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the Activity object itself. + */ + public Activity withName(String name) { + this.name = name; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the Activity object itself. + */ + public Activity withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the dependsOn value. + * + * @return the dependsOn value + */ + public List dependsOn() { + return this.dependsOn; + } + + /** + * Set the dependsOn value. + * + * @param dependsOn the dependsOn value to set + * @return the Activity object itself. + */ + public Activity withDependsOn(List dependsOn) { + this.dependsOn = dependsOn; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ActivityDependency.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ActivityDependency.java new file mode 100644 index 00000000000..b15a0c495b8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ActivityDependency.java @@ -0,0 +1,97 @@ +/** + * 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.datafactory; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Activity dependency information. + */ +public class ActivityDependency { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Activity name. + */ + @JsonProperty(value = "activity", required = true) + private String activity; + + /** + * Match-Condition for the dependency. + */ + @JsonProperty(value = "dependencyConditions", required = true) + private List dependencyConditions; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the ActivityDependency object itself. + */ + public ActivityDependency withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the activity value. + * + * @return the activity value + */ + public String activity() { + return this.activity; + } + + /** + * Set the activity value. + * + * @param activity the activity value to set + * @return the ActivityDependency object itself. + */ + public ActivityDependency withActivity(String activity) { + this.activity = activity; + return this; + } + + /** + * Get the dependencyConditions value. + * + * @return the dependencyConditions value + */ + public List dependencyConditions() { + return this.dependencyConditions; + } + + /** + * Set the dependencyConditions value. + * + * @param dependencyConditions the dependencyConditions value to set + * @return the ActivityDependency object itself. + */ + public ActivityDependency withDependencyConditions(List dependencyConditions) { + this.dependencyConditions = dependencyConditions; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ActivityPolicy.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ActivityPolicy.java new file mode 100644 index 00000000000..429b4c87f91 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ActivityPolicy.java @@ -0,0 +1,152 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Execution policy for an activity. + */ +public class ActivityPolicy { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Specifies the timeout for the activity to run. The default timeout is 7 + * days. 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; + + /** + * Maximum ordinary retry attempts. Default is 0. Type: integer (or + * Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "retry") + private Object retry; + + /** + * Interval between each retry attempt (in seconds). The default is 30 sec. + */ + @JsonProperty(value = "retryIntervalInSeconds") + private Integer retryIntervalInSeconds; + + /** + * When set to true, Output from activity is considered as secure and will + * not be logged to monitoring. + */ + @JsonProperty(value = "secureOutput") + private Boolean secureOutput; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the timeout value. + * + * @return the timeout value + */ + public Object timeout() { + return this.timeout; + } + + /** + * Set the timeout value. + * + * @param timeout the timeout value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withTimeout(Object timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get the retry value. + * + * @return the retry value + */ + public Object retry() { + return this.retry; + } + + /** + * Set the retry value. + * + * @param retry the retry value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withRetry(Object retry) { + this.retry = retry; + return this; + } + + /** + * Get the retryIntervalInSeconds value. + * + * @return the retryIntervalInSeconds value + */ + public Integer retryIntervalInSeconds() { + return this.retryIntervalInSeconds; + } + + /** + * Set the retryIntervalInSeconds value. + * + * @param retryIntervalInSeconds the retryIntervalInSeconds value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withRetryIntervalInSeconds(Integer retryIntervalInSeconds) { + this.retryIntervalInSeconds = retryIntervalInSeconds; + return this; + } + + /** + * Get the secureOutput value. + * + * @return the secureOutput value + */ + public Boolean secureOutput() { + return this.secureOutput; + } + + /** + * Set the secureOutput value. + * + * @param secureOutput the secureOutput value to set + * @return the ActivityPolicy object itself. + */ + public ActivityPolicy withSecureOutput(Boolean secureOutput) { + this.secureOutput = secureOutput; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSLinkedService.java new file mode 100644 index 00000000000..d0c2d4ce816 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSLinkedService.java @@ -0,0 +1,292 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Amazon Marketplace Web Service linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonMWS") +@JsonFlatten +public class AmazonMWSLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The Amazon Marketplace ID you want to retrieve data from. To retrive + * data from multiple Marketplace IDs, seperate them with a comma (,). + * (i.e. A2EUQ1WTGCTBG2). + */ + @JsonProperty(value = "typeProperties.marketplaceID", required = true) + private Object marketplaceID; + + /** + * The Amazon seller ID. + */ + @JsonProperty(value = "typeProperties.sellerID", required = true) + private Object sellerID; + + /** + * The Amazon MWS authentication token. + */ + @JsonProperty(value = "typeProperties.mwsAuthToken") + private SecretBase mwsAuthToken; + + /** + * The access key id used to access data. + */ + @JsonProperty(value = "typeProperties.accessKeyId", required = true) + private Object accessKeyId; + + /** + * 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 value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the marketplaceID value. + * + * @return the marketplaceID value + */ + public Object marketplaceID() { + return this.marketplaceID; + } + + /** + * Set the marketplaceID value. + * + * @param marketplaceID the marketplaceID value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withMarketplaceID(Object marketplaceID) { + this.marketplaceID = marketplaceID; + return this; + } + + /** + * Get the sellerID value. + * + * @return the sellerID value + */ + public Object sellerID() { + return this.sellerID; + } + + /** + * Set the sellerID value. + * + * @param sellerID the sellerID value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withSellerID(Object sellerID) { + this.sellerID = sellerID; + return this; + } + + /** + * Get the mwsAuthToken value. + * + * @return the mwsAuthToken value + */ + public SecretBase mwsAuthToken() { + return this.mwsAuthToken; + } + + /** + * Set the mwsAuthToken value. + * + * @param mwsAuthToken the mwsAuthToken value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withMwsAuthToken(SecretBase mwsAuthToken) { + this.mwsAuthToken = mwsAuthToken; + return this; + } + + /** + * Get the accessKeyId value. + * + * @return the accessKeyId value + */ + public Object accessKeyId() { + return this.accessKeyId; + } + + /** + * Set the accessKeyId value. + * + * @param accessKeyId the accessKeyId value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withAccessKeyId(Object accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + + /** + * Get the secretKey value. + * + * @return the secretKey value + */ + public SecretBase secretKey() { + return this.secretKey; + } + + /** + * Set the secretKey value. + * + * @param secretKey the secretKey value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withSecretKey(SecretBase secretKey) { + this.secretKey = secretKey; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AmazonMWSLinkedService object itself. + */ + public AmazonMWSLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSObjectDataset.java new file mode 100644 index 00000000000..e020e7a5083 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Amazon Marketplace Web Service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonMWSObject") +public class AmazonMWSObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSSource.java new file mode 100644 index 00000000000..f20d1583f76 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonMWSSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Amazon Marketplace Web Service source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonMWSSource") +public class AmazonMWSSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the AmazonMWSSource object itself. + */ + public AmazonMWSSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonRedshiftLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonRedshiftLinkedService.java new file mode 100644 index 00000000000..a7a4057c904 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonRedshiftLinkedService.java @@ -0,0 +1,187 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Amazon Redshift. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonRedshift") +@JsonFlatten +public class AmazonRedshiftLinkedService extends LinkedServiceInner { + /** + * The name of the Amazon Redshift server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * The username of the Amazon Redshift source. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * The password of the Amazon Redshift source. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The database name of the Amazon Redshift source. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the server value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the database value. + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database value. + * + * @param database the database value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AmazonRedshiftLinkedService object itself. + */ + public AmazonRedshiftLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonRedshiftSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonRedshiftSource.java new file mode 100644 index 00000000000..ac95079c7bd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonRedshiftSource.java @@ -0,0 +1,76 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for Amazon Redshift Source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonRedshiftSource") +public class AmazonRedshiftSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * The Amazon S3 settings needed for the interim Amazon S3 when copying + * from Amazon Redshift with unload. With this, data from Amazon Redshift + * source will be unloaded into S3 first and then copied into the targeted + * sink from the interim S3. + */ + @JsonProperty(value = "redshiftUnloadSettings") + private RedshiftUnloadSettings redshiftUnloadSettings; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the AmazonRedshiftSource object itself. + */ + public AmazonRedshiftSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the redshiftUnloadSettings value. + * + * @return the redshiftUnloadSettings value + */ + public RedshiftUnloadSettings redshiftUnloadSettings() { + return this.redshiftUnloadSettings; + } + + /** + * Set the redshiftUnloadSettings value. + * + * @param redshiftUnloadSettings the redshiftUnloadSettings value to set + * @return the AmazonRedshiftSource object itself. + */ + public AmazonRedshiftSource withRedshiftUnloadSettings(RedshiftUnloadSettings redshiftUnloadSettings) { + this.redshiftUnloadSettings = redshiftUnloadSettings; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonS3Dataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonS3Dataset.java new file mode 100644 index 00000000000..c61d5215536 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonS3Dataset.java @@ -0,0 +1,184 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * 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 +public class AmazonS3Dataset extends DatasetInner { + /** + * The name of the Amazon S3 bucket. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.bucketName", required = true) + private Object bucketName; + + /** + * The key of the Amazon S3 object. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.key") + private Object key; + + /** + * The prefix filter for the S3 object name. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.prefix") + private Object prefix; + + /** + * The version for the S3 object. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.version") + private Object version; + + /** + * The format of files. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; + + /** + * The data compression method used for the Amazon S3 object. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * Get the bucketName value. + * + * @return the bucketName value + */ + public Object bucketName() { + return this.bucketName; + } + + /** + * Set the bucketName value. + * + * @param bucketName the bucketName value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withBucketName(Object bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * Get the key value. + * + * @return the key value + */ + public Object key() { + return this.key; + } + + /** + * Set the key value. + * + * @param key the key value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withKey(Object key) { + this.key = key; + return this; + } + + /** + * Get the prefix value. + * + * @return the prefix value + */ + public Object prefix() { + return this.prefix; + } + + /** + * Set the prefix value. + * + * @param prefix the prefix value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withPrefix(Object prefix) { + this.prefix = prefix; + return this; + } + + /** + * Get the version value. + * + * @return the version value + */ + public Object version() { + return this.version; + } + + /** + * Set the version value. + * + * @param version the version value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withVersion(Object version) { + this.version = version; + return this; + } + + /** + * Get the format value. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format value. + * + * @param format the format value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the compression value. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the compression value. + * + * @param compression the compression value to set + * @return the AmazonS3Dataset object itself. + */ + public AmazonS3Dataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonS3LinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonS3LinkedService.java new file mode 100644 index 00000000000..5372f55e8a1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AmazonS3LinkedService.java @@ -0,0 +1,107 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Amazon S3. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonS3") +@JsonFlatten +public class AmazonS3LinkedService extends LinkedServiceInner { + /** + * The access key identifier of the Amazon S3 Identity and Access + * Management (IAM) user. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.accessKeyId") + private Object accessKeyId; + + /** + * The secret access key of the Amazon S3 Identity and Access Management + * (IAM) user. + */ + @JsonProperty(value = "typeProperties.secretAccessKey") + private SecretBase secretAccessKey; + + /** + * 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 value. + * + * @return the accessKeyId value + */ + public Object accessKeyId() { + return this.accessKeyId; + } + + /** + * Set the accessKeyId value. + * + * @param accessKeyId the accessKeyId value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withAccessKeyId(Object accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + + /** + * Get the secretAccessKey value. + * + * @return the secretAccessKey value + */ + public SecretBase secretAccessKey() { + return this.secretAccessKey; + } + + /** + * Set the secretAccessKey value. + * + * @param secretAccessKey the secretAccessKey value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withSecretAccessKey(SecretBase secretAccessKey) { + this.secretAccessKey = secretAccessKey; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AmazonS3LinkedService object itself. + */ + public AmazonS3LinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AvroFormat.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AvroFormat.java new file mode 100644 index 00000000000..e307a71954c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AvroFormat.java @@ -0,0 +1,20 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The data stored in Avro format. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AvroFormat") +public class AvroFormat extends DatasetStorageFormat { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureBatchLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureBatchLinkedService.java new file mode 100644 index 00000000000..95231e7afb6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureBatchLinkedService.java @@ -0,0 +1,185 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure Batch linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBatch") +@JsonFlatten +public class AzureBatchLinkedService extends LinkedServiceInner { + /** + * The Azure Batch account name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.accountName", required = true) + private Object accountName; + + /** + * The Azure Batch account access key. + */ + @JsonProperty(value = "typeProperties.accessKey") + private SecretBase accessKey; + + /** + * The Azure Batch URI. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.batchUri", required = true) + private Object batchUri; + + /** + * The Azure Batch pool name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.poolName", required = true) + private Object poolName; + + /** + * The Azure Storage linked service reference. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the accountName value. + * + * @return the accountName value + */ + public Object accountName() { + return this.accountName; + } + + /** + * Set the accountName value. + * + * @param accountName the accountName value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withAccountName(Object accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get the accessKey value. + * + * @return the accessKey value + */ + public SecretBase accessKey() { + return this.accessKey; + } + + /** + * Set the accessKey value. + * + * @param accessKey the accessKey value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withAccessKey(SecretBase accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * Get the batchUri value. + * + * @return the batchUri value + */ + public Object batchUri() { + return this.batchUri; + } + + /** + * Set the batchUri value. + * + * @param batchUri the batchUri value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withBatchUri(Object batchUri) { + this.batchUri = batchUri; + return this; + } + + /** + * Get the poolName value. + * + * @return the poolName value + */ + public Object poolName() { + return this.poolName; + } + + /** + * Set the poolName value. + * + * @param poolName the poolName value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withPoolName(Object poolName) { + this.poolName = poolName; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureBatchLinkedService object itself. + */ + public AzureBatchLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureBlobDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureBlobDataset.java new file mode 100644 index 00000000000..2f698579e3a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureBlobDataset.java @@ -0,0 +1,157 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Azure Blob storage. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureBlob") +@JsonFlatten +public class AzureBlobDataset extends DatasetInner { + /** + * The path of the Azure Blob storage. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; + + /** + * The root of blob path. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableRootLocation") + private Object tableRootLocation; + + /** + * The name of the Azure Blob. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; + + /** + * The format of the Azure Blob storage. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; + + /** + * The data compression method used for the blob storage. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * Get the folderPath value. + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the folderPath value. + * + * @param folderPath the folderPath value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the tableRootLocation value. + * + * @return the tableRootLocation value + */ + public Object tableRootLocation() { + return this.tableRootLocation; + } + + /** + * Set the tableRootLocation value. + * + * @param tableRootLocation the tableRootLocation value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withTableRootLocation(Object tableRootLocation) { + this.tableRootLocation = tableRootLocation; + return this; + } + + /** + * Get the fileName value. + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the fileName value. + * + * @param fileName the fileName value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the format value. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format value. + * + * @param format the format value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the compression value. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the compression value. + * + * @param compression the compression value to set + * @return the AzureBlobDataset object itself. + */ + public AzureBlobDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeAnalyticsLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeAnalyticsLinkedService.java new file mode 100644 index 00000000000..5b74c77103a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeAnalyticsLinkedService.java @@ -0,0 +1,242 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure Data Lake Analytics linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataLakeAnalytics") +@JsonFlatten +public class AzureDataLakeAnalyticsLinkedService extends LinkedServiceInner { + /** + * The Azure Data Lake Analytics account name. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The Key of the application used to authenticate against the Azure Data + * Lake Analytics account. + */ + @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", 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 = "typeProperties.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 = "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 value. + * + * @return the accountName value + */ + public Object accountName() { + return this.accountName; + } + + /** + * Set the accountName value. + * + * @param accountName the accountName value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withAccountName(Object accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get the servicePrincipalId value. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId value. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey value. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey value. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant value. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant value. + * + * @param tenant the tenant value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the subscriptionId value. + * + * @return the subscriptionId value + */ + public Object subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the subscriptionId value. + * + * @param subscriptionId the subscriptionId value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withSubscriptionId(Object subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get the resourceGroupName value. + * + * @return the resourceGroupName value + */ + public Object resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set the resourceGroupName value. + * + * @param resourceGroupName the resourceGroupName value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withResourceGroupName(Object resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get the dataLakeAnalyticsUri value. + * + * @return the dataLakeAnalyticsUri value + */ + public Object dataLakeAnalyticsUri() { + return this.dataLakeAnalyticsUri; + } + + /** + * Set the dataLakeAnalyticsUri value. + * + * @param dataLakeAnalyticsUri the dataLakeAnalyticsUri value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withDataLakeAnalyticsUri(Object dataLakeAnalyticsUri) { + this.dataLakeAnalyticsUri = dataLakeAnalyticsUri; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureDataLakeAnalyticsLinkedService object itself. + */ + public AzureDataLakeAnalyticsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreDataset.java new file mode 100644 index 00000000000..4d3f03fcb73 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreDataset.java @@ -0,0 +1,131 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * Azure Data Lake Store dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataLakeStoreFile") +@JsonFlatten +public class AzureDataLakeStoreDataset extends DatasetInner { + /** + * Path to the folder in the Azure Data Lake Store. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.folderPath", required = true) + private Object folderPath; + + /** + * The name of the file in the Azure Data Lake Store. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; + + /** + * The format of the Data Lake Store. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; + + /** + * 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 value. + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the folderPath value. + * + * @param folderPath the folderPath value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the fileName value. + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the fileName value. + * + * @param fileName the fileName value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the format value. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format value. + * + * @param format the format value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the compression value. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the compression value. + * + * @param compression the compression value to set + * @return the AzureDataLakeStoreDataset object itself. + */ + public AzureDataLakeStoreDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreLinkedService.java new file mode 100644 index 00000000000..da9ad7c9783 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreLinkedService.java @@ -0,0 +1,241 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure Data Lake Store linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataLakeStore") +@JsonFlatten +public class AzureDataLakeStoreLinkedService extends LinkedServiceInner { + /** + * Data Lake Store service URI. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The Key of the application used to authenticate against the Azure Data + * Lake Store account. + */ + @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; + + /** + * 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; + + /** + * Get the dataLakeStoreUri value. + * + * @return the dataLakeStoreUri value + */ + public Object dataLakeStoreUri() { + return this.dataLakeStoreUri; + } + + /** + * Set the dataLakeStoreUri value. + * + * @param dataLakeStoreUri the dataLakeStoreUri value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withDataLakeStoreUri(Object dataLakeStoreUri) { + this.dataLakeStoreUri = dataLakeStoreUri; + return this; + } + + /** + * Get the servicePrincipalId value. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId value. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey value. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey value. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant value. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant value. + * + * @param tenant the tenant value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the accountName value. + * + * @return the accountName value + */ + public Object accountName() { + return this.accountName; + } + + /** + * Set the accountName value. + * + * @param accountName the accountName value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withAccountName(Object accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get the subscriptionId value. + * + * @return the subscriptionId value + */ + public Object subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the subscriptionId value. + * + * @param subscriptionId the subscriptionId value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withSubscriptionId(Object subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get the resourceGroupName value. + * + * @return the resourceGroupName value + */ + public Object resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set the resourceGroupName value. + * + * @param resourceGroupName the resourceGroupName value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withResourceGroupName(Object resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureDataLakeStoreLinkedService object itself. + */ + public AzureDataLakeStoreLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreSink.java new file mode 100644 index 00000000000..d2112bdfe33 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Data Lake Store sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataLakeStoreSink") +public class AzureDataLakeStoreSink extends CopySink { + /** + * The type of copy behavior for copy sink. Possible values include: + * 'PreserveHierarchy', 'FlattenHierarchy', 'MergeFiles'. + */ + @JsonProperty(value = "copyBehavior") + private CopyBehaviorType copyBehavior; + + /** + * Get the copyBehavior value. + * + * @return the copyBehavior value + */ + public CopyBehaviorType copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the copyBehavior value. + * + * @param copyBehavior the copyBehavior value to set + * @return the AzureDataLakeStoreSink object itself. + */ + public AzureDataLakeStoreSink withCopyBehavior(CopyBehaviorType copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreSource.java new file mode 100644 index 00000000000..f68165cc429 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDataLakeStoreSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Data Lake source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDataLakeStoreSource") +public class AzureDataLakeStoreSource extends CopySource { + /** + * If true, files under the folder path will be read recursively. Default + * is true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "recursive") + private Object recursive; + + /** + * Get the recursive value. + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set the recursive value. + * + * @param recursive the recursive value to set + * @return the AzureDataLakeStoreSource object itself. + */ + public AzureDataLakeStoreSource withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDatabricksLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDatabricksLinkedService.java new file mode 100644 index 00000000000..8ab2f7c2b2b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureDatabricksLinkedService.java @@ -0,0 +1,244 @@ +/** + * 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.datafactory; + +import java.util.Map; +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure Databricks linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureDatabricks") +@JsonFlatten +public class AzureDatabricksLinkedService extends LinkedServiceInner { + /** + * <REGION>.azuredatabricks.net, domain name of your Databricks + * deployment. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.accessToken", required = true) + private SecretBase accessToken; + + /** + * The id of an existing cluster that will be used for all runs of this + * job. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.existingClusterId") + private Object existingClusterId; + + /** + * The Spark version of new cluster. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.newClusterVersion") + private Object newClusterVersion; + + /** + * Number of worker nodes that new cluster should have. A string formatted + * Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 + * as min and 10 as max. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.newClusterNumOfWorker") + private Object newClusterNumOfWorker; + + /** + * The node types of new cluster. 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") + private Map newClusterSparkConf; + + /** + * 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 value. + * + * @return the domain value + */ + public Object domain() { + return this.domain; + } + + /** + * Set the domain value. + * + * @param domain the domain value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withDomain(Object domain) { + this.domain = domain; + return this; + } + + /** + * Get the accessToken value. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the accessToken value. + * + * @param accessToken the accessToken value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the existingClusterId value. + * + * @return the existingClusterId value + */ + public Object existingClusterId() { + return this.existingClusterId; + } + + /** + * Set the existingClusterId value. + * + * @param existingClusterId the existingClusterId value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withExistingClusterId(Object existingClusterId) { + this.existingClusterId = existingClusterId; + return this; + } + + /** + * Get the newClusterVersion value. + * + * @return the newClusterVersion value + */ + public Object newClusterVersion() { + return this.newClusterVersion; + } + + /** + * Set the newClusterVersion value. + * + * @param newClusterVersion the newClusterVersion value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterVersion(Object newClusterVersion) { + this.newClusterVersion = newClusterVersion; + return this; + } + + /** + * Get the newClusterNumOfWorker value. + * + * @return the newClusterNumOfWorker value + */ + public Object newClusterNumOfWorker() { + return this.newClusterNumOfWorker; + } + + /** + * Set the newClusterNumOfWorker value. + * + * @param newClusterNumOfWorker the newClusterNumOfWorker value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterNumOfWorker(Object newClusterNumOfWorker) { + this.newClusterNumOfWorker = newClusterNumOfWorker; + return this; + } + + /** + * Get the newClusterNodeType value. + * + * @return the newClusterNodeType value + */ + public Object newClusterNodeType() { + return this.newClusterNodeType; + } + + /** + * Set the newClusterNodeType value. + * + * @param newClusterNodeType the newClusterNodeType value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterNodeType(Object newClusterNodeType) { + this.newClusterNodeType = newClusterNodeType; + return this; + } + + /** + * Get the newClusterSparkConf value. + * + * @return the newClusterSparkConf value + */ + public Map newClusterSparkConf() { + return this.newClusterSparkConf; + } + + /** + * Set the newClusterSparkConf value. + * + * @param newClusterSparkConf the newClusterSparkConf value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withNewClusterSparkConf(Map newClusterSparkConf) { + this.newClusterSparkConf = newClusterSparkConf; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureDatabricksLinkedService object itself. + */ + public AzureDatabricksLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureKeyVaultLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureKeyVaultLinkedService.java new file mode 100644 index 00000000000..80c363318c5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureKeyVaultLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure Key Vault linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureKeyVault") +@JsonFlatten +public class AzureKeyVaultLinkedService extends LinkedServiceInner { + /** + * 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.baseUrl", required = true) + private Object baseUrl; + + /** + * Get the baseUrl value. + * + * @return the baseUrl value + */ + public Object baseUrl() { + return this.baseUrl; + } + + /** + * Set the baseUrl value. + * + * @param baseUrl the baseUrl value to set + * @return the AzureKeyVaultLinkedService object itself. + */ + public AzureKeyVaultLinkedService withBaseUrl(Object baseUrl) { + this.baseUrl = baseUrl; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureKeyVaultSecretReference.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureKeyVaultSecretReference.java new file mode 100644 index 00000000000..26b2c0fe657 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureKeyVaultSecretReference.java @@ -0,0 +1,102 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Azure Key Vault secret reference. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureKeyVaultSecret") +public class AzureKeyVaultSecretReference extends SecretBase { + /** + * The Azure Key Vault linked service reference. + */ + @JsonProperty(value = "store", required = true) + private LinkedServiceReference store; + + /** + * The name of the secret in Azure Key Vault. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "secretName", required = true) + private Object secretName; + + /** + * The version of the secret in Azure Key Vault. The default value is the + * latest version of the secret. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "secretVersion") + private Object secretVersion; + + /** + * Get the store value. + * + * @return the store value + */ + public LinkedServiceReference store() { + return this.store; + } + + /** + * Set the store value. + * + * @param store the store value to set + * @return the AzureKeyVaultSecretReference object itself. + */ + public AzureKeyVaultSecretReference withStore(LinkedServiceReference store) { + this.store = store; + return this; + } + + /** + * Get the secretName value. + * + * @return the secretName value + */ + public Object secretName() { + return this.secretName; + } + + /** + * Set the secretName value. + * + * @param secretName the secretName value to set + * @return the AzureKeyVaultSecretReference object itself. + */ + public AzureKeyVaultSecretReference withSecretName(Object secretName) { + this.secretName = secretName; + return this; + } + + /** + * Get the secretVersion value. + * + * @return the secretVersion value + */ + public Object secretVersion() { + return this.secretVersion; + } + + /** + * Set the secretVersion value. + * + * @param secretVersion the secretVersion value to set + * @return the AzureKeyVaultSecretReference object itself. + */ + public AzureKeyVaultSecretReference withSecretVersion(Object secretVersion) { + this.secretVersion = secretVersion; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLBatchExecutionActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLBatchExecutionActivity.java new file mode 100644 index 00000000000..f8934106873 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLBatchExecutionActivity.java @@ -0,0 +1,111 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Azure ML Batch Execution activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureMLBatchExecution") +@JsonFlatten +public class AzureMLBatchExecutionActivity extends ExecutionActivity { + /** + * 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.globalParameters") + 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 = "typeProperties.webServiceOutputs") + 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 = "typeProperties.webServiceInputs") + private Map webServiceInputs; + + /** + * Get the globalParameters value. + * + * @return the globalParameters value + */ + public Map globalParameters() { + return this.globalParameters; + } + + /** + * Set the globalParameters value. + * + * @param globalParameters the globalParameters value to set + * @return the AzureMLBatchExecutionActivity object itself. + */ + public AzureMLBatchExecutionActivity withGlobalParameters(Map globalParameters) { + this.globalParameters = globalParameters; + return this; + } + + /** + * Get the webServiceOutputs value. + * + * @return the webServiceOutputs value + */ + public Map webServiceOutputs() { + return this.webServiceOutputs; + } + + /** + * Set the webServiceOutputs value. + * + * @param webServiceOutputs the webServiceOutputs value to set + * @return the AzureMLBatchExecutionActivity object itself. + */ + public AzureMLBatchExecutionActivity withWebServiceOutputs(Map webServiceOutputs) { + this.webServiceOutputs = webServiceOutputs; + return this; + } + + /** + * Get the webServiceInputs value. + * + * @return the webServiceInputs value + */ + public Map webServiceInputs() { + return this.webServiceInputs; + } + + /** + * Set the webServiceInputs value. + * + * @param webServiceInputs the webServiceInputs value to set + * @return the AzureMLBatchExecutionActivity object itself. + */ + public AzureMLBatchExecutionActivity withWebServiceInputs(Map webServiceInputs) { + this.webServiceInputs = webServiceInputs; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLLinkedService.java new file mode 100644 index 00000000000..1283830150c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLLinkedService.java @@ -0,0 +1,214 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure ML Web Service linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureML") +@JsonFlatten +public class AzureMLLinkedService extends LinkedServiceInner { + /** + * The Batch Execution REST URL for an Azure ML Web Service endpoint. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.mlEndpoint", required = true) + private Object mlEndpoint; + + /** + * The API key for accessing the Azure ML model endpoint. + */ + @JsonProperty(value = "typeProperties.apiKey", required = true) + private SecretBase apiKey; + + /** + * The Update Resource REST URL for an Azure ML Web Service endpoint. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.updateResourceEndpoint") + private Object updateResourceEndpoint; + + /** + * The ID of the service principal used to authenticate against the + * ARM-based updateResourceEndpoint of an Azure ML web service. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.servicePrincipalId") + private Object servicePrincipalId; + + /** + * The key of the service principal used to authenticate against the + * ARM-based updateResourceEndpoint of an Azure ML web service. + */ + @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 mlEndpoint value. + * + * @return the mlEndpoint value + */ + public Object mlEndpoint() { + return this.mlEndpoint; + } + + /** + * Set the mlEndpoint value. + * + * @param mlEndpoint the mlEndpoint value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withMlEndpoint(Object mlEndpoint) { + this.mlEndpoint = mlEndpoint; + return this; + } + + /** + * Get the apiKey value. + * + * @return the apiKey value + */ + public SecretBase apiKey() { + return this.apiKey; + } + + /** + * Set the apiKey value. + * + * @param apiKey the apiKey value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withApiKey(SecretBase apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * Get the updateResourceEndpoint value. + * + * @return the updateResourceEndpoint value + */ + public Object updateResourceEndpoint() { + return this.updateResourceEndpoint; + } + + /** + * Set the updateResourceEndpoint value. + * + * @param updateResourceEndpoint the updateResourceEndpoint value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withUpdateResourceEndpoint(Object updateResourceEndpoint) { + this.updateResourceEndpoint = updateResourceEndpoint; + return this; + } + + /** + * Get the servicePrincipalId value. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId value. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey value. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey value. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant value. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant value. + * + * @param tenant the tenant value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureMLLinkedService object itself. + */ + public AzureMLLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLUpdateResourceActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLUpdateResourceActivity.java new file mode 100644 index 00000000000..eab83486d6d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLUpdateResourceActivity.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Azure ML Update Resource management activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureMLUpdateResource") +@JsonFlatten +public class AzureMLUpdateResourceActivity extends ExecutionActivity { + /** + * Name of the Trained Model module in the Web Service experiment to be + * updated. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.trainedModelFilePath", required = true) + private Object trainedModelFilePath; + + /** + * Get the trainedModelName value. + * + * @return the trainedModelName value + */ + public Object trainedModelName() { + return this.trainedModelName; + } + + /** + * Set the trainedModelName value. + * + * @param trainedModelName the trainedModelName value to set + * @return the AzureMLUpdateResourceActivity object itself. + */ + public AzureMLUpdateResourceActivity withTrainedModelName(Object trainedModelName) { + this.trainedModelName = trainedModelName; + return this; + } + + /** + * Get the trainedModelLinkedServiceName value. + * + * @return the trainedModelLinkedServiceName value + */ + public LinkedServiceReference trainedModelLinkedServiceName() { + return this.trainedModelLinkedServiceName; + } + + /** + * Set the trainedModelLinkedServiceName value. + * + * @param trainedModelLinkedServiceName the trainedModelLinkedServiceName value to set + * @return the AzureMLUpdateResourceActivity object itself. + */ + public AzureMLUpdateResourceActivity withTrainedModelLinkedServiceName(LinkedServiceReference trainedModelLinkedServiceName) { + this.trainedModelLinkedServiceName = trainedModelLinkedServiceName; + return this; + } + + /** + * Get the trainedModelFilePath value. + * + * @return the trainedModelFilePath value + */ + public Object trainedModelFilePath() { + return this.trainedModelFilePath; + } + + /** + * Set the trainedModelFilePath value. + * + * @param trainedModelFilePath the trainedModelFilePath value to set + * @return the AzureMLUpdateResourceActivity object itself. + */ + public AzureMLUpdateResourceActivity withTrainedModelFilePath(Object trainedModelFilePath) { + this.trainedModelFilePath = trainedModelFilePath; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLWebServiceFile.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLWebServiceFile.java new file mode 100644 index 00000000000..e97d83e19d6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMLWebServiceFile.java @@ -0,0 +1,72 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure ML WebService Input/Output file. + */ +public class AzureMLWebServiceFile { + /** + * The relative file path, including container name, in the Azure Blob + * Storage specified by the LinkedService. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "filePath", required = true) + private Object filePath; + + /** + * Reference to an Azure Storage LinkedService, where Azure ML WebService + * Input/Output file located. + */ + @JsonProperty(value = "linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; + + /** + * Get the filePath value. + * + * @return the filePath value + */ + public Object filePath() { + return this.filePath; + } + + /** + * Set the filePath value. + * + * @param filePath the filePath value to set + * @return the AzureMLWebServiceFile object itself. + */ + public AzureMLWebServiceFile withFilePath(Object filePath) { + this.filePath = filePath; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the AzureMLWebServiceFile object itself. + */ + public AzureMLWebServiceFile withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlLinkedService.java new file mode 100644 index 00000000000..05f8cc184ba --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure MySQL database linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureMySql") +@JsonFlatten +public class AzureMySqlLinkedService extends LinkedServiceInner { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the AzureMySqlLinkedService object itself. + */ + public AzureMySqlLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureMySqlLinkedService object itself. + */ + public AzureMySqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlSource.java new file mode 100644 index 00000000000..88b30616a9e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlSource.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure MySQL source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureMySqlSource") +public class AzureMySqlSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the AzureMySqlSource object itself. + */ + public AzureMySqlSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlTableDataset.java new file mode 100644 index 00000000000..ab917975fb9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureMySqlTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Azure MySQL database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureMySqlTable") +@JsonFlatten +public class AzureMySqlTableDataset extends DatasetInner { + /** + * The Azure MySQL database table name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the AzureMySqlTableDataset object itself. + */ + public AzureMySqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlLinkedService.java new file mode 100644 index 00000000000..2f809cd0dd3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure PostgreSQL linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzurePostgreSql") +@JsonFlatten +public class AzurePostgreSqlLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzurePostgreSqlLinkedService object itself. + */ + public AzurePostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlSource.java new file mode 100644 index 00000000000..f5de14a67bb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure PostgreSQL source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzurePostgreSqlSource") +public class AzurePostgreSqlSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the AzurePostgreSqlSource object itself. + */ + public AzurePostgreSqlSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlTableDataset.java new file mode 100644 index 00000000000..a099dba37bb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzurePostgreSqlTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Azure PostgreSQL dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzurePostgreSqlTable") +public class AzurePostgreSqlTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureQueueSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureQueueSink.java new file mode 100644 index 00000000000..77dfb69aa83 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureQueueSink.java @@ -0,0 +1,20 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Queue sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureQueueSink") +public class AzureQueueSink extends CopySink { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexDataset.java new file mode 100644 index 00000000000..8aa113a0204 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Azure Search Index. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSearchIndex") +@JsonFlatten +public class AzureSearchIndexDataset extends DatasetInner { + /** + * The name of the Azure Search Index. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.indexName", required = true) + private Object indexName; + + /** + * Get the indexName value. + * + * @return the indexName value + */ + public Object indexName() { + return this.indexName; + } + + /** + * Set the indexName value. + * + * @param indexName the indexName value to set + * @return the AzureSearchIndexDataset object itself. + */ + public AzureSearchIndexDataset withIndexName(Object indexName) { + this.indexName = indexName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexSink.java new file mode 100644 index 00000000000..35b4e6e2d55 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Search Index sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSearchIndexSink") +public class AzureSearchIndexSink extends CopySink { + /** + * Specify the write behavior when upserting documents into Azure Search + * Index. Possible values include: 'Merge', 'Upload'. + */ + @JsonProperty(value = "writeBehavior") + private AzureSearchIndexWriteBehaviorType writeBehavior; + + /** + * Get the writeBehavior value. + * + * @return the writeBehavior value + */ + public AzureSearchIndexWriteBehaviorType writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the writeBehavior value. + * + * @param writeBehavior the writeBehavior value to set + * @return the AzureSearchIndexSink object itself. + */ + public AzureSearchIndexSink withWriteBehavior(AzureSearchIndexWriteBehaviorType writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexWriteBehaviorType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexWriteBehaviorType.java new file mode 100644 index 00000000000..6e85f400243 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchIndexWriteBehaviorType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AzureSearchIndexWriteBehaviorType. + */ +public final class AzureSearchIndexWriteBehaviorType extends ExpandableStringEnum { + /** Static value Merge for AzureSearchIndexWriteBehaviorType. */ + public static final AzureSearchIndexWriteBehaviorType MERGE = fromString("Merge"); + + /** Static value Upload for AzureSearchIndexWriteBehaviorType. */ + public static final AzureSearchIndexWriteBehaviorType UPLOAD = fromString("Upload"); + + /** + * Creates or finds a AzureSearchIndexWriteBehaviorType from its string representation. + * @param name a name to look for + * @return the corresponding AzureSearchIndexWriteBehaviorType + */ + @JsonCreator + public static AzureSearchIndexWriteBehaviorType fromString(String name) { + return fromString(name, AzureSearchIndexWriteBehaviorType.class); + } + + /** + * @return known AzureSearchIndexWriteBehaviorType values + */ + public static Collection values() { + return values(AzureSearchIndexWriteBehaviorType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchLinkedService.java new file mode 100644 index 00000000000..bec0c9bdc39 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSearchLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Windows Azure Search Service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSearch") +@JsonFlatten +public class AzureSearchLinkedService extends LinkedServiceInner { + /** + * URL for Azure Search service. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * Admin Key for Azure Search service. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the url value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the AzureSearchLinkedService object itself. + */ + public AzureSearchLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the key value. + * + * @return the key value + */ + public SecretBase key() { + return this.key; + } + + /** + * Set the key value. + * + * @param key the key value to set + * @return the AzureSearchLinkedService object itself. + */ + public AzureSearchLinkedService withKey(SecretBase key) { + this.key = key; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSearchLinkedService object itself. + */ + public AzureSearchLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDWLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDWLinkedService.java new file mode 100644 index 00000000000..31fa43604ff --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDWLinkedService.java @@ -0,0 +1,159 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Azure SQL Data Warehouse linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlDW") +@JsonFlatten +public class AzureSqlDWLinkedService extends LinkedServiceInner { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * 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; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the servicePrincipalId value. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId value. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey value. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey value. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant value. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant value. + * + * @param tenant the tenant value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSqlDWLinkedService object itself. + */ + public AzureSqlDWLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDWTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDWTableDataset.java new file mode 100644 index 00000000000..d002f28248c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDWTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Azure SQL Data Warehouse dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlDWTable") +@JsonFlatten +public class AzureSqlDWTableDataset extends DatasetInner { + /** + * The table name of the Azure SQL Data Warehouse. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the AzureSqlDWTableDataset object itself. + */ + public AzureSqlDWTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDatabaseLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDatabaseLinkedService.java new file mode 100644 index 00000000000..67ec049b57c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlDatabaseLinkedService.java @@ -0,0 +1,159 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Microsoft Azure SQL Database linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlDatabase") +@JsonFlatten +public class AzureSqlDatabaseLinkedService extends LinkedServiceInner { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * 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; + + /** + * The key of the service principal used to authenticate against Azure SQL + * Database. + */ + @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 connectionString value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the servicePrincipalId value. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId value. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey value. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey value. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant value. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant value. + * + * @param tenant the tenant value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureSqlDatabaseLinkedService object itself. + */ + public AzureSqlDatabaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlTableDataset.java new file mode 100644 index 00000000000..e4d53c38d4e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureSqlTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Azure SQL Server database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureSqlTable") +@JsonFlatten +public class AzureSqlTableDataset extends DatasetInner { + /** + * The table name of the Azure SQL database. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the AzureSqlTableDataset object itself. + */ + public AzureSqlTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureStorageLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureStorageLinkedService.java new file mode 100644 index 00000000000..c80015ec636 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureStorageLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * The storage account linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureStorage") +@JsonFlatten +public class AzureStorageLinkedService extends LinkedServiceInner { + /** + * The connection string. It is mutually exclusive with sasUri property. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * SAS URI of the Azure Storage resource. It is mutually exclusive with + * connectionString property. + */ + @JsonProperty(value = "typeProperties.sasUri") + private SecretBase sasUri; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the sasUri value. + * + * @return the sasUri value + */ + public SecretBase sasUri() { + return this.sasUri; + } + + /** + * Set the sasUri value. + * + * @param sasUri the sasUri value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withSasUri(SecretBase sasUri) { + this.sasUri = sasUri; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the AzureStorageLinkedService object itself. + */ + public AzureStorageLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableDataset.java new file mode 100644 index 00000000000..ccde9a74f3d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Azure Table storage dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureTable") +@JsonFlatten +public class AzureTableDataset extends DatasetInner { + /** + * The table name of the Azure Table storage. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the AzureTableDataset object itself. + */ + public AzureTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableSink.java new file mode 100644 index 00000000000..96268f0dfb3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableSink.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Table sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureTableSink") +public class AzureTableSink extends CopySink { + /** + * Azure Table default partition key value. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "azureTableDefaultPartitionKeyValue") + private Object azureTableDefaultPartitionKeyValue; + + /** + * Azure Table partition key name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "azureTablePartitionKeyName") + private Object azureTablePartitionKeyName; + + /** + * Azure Table row key name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "azureTableRowKeyName") + private Object azureTableRowKeyName; + + /** + * Azure Table insert type. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "azureTableInsertType") + private Object azureTableInsertType; + + /** + * Get the azureTableDefaultPartitionKeyValue value. + * + * @return the azureTableDefaultPartitionKeyValue value + */ + public Object azureTableDefaultPartitionKeyValue() { + return this.azureTableDefaultPartitionKeyValue; + } + + /** + * Set the azureTableDefaultPartitionKeyValue value. + * + * @param azureTableDefaultPartitionKeyValue the azureTableDefaultPartitionKeyValue value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTableDefaultPartitionKeyValue(Object azureTableDefaultPartitionKeyValue) { + this.azureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue; + return this; + } + + /** + * Get the azureTablePartitionKeyName value. + * + * @return the azureTablePartitionKeyName value + */ + public Object azureTablePartitionKeyName() { + return this.azureTablePartitionKeyName; + } + + /** + * Set the azureTablePartitionKeyName value. + * + * @param azureTablePartitionKeyName the azureTablePartitionKeyName value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTablePartitionKeyName(Object azureTablePartitionKeyName) { + this.azureTablePartitionKeyName = azureTablePartitionKeyName; + return this; + } + + /** + * Get the azureTableRowKeyName value. + * + * @return the azureTableRowKeyName value + */ + public Object azureTableRowKeyName() { + return this.azureTableRowKeyName; + } + + /** + * Set the azureTableRowKeyName value. + * + * @param azureTableRowKeyName the azureTableRowKeyName value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTableRowKeyName(Object azureTableRowKeyName) { + this.azureTableRowKeyName = azureTableRowKeyName; + return this; + } + + /** + * Get the azureTableInsertType value. + * + * @return the azureTableInsertType value + */ + public Object azureTableInsertType() { + return this.azureTableInsertType; + } + + /** + * Set the azureTableInsertType value. + * + * @param azureTableInsertType the azureTableInsertType value to set + * @return the AzureTableSink object itself. + */ + public AzureTableSink withAzureTableInsertType(Object azureTableInsertType) { + this.azureTableInsertType = azureTableInsertType; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableSource.java new file mode 100644 index 00000000000..523e3218341 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/AzureTableSource.java @@ -0,0 +1,75 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Table source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AzureTableSource") +public class AzureTableSource extends CopySource { + /** + * Azure Table source query. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "azureTableSourceQuery") + private Object azureTableSourceQuery; + + /** + * Azure Table source ignore table not found. Type: boolean (or Expression + * with resultType boolean). + */ + @JsonProperty(value = "azureTableSourceIgnoreTableNotFound") + private Object azureTableSourceIgnoreTableNotFound; + + /** + * Get the azureTableSourceQuery value. + * + * @return the azureTableSourceQuery value + */ + public Object azureTableSourceQuery() { + return this.azureTableSourceQuery; + } + + /** + * Set the azureTableSourceQuery value. + * + * @param azureTableSourceQuery the azureTableSourceQuery value to set + * @return the AzureTableSource object itself. + */ + public AzureTableSource withAzureTableSourceQuery(Object azureTableSourceQuery) { + this.azureTableSourceQuery = azureTableSourceQuery; + return this; + } + + /** + * Get the azureTableSourceIgnoreTableNotFound value. + * + * @return the azureTableSourceIgnoreTableNotFound value + */ + public Object azureTableSourceIgnoreTableNotFound() { + return this.azureTableSourceIgnoreTableNotFound; + } + + /** + * Set the azureTableSourceIgnoreTableNotFound value. + * + * @param azureTableSourceIgnoreTableNotFound the azureTableSourceIgnoreTableNotFound value to set + * @return the AzureTableSource object itself. + */ + public AzureTableSource withAzureTableSourceIgnoreTableNotFound(Object azureTableSourceIgnoreTableNotFound) { + this.azureTableSourceIgnoreTableNotFound = azureTableSourceIgnoreTableNotFound; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobSink.java new file mode 100644 index 00000000000..361207e4aae --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobSink.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Blob sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BlobSink") +public class BlobSink extends CopySink { + /** + * Blob writer overwrite files. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "blobWriterOverwriteFiles") + private Object blobWriterOverwriteFiles; + + /** + * Blob writer date time format. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "blobWriterDateTimeFormat") + private Object blobWriterDateTimeFormat; + + /** + * Blob writer add header. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "blobWriterAddHeader") + private Object blobWriterAddHeader; + + /** + * The type of copy behavior for copy sink. Possible values include: + * 'PreserveHierarchy', 'FlattenHierarchy', 'MergeFiles'. + */ + @JsonProperty(value = "copyBehavior") + private CopyBehaviorType copyBehavior; + + /** + * Get the blobWriterOverwriteFiles value. + * + * @return the blobWriterOverwriteFiles value + */ + public Object blobWriterOverwriteFiles() { + return this.blobWriterOverwriteFiles; + } + + /** + * Set the blobWriterOverwriteFiles value. + * + * @param blobWriterOverwriteFiles the blobWriterOverwriteFiles value to set + * @return the BlobSink object itself. + */ + public BlobSink withBlobWriterOverwriteFiles(Object blobWriterOverwriteFiles) { + this.blobWriterOverwriteFiles = blobWriterOverwriteFiles; + return this; + } + + /** + * Get the blobWriterDateTimeFormat value. + * + * @return the blobWriterDateTimeFormat value + */ + public Object blobWriterDateTimeFormat() { + return this.blobWriterDateTimeFormat; + } + + /** + * Set the blobWriterDateTimeFormat value. + * + * @param blobWriterDateTimeFormat the blobWriterDateTimeFormat value to set + * @return the BlobSink object itself. + */ + public BlobSink withBlobWriterDateTimeFormat(Object blobWriterDateTimeFormat) { + this.blobWriterDateTimeFormat = blobWriterDateTimeFormat; + return this; + } + + /** + * Get the blobWriterAddHeader value. + * + * @return the blobWriterAddHeader value + */ + public Object blobWriterAddHeader() { + return this.blobWriterAddHeader; + } + + /** + * Set the blobWriterAddHeader value. + * + * @param blobWriterAddHeader the blobWriterAddHeader value to set + * @return the BlobSink object itself. + */ + public BlobSink withBlobWriterAddHeader(Object blobWriterAddHeader) { + this.blobWriterAddHeader = blobWriterAddHeader; + return this; + } + + /** + * Get the copyBehavior value. + * + * @return the copyBehavior value + */ + public CopyBehaviorType copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the copyBehavior value. + * + * @param copyBehavior the copyBehavior value to set + * @return the BlobSink object itself. + */ + public BlobSink withCopyBehavior(CopyBehaviorType copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobSource.java new file mode 100644 index 00000000000..cb9e7500d36 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobSource.java @@ -0,0 +1,102 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Azure Blob source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BlobSource") +public class BlobSource extends CopySource { + /** + * Treat empty as null. Type: boolean (or Expression with resultType + * boolean). + */ + @JsonProperty(value = "treatEmptyAsNull") + private Object treatEmptyAsNull; + + /** + * Number of header lines to skip from each blob. Type: integer (or + * Expression with resultType integer). + */ + @JsonProperty(value = "skipHeaderLineCount") + private Object skipHeaderLineCount; + + /** + * If true, files under the folder path will be read recursively. Default + * is true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "recursive") + private Object recursive; + + /** + * Get the treatEmptyAsNull value. + * + * @return the treatEmptyAsNull value + */ + public Object treatEmptyAsNull() { + return this.treatEmptyAsNull; + } + + /** + * Set the treatEmptyAsNull value. + * + * @param treatEmptyAsNull the treatEmptyAsNull value to set + * @return the BlobSource object itself. + */ + public BlobSource withTreatEmptyAsNull(Object treatEmptyAsNull) { + this.treatEmptyAsNull = treatEmptyAsNull; + return this; + } + + /** + * Get the skipHeaderLineCount value. + * + * @return the skipHeaderLineCount value + */ + public Object skipHeaderLineCount() { + return this.skipHeaderLineCount; + } + + /** + * Set the skipHeaderLineCount value. + * + * @param skipHeaderLineCount the skipHeaderLineCount value to set + * @return the BlobSource object itself. + */ + public BlobSource withSkipHeaderLineCount(Object skipHeaderLineCount) { + this.skipHeaderLineCount = skipHeaderLineCount; + return this; + } + + /** + * Get the recursive value. + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set the recursive value. + * + * @param recursive the recursive value to set + * @return the BlobSource object itself. + */ + public BlobSource withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobTrigger.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobTrigger.java new file mode 100644 index 00000000000..02b4d78a313 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/BlobTrigger.java @@ -0,0 +1,101 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Trigger that runs everytime the selected Blob container changes. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BlobTrigger") +@JsonFlatten +public class BlobTrigger extends MultiplePipelineTrigger { + /** + * The path of the container/folder that will trigger the pipeline. + */ + @JsonProperty(value = "typeProperties.folderPath", required = true) + private String folderPath; + + /** + * The max number of parallel files to handle when it is triggered. + */ + @JsonProperty(value = "typeProperties.maxConcurrency", required = true) + private int maxConcurrency; + + /** + * The Azure Storage linked service reference. + */ + @JsonProperty(value = "typeProperties.linkedService", required = true) + private LinkedServiceReference linkedService; + + /** + * Get the folderPath value. + * + * @return the folderPath value + */ + public String folderPath() { + return this.folderPath; + } + + /** + * Set the folderPath value. + * + * @param folderPath the folderPath value to set + * @return the BlobTrigger object itself. + */ + public BlobTrigger withFolderPath(String folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the maxConcurrency value. + * + * @return the maxConcurrency value + */ + public int maxConcurrency() { + return this.maxConcurrency; + } + + /** + * Set the maxConcurrency value. + * + * @param maxConcurrency the maxConcurrency value to set + * @return the BlobTrigger object itself. + */ + public BlobTrigger withMaxConcurrency(int maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + + /** + * Get the linkedService value. + * + * @return the linkedService value + */ + public LinkedServiceReference linkedService() { + return this.linkedService; + } + + /** + * Set the linkedService value. + * + * @param linkedService the linkedService value to set + * @return the BlobTrigger object itself. + */ + public BlobTrigger withLinkedService(LinkedServiceReference linkedService) { + this.linkedService = linkedService; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraLinkedService.java new file mode 100644 index 00000000000..e1489cec54b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Cassandra data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Cassandra") +@JsonFlatten +public class CassandraLinkedService extends LinkedServiceInner { + /** + * Host name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * AuthenticationType to be used for connection. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.authenticationType") + private Object authenticationType; + + /** + * The port for the connection. Type: integer (or Expression with + * resultType integer). + */ + @JsonProperty(value = "typeProperties.port") + private Object port; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * 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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CassandraLinkedService object itself. + */ + public CassandraLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraSource.java new file mode 100644 index 00000000000..6cfb7ed95a7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraSource.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for a Cassandra database. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CassandraSource") +public class CassandraSource extends CopySource { + /** + * Database query. Should be a SQL-92 query expression or Cassandra Query + * Language (CQL) command. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * The consistency level specifies how many Cassandra servers must respond + * to a read request before returning data to the client application. + * Cassandra checks the specified number of Cassandra servers for data to + * satisfy the read request. Must be one of + * cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is + * case-insensitive. Possible values include: 'ALL', 'EACH_QUORUM', + * 'QUORUM', 'LOCAL_QUORUM', 'ONE', 'TWO', 'THREE', 'LOCAL_ONE', 'SERIAL', + * 'LOCAL_SERIAL'. + */ + @JsonProperty(value = "consistencyLevel") + private CassandraSourceReadConsistencyLevels consistencyLevel; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the CassandraSource object itself. + */ + public CassandraSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the consistencyLevel value. + * + * @return the consistencyLevel value + */ + public CassandraSourceReadConsistencyLevels consistencyLevel() { + return this.consistencyLevel; + } + + /** + * Set the consistencyLevel value. + * + * @param consistencyLevel the consistencyLevel value to set + * @return the CassandraSource object itself. + */ + public CassandraSource withConsistencyLevel(CassandraSourceReadConsistencyLevels consistencyLevel) { + this.consistencyLevel = consistencyLevel; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraSourceReadConsistencyLevels.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraSourceReadConsistencyLevels.java new file mode 100644 index 00000000000..62111d3d022 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraSourceReadConsistencyLevels.java @@ -0,0 +1,65 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for CassandraSourceReadConsistencyLevels. + */ +public final class CassandraSourceReadConsistencyLevels extends ExpandableStringEnum { + /** Static value ALL for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels ALL = fromString("ALL"); + + /** Static value EACH_QUORUM for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels EACH_QUORUM = fromString("EACH_QUORUM"); + + /** Static value QUORUM for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels QUORUM = fromString("QUORUM"); + + /** Static value LOCAL_QUORUM for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels LOCAL_QUORUM = fromString("LOCAL_QUORUM"); + + /** Static value ONE for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels ONE = fromString("ONE"); + + /** Static value TWO for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels TWO = fromString("TWO"); + + /** Static value THREE for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels THREE = fromString("THREE"); + + /** Static value LOCAL_ONE for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels LOCAL_ONE = fromString("LOCAL_ONE"); + + /** Static value SERIAL for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels SERIAL = fromString("SERIAL"); + + /** Static value LOCAL_SERIAL for CassandraSourceReadConsistencyLevels. */ + public static final CassandraSourceReadConsistencyLevels LOCAL_SERIAL = fromString("LOCAL_SERIAL"); + + /** + * Creates or finds a CassandraSourceReadConsistencyLevels from its string representation. + * @param name a name to look for + * @return the corresponding CassandraSourceReadConsistencyLevels + */ + @JsonCreator + public static CassandraSourceReadConsistencyLevels fromString(String name) { + return fromString(name, CassandraSourceReadConsistencyLevels.class); + } + + /** + * @return known CassandraSourceReadConsistencyLevels values + */ + public static Collection values() { + return values(CassandraSourceReadConsistencyLevels.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraTableDataset.java new file mode 100644 index 00000000000..17c6afd6a8b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CassandraTableDataset.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Cassandra database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CassandraTable") +@JsonFlatten +public class CassandraTableDataset extends DatasetInner { + /** + * The table name of the Cassandra database. Type: string (or Expression + * with resultType string). + */ + @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 value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the CassandraTableDataset object itself. + */ + public CassandraTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get the keyspace value. + * + * @return the keyspace value + */ + public Object keyspace() { + return this.keyspace; + } + + /** + * Set the keyspace value. + * + * @param keyspace the keyspace value to set + * @return the CassandraTableDataset object itself. + */ + public CassandraTableDataset withKeyspace(Object keyspace) { + this.keyspace = keyspace; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurLinkedService.java new file mode 100644 index 00000000000..c40ccbb2f0c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurLinkedService.java @@ -0,0 +1,213 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Concur Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Concur") +@JsonFlatten +public class ConcurLinkedService extends LinkedServiceInner { + /** + * Application client_id supplied by Concur App Management. + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The user name that you use to access Concur Service. + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * The password corresponding to the user name that you provided in the + * username field. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * 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 clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ConcurLinkedService object itself. + */ + public ConcurLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurObjectDataset.java new file mode 100644 index 00000000000..226d40fd2f2 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Concur Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ConcurObject") +public class ConcurObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurSource.java new file mode 100644 index 00000000000..867ef4c1fb9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ConcurSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Concur Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ConcurSource") +public class ConcurSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ConcurSource object itself. + */ + public ConcurSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ControlActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ControlActivity.java new file mode 100644 index 00000000000..5b379054a28 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ControlActivity.java @@ -0,0 +1,29 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Base class for all control activities like IfCondition, ForEach , Until. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Container") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Filter", value = FilterActivity.class), + @JsonSubTypes.Type(name = "Until", value = UntilActivity.class), + @JsonSubTypes.Type(name = "Wait", value = WaitActivity.class), + @JsonSubTypes.Type(name = "ForEach", value = ForEachActivity.class), + @JsonSubTypes.Type(name = "IfCondition", value = IfConditionActivity.class), + @JsonSubTypes.Type(name = "ExecutePipeline", value = ExecutePipelineActivity.class) +}) +public class ControlActivity extends Activity { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyActivity.java new file mode 100644 index 00000000000..1d6490af2ad --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyActivity.java @@ -0,0 +1,317 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Copy activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Copy") +@JsonFlatten +public class CopyActivity extends ExecutionActivity { + /** + * Copy activity source. + */ + @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 specificed, tabular translator is used. + */ + @JsonProperty(value = "typeProperties.translator") + private CopyTranslator 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 cloud data movement units that can be used to perform + * this data movement. Type: integer (or Expression with resultType + * integer), minimum: 0. + */ + @JsonProperty(value = "typeProperties.cloudDataMovementUnits") + private Object cloudDataMovementUnits; + + /** + * 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; + + /** + * List of inputs for the activity. + */ + @JsonProperty(value = "inputs") + private List inputs; + + /** + * List of outputs for the activity. + */ + @JsonProperty(value = "outputs") + private List outputs; + + /** + * Get the source value. + * + * @return the source value + */ + public CopySource source() { + return this.source; + } + + /** + * Set the source value. + * + * @param source the source value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withSource(CopySource source) { + this.source = source; + return this; + } + + /** + * Get the sink value. + * + * @return the sink value + */ + public CopySink sink() { + return this.sink; + } + + /** + * Set the sink value. + * + * @param sink the sink value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withSink(CopySink sink) { + this.sink = sink; + return this; + } + + /** + * Get the translator value. + * + * @return the translator value + */ + public CopyTranslator translator() { + return this.translator; + } + + /** + * Set the translator value. + * + * @param translator the translator value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withTranslator(CopyTranslator translator) { + this.translator = translator; + return this; + } + + /** + * Get the enableStaging value. + * + * @return the enableStaging value + */ + public Object enableStaging() { + return this.enableStaging; + } + + /** + * Set the enableStaging value. + * + * @param enableStaging the enableStaging value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withEnableStaging(Object enableStaging) { + this.enableStaging = enableStaging; + return this; + } + + /** + * Get the stagingSettings value. + * + * @return the stagingSettings value + */ + public StagingSettings stagingSettings() { + return this.stagingSettings; + } + + /** + * Set the stagingSettings value. + * + * @param stagingSettings the stagingSettings value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withStagingSettings(StagingSettings stagingSettings) { + this.stagingSettings = stagingSettings; + return this; + } + + /** + * Get the parallelCopies value. + * + * @return the parallelCopies value + */ + public Object parallelCopies() { + return this.parallelCopies; + } + + /** + * Set the parallelCopies value. + * + * @param parallelCopies the parallelCopies value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withParallelCopies(Object parallelCopies) { + this.parallelCopies = parallelCopies; + return this; + } + + /** + * Get the cloudDataMovementUnits value. + * + * @return the cloudDataMovementUnits value + */ + public Object cloudDataMovementUnits() { + return this.cloudDataMovementUnits; + } + + /** + * Set the cloudDataMovementUnits value. + * + * @param cloudDataMovementUnits the cloudDataMovementUnits value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withCloudDataMovementUnits(Object cloudDataMovementUnits) { + this.cloudDataMovementUnits = cloudDataMovementUnits; + return this; + } + + /** + * Get the enableSkipIncompatibleRow value. + * + * @return the enableSkipIncompatibleRow value + */ + public Object enableSkipIncompatibleRow() { + return this.enableSkipIncompatibleRow; + } + + /** + * Set the enableSkipIncompatibleRow value. + * + * @param enableSkipIncompatibleRow the enableSkipIncompatibleRow value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withEnableSkipIncompatibleRow(Object enableSkipIncompatibleRow) { + this.enableSkipIncompatibleRow = enableSkipIncompatibleRow; + return this; + } + + /** + * Get the redirectIncompatibleRowSettings value. + * + * @return the redirectIncompatibleRowSettings value + */ + public RedirectIncompatibleRowSettings redirectIncompatibleRowSettings() { + return this.redirectIncompatibleRowSettings; + } + + /** + * Set the redirectIncompatibleRowSettings value. + * + * @param redirectIncompatibleRowSettings the redirectIncompatibleRowSettings value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withRedirectIncompatibleRowSettings(RedirectIncompatibleRowSettings redirectIncompatibleRowSettings) { + this.redirectIncompatibleRowSettings = redirectIncompatibleRowSettings; + return this; + } + + /** + * Get the inputs value. + * + * @return the inputs value + */ + public List inputs() { + return this.inputs; + } + + /** + * Set the inputs value. + * + * @param inputs the inputs value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withInputs(List inputs) { + this.inputs = inputs; + return this; + } + + /** + * Get the outputs value. + * + * @return the outputs value + */ + public List outputs() { + return this.outputs; + } + + /** + * Set the outputs value. + * + * @param outputs the outputs value to set + * @return the CopyActivity object itself. + */ + public CopyActivity withOutputs(List outputs) { + this.outputs = outputs; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyBehaviorType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyBehaviorType.java new file mode 100644 index 00000000000..4f1e85c00d3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyBehaviorType.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for CopyBehaviorType. + */ +public final class CopyBehaviorType extends ExpandableStringEnum { + /** Static value PreserveHierarchy for CopyBehaviorType. */ + public static final CopyBehaviorType PRESERVE_HIERARCHY = fromString("PreserveHierarchy"); + + /** Static value FlattenHierarchy for CopyBehaviorType. */ + public static final CopyBehaviorType FLATTEN_HIERARCHY = fromString("FlattenHierarchy"); + + /** Static value MergeFiles for CopyBehaviorType. */ + public static final CopyBehaviorType MERGE_FILES = fromString("MergeFiles"); + + /** + * Creates or finds a CopyBehaviorType from its string representation. + * @param name a name to look for + * @return the corresponding CopyBehaviorType + */ + @JsonCreator + public static CopyBehaviorType fromString(String name) { + return fromString(name, CopyBehaviorType.class); + } + + /** + * @return known CopyBehaviorType values + */ + public static Collection values() { + return values(CopyBehaviorType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopySink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopySink.java new file mode 100644 index 00000000000..0839355c8c2 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopySink.java @@ -0,0 +1,172 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * A copy activity sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CopySink") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SalesforceSink", value = SalesforceSink.class), + @JsonSubTypes.Type(name = "DynamicsSink", value = DynamicsSink.class), + @JsonSubTypes.Type(name = "OdbcSink", value = OdbcSink.class), + @JsonSubTypes.Type(name = "AzureSearchIndexSink", value = AzureSearchIndexSink.class), + @JsonSubTypes.Type(name = "AzureDataLakeStoreSink", value = AzureDataLakeStoreSink.class), + @JsonSubTypes.Type(name = "OracleSink", value = OracleSink.class), + @JsonSubTypes.Type(name = "SqlDWSink", value = SqlDWSink.class), + @JsonSubTypes.Type(name = "SqlSink", value = SqlSink.class), + @JsonSubTypes.Type(name = "DocumentDbCollectionSink", value = DocumentDbCollectionSink.class), + @JsonSubTypes.Type(name = "FileSystemSink", value = FileSystemSink.class), + @JsonSubTypes.Type(name = "BlobSink", value = BlobSink.class), + @JsonSubTypes.Type(name = "AzureTableSink", value = AzureTableSink.class), + @JsonSubTypes.Type(name = "AzureQueueSink", value = AzureQueueSink.class), + @JsonSubTypes.Type(name = "SapCloudForCustomerSink", value = SapCloudForCustomerSink.class) +}) +public class CopySink { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Write batch size. Type: integer (or Expression with resultType integer), + * minimum: 0. + */ + @JsonProperty(value = "writeBatchSize") + private Object writeBatchSize; + + /** + * Write batch timeout. Type: string (or Expression with resultType + * string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "writeBatchTimeout") + private Object writeBatchTimeout; + + /** + * Sink retry count. Type: integer (or Expression with resultType integer). + */ + @JsonProperty(value = "sinkRetryCount") + private Object sinkRetryCount; + + /** + * Sink retry wait. Type: string (or Expression with resultType string), + * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "sinkRetryWait") + private Object sinkRetryWait; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the CopySink object itself. + */ + public CopySink withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the writeBatchSize value. + * + * @return the writeBatchSize value + */ + public Object writeBatchSize() { + return this.writeBatchSize; + } + + /** + * Set the writeBatchSize value. + * + * @param writeBatchSize the writeBatchSize value to set + * @return the CopySink object itself. + */ + public CopySink withWriteBatchSize(Object writeBatchSize) { + this.writeBatchSize = writeBatchSize; + return this; + } + + /** + * Get the writeBatchTimeout value. + * + * @return the writeBatchTimeout value + */ + public Object writeBatchTimeout() { + return this.writeBatchTimeout; + } + + /** + * Set the writeBatchTimeout value. + * + * @param writeBatchTimeout the writeBatchTimeout value to set + * @return the CopySink object itself. + */ + public CopySink withWriteBatchTimeout(Object writeBatchTimeout) { + this.writeBatchTimeout = writeBatchTimeout; + return this; + } + + /** + * Get the sinkRetryCount value. + * + * @return the sinkRetryCount value + */ + public Object sinkRetryCount() { + return this.sinkRetryCount; + } + + /** + * Set the sinkRetryCount value. + * + * @param sinkRetryCount the sinkRetryCount value to set + * @return the CopySink object itself. + */ + public CopySink withSinkRetryCount(Object sinkRetryCount) { + this.sinkRetryCount = sinkRetryCount; + return this; + } + + /** + * Get the sinkRetryWait value. + * + * @return the sinkRetryWait value + */ + public Object sinkRetryWait() { + return this.sinkRetryWait; + } + + /** + * Set the sinkRetryWait value. + * + * @param sinkRetryWait the sinkRetryWait value to set + * @return the CopySink object itself. + */ + public CopySink withSinkRetryWait(Object sinkRetryWait) { + this.sinkRetryWait = sinkRetryWait; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopySource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopySource.java new file mode 100644 index 00000000000..91208044ba2 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopySource.java @@ -0,0 +1,155 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * A copy activity source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CopySource") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "AmazonRedshiftSource", value = AmazonRedshiftSource.class), + @JsonSubTypes.Type(name = "ResponsysSource", value = ResponsysSource.class), + @JsonSubTypes.Type(name = "SalesforceMarketingCloudSource", value = SalesforceMarketingCloudSource.class), + @JsonSubTypes.Type(name = "VerticaSource", value = VerticaSource.class), + @JsonSubTypes.Type(name = "NetezzaSource", value = NetezzaSource.class), + @JsonSubTypes.Type(name = "ZohoSource", value = ZohoSource.class), + @JsonSubTypes.Type(name = "XeroSource", value = XeroSource.class), + @JsonSubTypes.Type(name = "SquareSource", value = SquareSource.class), + @JsonSubTypes.Type(name = "SparkSource", value = SparkSource.class), + @JsonSubTypes.Type(name = "ShopifySource", value = ShopifySource.class), + @JsonSubTypes.Type(name = "ServiceNowSource", value = ServiceNowSource.class), + @JsonSubTypes.Type(name = "QuickBooksSource", value = QuickBooksSource.class), + @JsonSubTypes.Type(name = "PrestoSource", value = PrestoSource.class), + @JsonSubTypes.Type(name = "PhoenixSource", value = PhoenixSource.class), + @JsonSubTypes.Type(name = "PaypalSource", value = PaypalSource.class), + @JsonSubTypes.Type(name = "MarketoSource", value = MarketoSource.class), + @JsonSubTypes.Type(name = "MariaDBSource", value = MariaDBSource.class), + @JsonSubTypes.Type(name = "MagentoSource", value = MagentoSource.class), + @JsonSubTypes.Type(name = "JiraSource", value = JiraSource.class), + @JsonSubTypes.Type(name = "ImpalaSource", value = ImpalaSource.class), + @JsonSubTypes.Type(name = "HubspotSource", value = HubspotSource.class), + @JsonSubTypes.Type(name = "HiveSource", value = HiveSource.class), + @JsonSubTypes.Type(name = "HBaseSource", value = HBaseSource.class), + @JsonSubTypes.Type(name = "GreenplumSource", value = GreenplumSource.class), + @JsonSubTypes.Type(name = "GoogleBigQuerySource", value = GoogleBigQuerySource.class), + @JsonSubTypes.Type(name = "EloquaSource", value = EloquaSource.class), + @JsonSubTypes.Type(name = "DrillSource", value = DrillSource.class), + @JsonSubTypes.Type(name = "CouchbaseSource", value = CouchbaseSource.class), + @JsonSubTypes.Type(name = "ConcurSource", value = ConcurSource.class), + @JsonSubTypes.Type(name = "AzurePostgreSqlSource", value = AzurePostgreSqlSource.class), + @JsonSubTypes.Type(name = "AmazonMWSSource", value = AmazonMWSSource.class), + @JsonSubTypes.Type(name = "HttpSource", value = HttpSource.class), + @JsonSubTypes.Type(name = "AzureDataLakeStoreSource", value = AzureDataLakeStoreSource.class), + @JsonSubTypes.Type(name = "MongoDbSource", value = MongoDbSource.class), + @JsonSubTypes.Type(name = "CassandraSource", value = CassandraSource.class), + @JsonSubTypes.Type(name = "WebSource", value = WebSource.class), + @JsonSubTypes.Type(name = "OracleSource", value = OracleSource.class), + @JsonSubTypes.Type(name = "AzureMySqlSource", value = AzureMySqlSource.class), + @JsonSubTypes.Type(name = "HdfsSource", value = HdfsSource.class), + @JsonSubTypes.Type(name = "FileSystemSource", value = FileSystemSource.class), + @JsonSubTypes.Type(name = "SqlDWSource", value = SqlDWSource.class), + @JsonSubTypes.Type(name = "SqlSource", value = SqlSource.class), + @JsonSubTypes.Type(name = "SapEccSource", value = SapEccSource.class), + @JsonSubTypes.Type(name = "SapCloudForCustomerSource", value = SapCloudForCustomerSource.class), + @JsonSubTypes.Type(name = "SalesforceSource", value = SalesforceSource.class), + @JsonSubTypes.Type(name = "RelationalSource", value = RelationalSource.class), + @JsonSubTypes.Type(name = "DynamicsSource", value = DynamicsSource.class), + @JsonSubTypes.Type(name = "DocumentDbCollectionSource", value = DocumentDbCollectionSource.class), + @JsonSubTypes.Type(name = "BlobSource", value = BlobSource.class), + @JsonSubTypes.Type(name = "AzureTableSource", value = AzureTableSource.class) +}) +public class CopySource { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Source retry count. Type: integer (or Expression with resultType + * integer). + */ + @JsonProperty(value = "sourceRetryCount") + private Object sourceRetryCount; + + /** + * Source retry wait. Type: string (or Expression with resultType string), + * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "sourceRetryWait") + private Object sourceRetryWait; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the CopySource object itself. + */ + public CopySource withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the sourceRetryCount value. + * + * @return the sourceRetryCount value + */ + public Object sourceRetryCount() { + return this.sourceRetryCount; + } + + /** + * Set the sourceRetryCount value. + * + * @param sourceRetryCount the sourceRetryCount value to set + * @return the CopySource object itself. + */ + public CopySource withSourceRetryCount(Object sourceRetryCount) { + this.sourceRetryCount = sourceRetryCount; + return this; + } + + /** + * Get the sourceRetryWait value. + * + * @return the sourceRetryWait value + */ + public Object sourceRetryWait() { + return this.sourceRetryWait; + } + + /** + * Set the sourceRetryWait value. + * + * @param sourceRetryWait the sourceRetryWait value to set + * @return the CopySource object itself. + */ + public CopySource withSourceRetryWait(Object sourceRetryWait) { + this.sourceRetryWait = sourceRetryWait; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyTranslator.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyTranslator.java new file mode 100644 index 00000000000..527bacf5728 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CopyTranslator.java @@ -0,0 +1,52 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * A copy activity translator. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CopyTranslator") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "TabularTranslator", value = TabularTranslator.class) +}) +public class CopyTranslator { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the CopyTranslator object itself. + */ + public CopyTranslator withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CosmosDbLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CosmosDbLinkedService.java new file mode 100644 index 00000000000..d63e81830d8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CosmosDbLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Microsoft Azure Cosmos Database (CosmosDB) linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CosmosDb") +@JsonFlatten +public class CosmosDbLinkedService extends LinkedServiceInner { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the CosmosDbLinkedService object itself. + */ + public CosmosDbLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CosmosDbLinkedService object itself. + */ + public CosmosDbLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseLinkedService.java new file mode 100644 index 00000000000..866faeb8805 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Couchbase server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Couchbase") +@JsonFlatten +public class CouchbaseLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the CouchbaseLinkedService object itself. + */ + public CouchbaseLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the CouchbaseLinkedService object itself. + */ + public CouchbaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseSource.java new file mode 100644 index 00000000000..f83235c3718 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Couchbase server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CouchbaseSource") +public class CouchbaseSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the CouchbaseSource object itself. + */ + public CouchbaseSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseTableDataset.java new file mode 100644 index 00000000000..b3eec9fcf6d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CouchbaseTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Couchbase server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CouchbaseTable") +public class CouchbaseTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomActivity.java new file mode 100644 index 00000000000..96b28879065 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomActivity.java @@ -0,0 +1,158 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Custom activity type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Custom") +@JsonFlatten +public class CustomActivity extends ExecutionActivity { + /** + * Command for custom activity Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.command", required = true) + private Object command; + + /** + * Resource linked service reference. + */ + @JsonProperty(value = "typeProperties.resourceLinkedService") + private LinkedServiceReference resourceLinkedService; + + /** + * Folder path for resource files Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; + + /** + * Reference objects. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.extendedProperties") + private Map extendedProperties; + + /** + * Get the command value. + * + * @return the command value + */ + public Object command() { + return this.command; + } + + /** + * Set the command value. + * + * @param command the command value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withCommand(Object command) { + this.command = command; + return this; + } + + /** + * Get the resourceLinkedService value. + * + * @return the resourceLinkedService value + */ + public LinkedServiceReference resourceLinkedService() { + return this.resourceLinkedService; + } + + /** + * Set the resourceLinkedService value. + * + * @param resourceLinkedService the resourceLinkedService value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withResourceLinkedService(LinkedServiceReference resourceLinkedService) { + this.resourceLinkedService = resourceLinkedService; + return this; + } + + /** + * Get the folderPath value. + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the folderPath value. + * + * @param folderPath the folderPath value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the referenceObjects value. + * + * @return the referenceObjects value + */ + public CustomActivityReferenceObject referenceObjects() { + return this.referenceObjects; + } + + /** + * Set the referenceObjects value. + * + * @param referenceObjects the referenceObjects value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withReferenceObjects(CustomActivityReferenceObject referenceObjects) { + this.referenceObjects = referenceObjects; + return this; + } + + /** + * Get the extendedProperties value. + * + * @return the extendedProperties value + */ + public Map extendedProperties() { + return this.extendedProperties; + } + + /** + * Set the extendedProperties value. + * + * @param extendedProperties the extendedProperties value to set + * @return the CustomActivity object itself. + */ + public CustomActivity withExtendedProperties(Map extendedProperties) { + this.extendedProperties = extendedProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomActivityReferenceObject.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomActivityReferenceObject.java new file mode 100644 index 00000000000..b431403a48e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomActivityReferenceObject.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Reference objects for custom activity. + */ +public class CustomActivityReferenceObject { + /** + * Linked service references. + */ + @JsonProperty(value = "linkedServices") + private List linkedServices; + + /** + * Dataset references. + */ + @JsonProperty(value = "datasets") + private List datasets; + + /** + * Get the linkedServices value. + * + * @return the linkedServices value + */ + public List linkedServices() { + return this.linkedServices; + } + + /** + * Set the linkedServices value. + * + * @param linkedServices the linkedServices value to set + * @return the CustomActivityReferenceObject object itself. + */ + public CustomActivityReferenceObject withLinkedServices(List linkedServices) { + this.linkedServices = linkedServices; + return this; + } + + /** + * Get the datasets value. + * + * @return the datasets value + */ + public List datasets() { + return this.datasets; + } + + /** + * Set the datasets value. + * + * @param datasets the datasets value to set + * @return the CustomActivityReferenceObject object itself. + */ + public CustomActivityReferenceObject withDatasets(List datasets) { + this.datasets = datasets; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomDataSourceLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomDataSourceLinkedService.java new file mode 100644 index 00000000000..03f2d1d86d7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomDataSourceLinkedService.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.LinkedServiceInner; + +/** + * Custom linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CustomDataSource") +public class CustomDataSourceLinkedService extends LinkedServiceInner { + /** + * Custom linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private Object typeProperties; + + /** + * Get the typeProperties value. + * + * @return the typeProperties value + */ + public Object typeProperties() { + return this.typeProperties; + } + + /** + * Set the typeProperties value. + * + * @param typeProperties the typeProperties value to set + * @return the CustomDataSourceLinkedService object itself. + */ + public CustomDataSourceLinkedService withTypeProperties(Object typeProperties) { + this.typeProperties = typeProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomDataset.java new file mode 100644 index 00000000000..46adaaed570 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/CustomDataset.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * The custom dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("CustomDataset") +public class CustomDataset extends DatasetInner { + /** + * Custom dataset properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private Object typeProperties; + + /** + * Get the typeProperties value. + * + * @return the typeProperties value + */ + public Object typeProperties() { + return this.typeProperties; + } + + /** + * Set the typeProperties value. + * + * @param typeProperties the typeProperties value to set + * @return the CustomDataset object itself. + */ + public CustomDataset withTypeProperties(Object typeProperties) { + this.typeProperties = typeProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DataLakeAnalyticsUSQLActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DataLakeAnalyticsUSQLActivity.java new file mode 100644 index 00000000000..3da6f964ff1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DataLakeAnalyticsUSQLActivity.java @@ -0,0 +1,214 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Data Lake Analytics U-SQL activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DataLakeAnalyticsU-SQL") +@JsonFlatten +public class DataLakeAnalyticsUSQLActivity extends ExecutionActivity { + /** + * Case-sensitive path to folder that contains the U-SQL script. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.scriptPath", required = true) + private Object scriptPath; + + /** + * Script linked service reference. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.priority") + private Object priority; + + /** + * Parameters for U-SQL job request. + */ + @JsonProperty(value = "typeProperties.parameters") + private Map parameters; + + /** + * Runtime version of the U-SQL engine to use. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.compilationMode") + private Object compilationMode; + + /** + * Get the scriptPath value. + * + * @return the scriptPath value + */ + public Object scriptPath() { + return this.scriptPath; + } + + /** + * Set the scriptPath value. + * + * @param scriptPath the scriptPath value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withScriptPath(Object scriptPath) { + this.scriptPath = scriptPath; + return this; + } + + /** + * Get the scriptLinkedService value. + * + * @return the scriptLinkedService value + */ + public LinkedServiceReference scriptLinkedService() { + return this.scriptLinkedService; + } + + /** + * Set the scriptLinkedService value. + * + * @param scriptLinkedService the scriptLinkedService value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { + this.scriptLinkedService = scriptLinkedService; + return this; + } + + /** + * Get the degreeOfParallelism value. + * + * @return the degreeOfParallelism value + */ + public Object degreeOfParallelism() { + return this.degreeOfParallelism; + } + + /** + * Set the degreeOfParallelism value. + * + * @param degreeOfParallelism the degreeOfParallelism value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withDegreeOfParallelism(Object degreeOfParallelism) { + this.degreeOfParallelism = degreeOfParallelism; + return this; + } + + /** + * Get the priority value. + * + * @return the priority value + */ + public Object priority() { + return this.priority; + } + + /** + * Set the priority value. + * + * @param priority the priority value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withPriority(Object priority) { + this.priority = priority; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the runtimeVersion value. + * + * @return the runtimeVersion value + */ + public Object runtimeVersion() { + return this.runtimeVersion; + } + + /** + * Set the runtimeVersion value. + * + * @param runtimeVersion the runtimeVersion value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withRuntimeVersion(Object runtimeVersion) { + this.runtimeVersion = runtimeVersion; + return this; + } + + /** + * Get the compilationMode value. + * + * @return the compilationMode value + */ + public Object compilationMode() { + return this.compilationMode; + } + + /** + * Set the compilationMode value. + * + * @param compilationMode the compilationMode value to set + * @return the DataLakeAnalyticsUSQLActivity object itself. + */ + public DataLakeAnalyticsUSQLActivity withCompilationMode(Object compilationMode) { + this.compilationMode = compilationMode; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatabricksNotebookActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatabricksNotebookActivity.java new file mode 100644 index 00000000000..c70690c20c3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatabricksNotebookActivity.java @@ -0,0 +1,80 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * DatabricksNotebook activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DatabricksNotebook") +@JsonFlatten +public class DatabricksNotebookActivity extends ExecutionActivity { + /** + * 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.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 = "typeProperties.baseParameters") + private Map baseParameters; + + /** + * Get the notebookPath value. + * + * @return the notebookPath value + */ + public Object notebookPath() { + return this.notebookPath; + } + + /** + * Set the notebookPath value. + * + * @param notebookPath the notebookPath value to set + * @return the DatabricksNotebookActivity object itself. + */ + public DatabricksNotebookActivity withNotebookPath(Object notebookPath) { + this.notebookPath = notebookPath; + return this; + } + + /** + * Get the baseParameters value. + * + * @return the baseParameters value + */ + public Map baseParameters() { + return this.baseParameters; + } + + /** + * Set the baseParameters value. + * + * @param baseParameters the baseParameters value to set + * @return the DatabricksNotebookActivity object itself. + */ + public DatabricksNotebookActivity withBaseParameters(Map baseParameters) { + this.baseParameters = baseParameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetBZip2Compression.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetBZip2Compression.java new file mode 100644 index 00000000000..11d62454d9b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetBZip2Compression.java @@ -0,0 +1,20 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The BZip2 compression method used on a dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("BZip2") +public class DatasetBZip2Compression extends DatasetCompression { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetCompression.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetCompression.java new file mode 100644 index 00000000000..79d379990ff --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetCompression.java @@ -0,0 +1,55 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The compression method used on a dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DatasetCompression") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "ZipDeflate", value = DatasetZipDeflateCompression.class), + @JsonSubTypes.Type(name = "Deflate", value = DatasetDeflateCompression.class), + @JsonSubTypes.Type(name = "GZip", value = DatasetGZipCompression.class), + @JsonSubTypes.Type(name = "BZip2", value = DatasetBZip2Compression.class) +}) +public class DatasetCompression { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the DatasetCompression object itself. + */ + public DatasetCompression withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetCompressionLevel.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetCompressionLevel.java new file mode 100644 index 00000000000..85d2a8134b1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetCompressionLevel.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DatasetCompressionLevel. + */ +public final class DatasetCompressionLevel extends ExpandableStringEnum { + /** Static value Optimal for DatasetCompressionLevel. */ + public static final DatasetCompressionLevel OPTIMAL = fromString("Optimal"); + + /** Static value Fastest for DatasetCompressionLevel. */ + public static final DatasetCompressionLevel FASTEST = fromString("Fastest"); + + /** + * Creates or finds a DatasetCompressionLevel from its string representation. + * @param name a name to look for + * @return the corresponding DatasetCompressionLevel + */ + @JsonCreator + public static DatasetCompressionLevel fromString(String name) { + return fromString(name, DatasetCompressionLevel.class); + } + + /** + * @return known DatasetCompressionLevel values + */ + public static Collection values() { + return values(DatasetCompressionLevel.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetDeflateCompression.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetDeflateCompression.java new file mode 100644 index 00000000000..284aa8ded4c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetDeflateCompression.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The Deflate compression method used on a dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Deflate") +public class DatasetDeflateCompression extends DatasetCompression { + /** + * The Deflate compression level. Possible values include: 'Optimal', + * 'Fastest'. + */ + @JsonProperty(value = "level") + private DatasetCompressionLevel level; + + /** + * Get the level value. + * + * @return the level value + */ + public DatasetCompressionLevel level() { + return this.level; + } + + /** + * Set the level value. + * + * @param level the level value to set + * @return the DatasetDeflateCompression object itself. + */ + public DatasetDeflateCompression withLevel(DatasetCompressionLevel level) { + this.level = level; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetGZipCompression.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetGZipCompression.java new file mode 100644 index 00000000000..90d095329c1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetGZipCompression.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The GZip compression method used on a dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GZip") +public class DatasetGZipCompression extends DatasetCompression { + /** + * The GZip compression level. Possible values include: 'Optimal', + * 'Fastest'. + */ + @JsonProperty(value = "level") + private DatasetCompressionLevel level; + + /** + * Get the level value. + * + * @return the level value + */ + public DatasetCompressionLevel level() { + return this.level; + } + + /** + * Set the level value. + * + * @param level the level value to set + * @return the DatasetGZipCompression object itself. + */ + public DatasetGZipCompression withLevel(DatasetCompressionLevel level) { + this.level = level; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetReference.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetReference.java new file mode 100644 index 00000000000..b1b12aa995a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetReference.java @@ -0,0 +1,103 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Dataset reference type. + */ +public class DatasetReference { + /** + * Dataset reference type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Reference dataset name. + */ + @JsonProperty(value = "referenceName", required = true) + private String referenceName; + + /** + * Arguments for dataset. + */ + @JsonProperty(value = "parameters") + private Map parameters; + + /** + * Creates an instance of DatasetReference class. + */ + public DatasetReference() { + type = "DatasetReference"; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the DatasetReference object itself. + */ + public DatasetReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get the referenceName value. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set the referenceName value. + * + * @param referenceName the referenceName value to set + * @return the DatasetReference object itself. + */ + public DatasetReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the DatasetReference object itself. + */ + public DatasetReference withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetStorageFormat.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetStorageFormat.java new file mode 100644 index 00000000000..833c684912d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetStorageFormat.java @@ -0,0 +1,108 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The format definition of a storage. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DatasetStorageFormat") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "ParquetFormat", value = ParquetFormat.class), + @JsonSubTypes.Type(name = "OrcFormat", value = OrcFormat.class), + @JsonSubTypes.Type(name = "AvroFormat", value = AvroFormat.class), + @JsonSubTypes.Type(name = "JsonFormat", value = JsonFormat.class), + @JsonSubTypes.Type(name = "TextFormat", value = TextFormat.class) +}) +public class DatasetStorageFormat { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Serializer. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "serializer") + private Object serializer; + + /** + * Deserializer. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "deserializer") + private Object deserializer; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the DatasetStorageFormat object itself. + */ + public DatasetStorageFormat withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the serializer value. + * + * @return the serializer value + */ + public Object serializer() { + return this.serializer; + } + + /** + * Set the serializer value. + * + * @param serializer the serializer value to set + * @return the DatasetStorageFormat object itself. + */ + public DatasetStorageFormat withSerializer(Object serializer) { + this.serializer = serializer; + return this; + } + + /** + * Get the deserializer value. + * + * @return the deserializer value + */ + public Object deserializer() { + return this.deserializer; + } + + /** + * Set the deserializer value. + * + * @param deserializer the deserializer value to set + * @return the DatasetStorageFormat object itself. + */ + public DatasetStorageFormat withDeserializer(Object deserializer) { + this.deserializer = deserializer; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetZipDeflateCompression.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetZipDeflateCompression.java new file mode 100644 index 00000000000..4d4f4026b0c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DatasetZipDeflateCompression.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The ZipDeflate compression method used on a dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ZipDeflate") +public class DatasetZipDeflateCompression extends DatasetCompression { + /** + * The ZipDeflate compression level. Possible values include: 'Optimal', + * 'Fastest'. + */ + @JsonProperty(value = "level") + private DatasetCompressionLevel level; + + /** + * Get the level value. + * + * @return the level value + */ + public DatasetCompressionLevel level() { + return this.level; + } + + /** + * Set the level value. + * + * @param level the level value to set + * @return the DatasetZipDeflateCompression object itself. + */ + public DatasetZipDeflateCompression withLevel(DatasetCompressionLevel level) { + this.level = level; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DayOfWeek.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DayOfWeek.java new file mode 100644 index 00000000000..f4e8f165866 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DayOfWeek.java @@ -0,0 +1,68 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DayOfWeek. + */ +public enum DayOfWeek { + /** Enum value Sunday. */ + SUNDAY("Sunday"), + + /** Enum value Monday. */ + MONDAY("Monday"), + + /** Enum value Tuesday. */ + TUESDAY("Tuesday"), + + /** Enum value Wednesday. */ + WEDNESDAY("Wednesday"), + + /** Enum value Thursday. */ + THURSDAY("Thursday"), + + /** Enum value Friday. */ + FRIDAY("Friday"), + + /** Enum value Saturday. */ + SATURDAY("Saturday"); + + /** The actual serialized value for a DayOfWeek instance. */ + private String value; + + DayOfWeek(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DayOfWeek instance. + * + * @param value the serialized value to parse. + * @return the parsed DayOfWeek object, or null if unable to parse. + */ + @JsonCreator + public static DayOfWeek fromString(String value) { + DayOfWeek[] items = DayOfWeek.values(); + for (DayOfWeek item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DaysOfWeek.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DaysOfWeek.java new file mode 100644 index 00000000000..14ad916462c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DaysOfWeek.java @@ -0,0 +1,68 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DaysOfWeek. + */ +public enum DaysOfWeek { + /** Enum value Sunday. */ + SUNDAY("Sunday"), + + /** Enum value Monday. */ + MONDAY("Monday"), + + /** Enum value Tuesday. */ + TUESDAY("Tuesday"), + + /** Enum value Wednesday. */ + WEDNESDAY("Wednesday"), + + /** Enum value Thursday. */ + THURSDAY("Thursday"), + + /** Enum value Friday. */ + FRIDAY("Friday"), + + /** Enum value Saturday. */ + SATURDAY("Saturday"); + + /** The actual serialized value for a DaysOfWeek instance. */ + private String value; + + DaysOfWeek(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DaysOfWeek instance. + * + * @param value the serialized value to parse. + * @return the parsed DaysOfWeek object, or null if unable to parse. + */ + @JsonCreator + public static DaysOfWeek fromString(String value) { + DaysOfWeek[] items = DaysOfWeek.values(); + for (DaysOfWeek item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Db2AuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Db2AuthenticationType.java new file mode 100644 index 00000000000..28c163f4a36 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Db2AuthenticationType.java @@ -0,0 +1,38 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for Db2AuthenticationType. + */ +public final class Db2AuthenticationType extends ExpandableStringEnum { + /** Static value Basic for Db2AuthenticationType. */ + public static final Db2AuthenticationType BASIC = fromString("Basic"); + + /** + * Creates or finds a Db2AuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding Db2AuthenticationType + */ + @JsonCreator + public static Db2AuthenticationType fromString(String name) { + return fromString(name, Db2AuthenticationType.class); + } + + /** + * @return known Db2AuthenticationType values + */ + public static Collection values() { + return values(Db2AuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Db2LinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Db2LinkedService.java new file mode 100644 index 00000000000..acff58337a4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Db2LinkedService.java @@ -0,0 +1,213 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for DB2 data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Db2") +@JsonFlatten +public class Db2LinkedService extends LinkedServiceInner { + /** + * Server name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * Database name for connection. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * Schema name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schema; + + /** + * AuthenticationType to be used for connection. Possible values include: + * 'Basic'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private Db2AuthenticationType authenticationType; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * 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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the database value. + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database value. + * + * @param database the database value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the schema value. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set the schema value. + * + * @param schema the schema value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public Db2AuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withAuthenticationType(Db2AuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the Db2LinkedService object itself. + */ + public Db2LinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DependencyCondition.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DependencyCondition.java new file mode 100644 index 00000000000..7d558ec914e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DependencyCondition.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for DependencyCondition. + */ +public final class DependencyCondition extends ExpandableStringEnum { + /** Static value Succeeded for DependencyCondition. */ + public static final DependencyCondition SUCCEEDED = fromString("Succeeded"); + + /** Static value Failed for DependencyCondition. */ + public static final DependencyCondition FAILED = fromString("Failed"); + + /** Static value Skipped for DependencyCondition. */ + public static final DependencyCondition SKIPPED = fromString("Skipped"); + + /** Static value Completed for DependencyCondition. */ + public static final DependencyCondition COMPLETED = fromString("Completed"); + + /** + * Creates or finds a DependencyCondition from its string representation. + * @param name a name to look for + * @return the corresponding DependencyCondition + */ + @JsonCreator + public static DependencyCondition fromString(String name) { + return fromString(name, DependencyCondition.class); + } + + /** + * @return known DependencyCondition values + */ + public static Collection values() { + return values(DependencyCondition.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DistcpSettings.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DistcpSettings.java new file mode 100644 index 00000000000..c1373c4b9b7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DistcpSettings.java @@ -0,0 +1,100 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Distcp settings. + */ +public class DistcpSettings { + /** + * Specifies the Yarn ResourceManager endpoint. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "resourceManagerEndpoint", required = true) + private Object resourceManagerEndpoint; + + /** + * Specifies an existing folder path which will be used to store temp + * Distcp command script. The script file is generated by ADF and will be + * removed after Copy job finished. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "tempScriptPath", required = true) + private Object tempScriptPath; + + /** + * Specifies the Distcp options. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "distcpOptions") + private Object distcpOptions; + + /** + * Get the resourceManagerEndpoint value. + * + * @return the resourceManagerEndpoint value + */ + public Object resourceManagerEndpoint() { + return this.resourceManagerEndpoint; + } + + /** + * Set the resourceManagerEndpoint value. + * + * @param resourceManagerEndpoint the resourceManagerEndpoint value to set + * @return the DistcpSettings object itself. + */ + public DistcpSettings withResourceManagerEndpoint(Object resourceManagerEndpoint) { + this.resourceManagerEndpoint = resourceManagerEndpoint; + return this; + } + + /** + * Get the tempScriptPath value. + * + * @return the tempScriptPath value + */ + public Object tempScriptPath() { + return this.tempScriptPath; + } + + /** + * Set the tempScriptPath value. + * + * @param tempScriptPath the tempScriptPath value to set + * @return the DistcpSettings object itself. + */ + public DistcpSettings withTempScriptPath(Object tempScriptPath) { + this.tempScriptPath = tempScriptPath; + return this; + } + + /** + * Get the distcpOptions value. + * + * @return the distcpOptions value + */ + public Object distcpOptions() { + return this.distcpOptions; + } + + /** + * Set the distcpOptions value. + * + * @param distcpOptions the distcpOptions value to set + * @return the DistcpSettings object itself. + */ + public DistcpSettings withDistcpOptions(Object distcpOptions) { + this.distcpOptions = distcpOptions; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionDataset.java new file mode 100644 index 00000000000..75a2f1aa22e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * Microsoft Azure Document Database Collection dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DocumentDbCollection") +@JsonFlatten +public class DocumentDbCollectionDataset extends DatasetInner { + /** + * Document Database collection name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.collectionName", required = true) + private Object collectionName; + + /** + * Get the collectionName value. + * + * @return the collectionName value + */ + public Object collectionName() { + return this.collectionName; + } + + /** + * Set the collectionName value. + * + * @param collectionName the collectionName value to set + * @return the DocumentDbCollectionDataset object itself. + */ + public DocumentDbCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionSink.java new file mode 100644 index 00000000000..ffaa8b58b72 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Document Database Collection sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DocumentDbCollectionSink") +public class DocumentDbCollectionSink extends CopySink { + /** + * Nested properties separator. Default is . (dot). Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "nestingSeparator") + private Object nestingSeparator; + + /** + * Get the nestingSeparator value. + * + * @return the nestingSeparator value + */ + public Object nestingSeparator() { + return this.nestingSeparator; + } + + /** + * Set the nestingSeparator value. + * + * @param nestingSeparator the nestingSeparator value to set + * @return the DocumentDbCollectionSink object itself. + */ + public DocumentDbCollectionSink withNestingSeparator(Object nestingSeparator) { + this.nestingSeparator = nestingSeparator; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionSource.java new file mode 100644 index 00000000000..7853f740ae7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DocumentDbCollectionSource.java @@ -0,0 +1,74 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Document Database Collection source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DocumentDbCollectionSource") +public class DocumentDbCollectionSource extends CopySource { + /** + * Documents query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Nested properties separator. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "nestingSeparator") + private Object nestingSeparator; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the DocumentDbCollectionSource object itself. + */ + public DocumentDbCollectionSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the nestingSeparator value. + * + * @return the nestingSeparator value + */ + public Object nestingSeparator() { + return this.nestingSeparator; + } + + /** + * Set the nestingSeparator value. + * + * @param nestingSeparator the nestingSeparator value to set + * @return the DocumentDbCollectionSource object itself. + */ + public DocumentDbCollectionSource withNestingSeparator(Object nestingSeparator) { + this.nestingSeparator = nestingSeparator; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillLinkedService.java new file mode 100644 index 00000000000..9d6c8b6397f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Drill server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Drill") +@JsonFlatten +public class DrillLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the DrillLinkedService object itself. + */ + public DrillLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the DrillLinkedService object itself. + */ + public DrillLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillSource.java new file mode 100644 index 00000000000..160c1b80dc3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Drill server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DrillSource") +public class DrillSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the DrillSource object itself. + */ + public DrillSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillTableDataset.java new file mode 100644 index 00000000000..5e70d0d9c5d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DrillTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Drill server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DrillTable") +public class DrillTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsEntityDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsEntityDataset.java new file mode 100644 index 00000000000..b73533b6bd6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsEntityDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Dynamics entity dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsEntity") +@JsonFlatten +public class DynamicsEntityDataset extends DatasetInner { + /** + * The logical name of the entity. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.entityName") + private Object entityName; + + /** + * Get the entityName value. + * + * @return the entityName value + */ + public Object entityName() { + return this.entityName; + } + + /** + * Set the entityName value. + * + * @param entityName the entityName value to set + * @return the DynamicsEntityDataset object itself. + */ + public DynamicsEntityDataset withEntityName(Object entityName) { + this.entityName = entityName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsLinkedService.java new file mode 100644 index 00000000000..25d059f81e7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsLinkedService.java @@ -0,0 +1,274 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Dynamics linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Dynamics") +@JsonFlatten +public class DynamicsLinkedService extends LinkedServiceInner { + /** + * 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.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 = "typeProperties.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 = "typeProperties.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 = "typeProperties.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 = "typeProperties.organizationName") + private Object organizationName; + + /** + * The authentication type to connect to Dynamics server. 'Office365' for + * online scenario, 'Ifd' for on-premises with Ifd 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", required = true) + private Object username; + + /** + * Password to access the Dynamics 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 deploymentType value. + * + * @return the deploymentType value + */ + public Object deploymentType() { + return this.deploymentType; + } + + /** + * Set the deploymentType value. + * + * @param deploymentType the deploymentType value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withDeploymentType(Object deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Get the hostName value. + * + * @return the hostName value + */ + public Object hostName() { + return this.hostName; + } + + /** + * Set the hostName value. + * + * @param hostName the hostName value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withHostName(Object hostName) { + this.hostName = hostName; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the serviceUri value. + * + * @return the serviceUri value + */ + public Object serviceUri() { + return this.serviceUri; + } + + /** + * Set the serviceUri value. + * + * @param serviceUri the serviceUri value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withServiceUri(Object serviceUri) { + this.serviceUri = serviceUri; + return this; + } + + /** + * Get the organizationName value. + * + * @return the organizationName value + */ + public Object organizationName() { + return this.organizationName; + } + + /** + * Set the organizationName value. + * + * @param organizationName the organizationName value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withOrganizationName(Object organizationName) { + this.organizationName = organizationName; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the DynamicsLinkedService object itself. + */ + public DynamicsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsSink.java new file mode 100644 index 00000000000..09d715f8f44 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsSink.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsSink") +public class DynamicsSink extends CopySink { + /** + * The write behavior for the operation. + */ + @JsonProperty(value = "writeBehavior", required = true) + private String writeBehavior; + + /** + * The flag indicating whether 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 DynamicsSink class. + */ + public DynamicsSink() { + writeBehavior = "Upsert"; + } + + /** + * Get the writeBehavior value. + * + * @return the writeBehavior value + */ + public String writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the writeBehavior value. + * + * @param writeBehavior the writeBehavior value to set + * @return the DynamicsSink object itself. + */ + public DynamicsSink withWriteBehavior(String writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the ignoreNullValues value. + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set the ignoreNullValues value. + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the DynamicsSink object itself. + */ + public DynamicsSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsSource.java new file mode 100644 index 00000000000..c49a2bc5d9f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/DynamicsSource.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Dynamics source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("DynamicsSource") +public class DynamicsSource extends CopySource { + /** + * FetchXML is a proprietary query language that is used in Microsoft + * Dynamics (online & on-premises). Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the DynamicsSource object itself. + */ + public DynamicsSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaLinkedService.java new file mode 100644 index 00000000000..84f99d83895 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaLinkedService.java @@ -0,0 +1,213 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Eloqua server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Eloqua") +@JsonFlatten +public class EloquaLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Eloqua server. (i.e. eloqua.example.com). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.username", required = true) + private Object username; + + /** + * The password corresponding to the user name. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * 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 value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the EloquaLinkedService object itself. + */ + public EloquaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaObjectDataset.java new file mode 100644 index 00000000000..433ddd10a52 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Eloqua server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EloquaObject") +public class EloquaObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaSource.java new file mode 100644 index 00000000000..f3cc4ee13cf --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/EloquaSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Eloqua server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EloquaSource") +public class EloquaSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the EloquaSource object itself. + */ + public EloquaSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ErrorResponse.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ErrorResponse.java new file mode 100644 index 00000000000..c15d333e09e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ErrorResponse.java @@ -0,0 +1,122 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The object that defines the structure of an Azure Data Factory response. + */ +public class ErrorResponse { + /** + * Error code. + */ + @JsonProperty(value = "code", required = true) + private String code; + + /** + * Error message. + */ + @JsonProperty(value = "message", required = true) + private String message; + + /** + * Property name/path in request associated with error. + */ + @JsonProperty(value = "target") + private String target; + + /** + * Array with additional error details. + */ + @JsonProperty(value = "details") + private List details; + + /** + * Get the code value. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Set the code value. + * + * @param code the code value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withCode(String code) { + this.code = code; + return this; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set the message value. + * + * @param message the message value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the target value. + * + * @return the target value + */ + public String target() { + return this.target; + } + + /** + * Set the target value. + * + * @param target the target value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withTarget(String target) { + this.target = target; + return this; + } + + /** + * Get the details value. + * + * @return the details value + */ + public List details() { + return this.details; + } + + /** + * Set the details value. + * + * @param details the details value to set + * @return the ErrorResponse object itself. + */ + public ErrorResponse withDetails(List details) { + this.details = details; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ErrorResponseException.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ErrorResponseException.java new file mode 100644 index 00000000000..44e8841f9f4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ErrorResponseException.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public class ErrorResponseException extends RestException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorResponseException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorResponseException(final String message, final Response response, final ErrorResponse body) { + super(message, response, body); + } + + @Override + public ErrorResponse body() { + return (ErrorResponse) super.body(); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecutePipelineActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecutePipelineActivity.java new file mode 100644 index 00000000000..cf49be71740 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecutePipelineActivity.java @@ -0,0 +1,103 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Execute pipeline activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ExecutePipeline") +@JsonFlatten +public class ExecutePipelineActivity extends ControlActivity { + /** + * Pipeline reference. + */ + @JsonProperty(value = "typeProperties.pipeline", required = true) + private PipelineReference pipeline; + + /** + * Pipeline parameters. + */ + @JsonProperty(value = "typeProperties.parameters") + private Map parameters; + + /** + * 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 value. + * + * @return the pipeline value + */ + public PipelineReference pipeline() { + return this.pipeline; + } + + /** + * Set the pipeline value. + * + * @param pipeline the pipeline value to set + * @return the ExecutePipelineActivity object itself. + */ + public ExecutePipelineActivity withPipeline(PipelineReference pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the ExecutePipelineActivity object itself. + */ + public ExecutePipelineActivity withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the waitOnCompletion value. + * + * @return the waitOnCompletion value + */ + public Boolean waitOnCompletion() { + return this.waitOnCompletion; + } + + /** + * Set the waitOnCompletion value. + * + * @param waitOnCompletion the waitOnCompletion value to set + * @return the ExecutePipelineActivity object itself. + */ + public ExecutePipelineActivity withWaitOnCompletion(Boolean waitOnCompletion) { + this.waitOnCompletion = waitOnCompletion; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecuteSSISPackageActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecuteSSISPackageActivity.java new file mode 100644 index 00000000000..e168fa4bda1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecuteSSISPackageActivity.java @@ -0,0 +1,154 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Execute SSIS package activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ExecuteSSISPackage") +@JsonFlatten +public class ExecuteSSISPackageActivity extends ExecutionActivity { + /** + * SSIS package location. + */ + @JsonProperty(value = "typeProperties.packageLocation", required = true) + private SSISPackageLocation packageLocation; + + /** + * Specifies the runtime to execute SSIS package. Possible values include: + * 'x64', 'x86'. + */ + @JsonProperty(value = "typeProperties.runtime") + private SSISExecutionRuntime runtime; + + /** + * The logging level of SSIS package execution. + */ + @JsonProperty(value = "typeProperties.loggingLevel") + private String loggingLevel; + + /** + * The environment path to execution the SSIS package. + */ + @JsonProperty(value = "typeProperties.environmentPath") + private String environmentPath; + + /** + * The integration runtime reference. + */ + @JsonProperty(value = "typeProperties.connectVia", required = true) + private IntegrationRuntimeReference connectVia; + + /** + * Get the packageLocation value. + * + * @return the packageLocation value + */ + public SSISPackageLocation packageLocation() { + return this.packageLocation; + } + + /** + * Set the packageLocation value. + * + * @param packageLocation the packageLocation value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withPackageLocation(SSISPackageLocation packageLocation) { + this.packageLocation = packageLocation; + return this; + } + + /** + * Get the runtime value. + * + * @return the runtime value + */ + public SSISExecutionRuntime runtime() { + return this.runtime; + } + + /** + * Set the runtime value. + * + * @param runtime the runtime value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withRuntime(SSISExecutionRuntime runtime) { + this.runtime = runtime; + return this; + } + + /** + * Get the loggingLevel value. + * + * @return the loggingLevel value + */ + public String loggingLevel() { + return this.loggingLevel; + } + + /** + * Set the loggingLevel value. + * + * @param loggingLevel the loggingLevel value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withLoggingLevel(String loggingLevel) { + this.loggingLevel = loggingLevel; + return this; + } + + /** + * Get the environmentPath value. + * + * @return the environmentPath value + */ + public String environmentPath() { + return this.environmentPath; + } + + /** + * Set the environmentPath value. + * + * @param environmentPath the environmentPath value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withEnvironmentPath(String environmentPath) { + this.environmentPath = environmentPath; + return this; + } + + /** + * Get the connectVia value. + * + * @return the connectVia value + */ + public IntegrationRuntimeReference connectVia() { + return this.connectVia; + } + + /** + * Set the connectVia value. + * + * @param connectVia the connectVia value to set + * @return the ExecuteSSISPackageActivity object itself. + */ + public ExecuteSSISPackageActivity withConnectVia(IntegrationRuntimeReference connectVia) { + this.connectVia = connectVia; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecutionActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecutionActivity.java new file mode 100644 index 00000000000..74ad7ace347 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ExecutionActivity.java @@ -0,0 +1,92 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Base class for all execution activities. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Execution") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "DatabricksNotebook", value = DatabricksNotebookActivity.class), + @JsonSubTypes.Type(name = "DataLakeAnalyticsU-SQL", value = DataLakeAnalyticsUSQLActivity.class), + @JsonSubTypes.Type(name = "AzureMLUpdateResource", value = AzureMLUpdateResourceActivity.class), + @JsonSubTypes.Type(name = "AzureMLBatchExecution", value = AzureMLBatchExecutionActivity.class), + @JsonSubTypes.Type(name = "GetMetadata", value = GetMetadataActivity.class), + @JsonSubTypes.Type(name = "WebActivity", value = WebActivity.class), + @JsonSubTypes.Type(name = "Lookup", value = LookupActivity.class), + @JsonSubTypes.Type(name = "SqlServerStoredProcedure", value = SqlServerStoredProcedureActivity.class), + @JsonSubTypes.Type(name = "Custom", value = CustomActivity.class), + @JsonSubTypes.Type(name = "ExecuteSSISPackage", value = ExecuteSSISPackageActivity.class), + @JsonSubTypes.Type(name = "HDInsightSpark", value = HDInsightSparkActivity.class), + @JsonSubTypes.Type(name = "HDInsightStreaming", value = HDInsightStreamingActivity.class), + @JsonSubTypes.Type(name = "HDInsightMapReduce", value = HDInsightMapReduceActivity.class), + @JsonSubTypes.Type(name = "HDInsightPig", value = HDInsightPigActivity.class), + @JsonSubTypes.Type(name = "HDInsightHive", value = HDInsightHiveActivity.class), + @JsonSubTypes.Type(name = "Copy", value = CopyActivity.class) +}) +public class ExecutionActivity extends Activity { + /** + * Linked service reference. + */ + @JsonProperty(value = "linkedServiceName") + private LinkedServiceReference linkedServiceName; + + /** + * Activity policy. + */ + @JsonProperty(value = "policy") + private ActivityPolicy policy; + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the ExecutionActivity object itself. + */ + public ExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the policy value. + * + * @return the policy value + */ + public ActivityPolicy policy() { + return this.policy; + } + + /** + * Set the policy value. + * + * @param policy the policy value to set + * @return the ExecutionActivity object itself. + */ + public ExecutionActivity withPolicy(ActivityPolicy policy) { + this.policy = policy; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Expression.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Expression.java new file mode 100644 index 00000000000..2c5defabd54 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Expression.java @@ -0,0 +1,76 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure Data Factory expression definition. + */ +public class Expression { + /** + * Expression type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Expression value. + */ + @JsonProperty(value = "value", required = true) + private String value; + + /** + * Creates an instance of Expression class. + */ + public Expression() { + type = "Expression"; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the Expression object itself. + */ + public Expression withType(String type) { + this.type = type; + return this; + } + + /** + * Get the value value. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set the value value. + * + * @param value the value value to set + * @return the Expression object itself. + */ + public Expression withValue(String value) { + this.value = value; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FactoryIdentity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FactoryIdentity.java new file mode 100644 index 00000000000..43a2a3e5055 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FactoryIdentity.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.datafactory; + +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Identity properties of the factory resource. + */ +public class FactoryIdentity { + /** + * The identity type. Currently the only supported type is + * 'SystemAssigned'. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * The principal id of the identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private UUID principalId; + + /** + * The client tenant id of the identity. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tenantId; + + /** + * Creates an instance of FactoryIdentity class. + */ + public FactoryIdentity() { + type = "SystemAssigned"; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the FactoryIdentity object itself. + */ + public FactoryIdentity withType(String type) { + this.type = type; + return this; + } + + /** + * Get the principalId value. + * + * @return the principalId value + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the tenantId value. + * + * @return the tenantId value + */ + public UUID tenantId() { + return this.tenantId; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileServerLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileServerLinkedService.java new file mode 100644 index 00000000000..c9192b2dd7f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileServerLinkedService.java @@ -0,0 +1,132 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * File system linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileServer") +@JsonFlatten +public class FileServerLinkedService extends LinkedServiceInner { + /** + * Host name of the server. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * User ID to logon the server. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.userId") + private Object userId; + + /** + * Password to logon the server. + */ + @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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the userId value. + * + * @return the userId value + */ + public Object userId() { + return this.userId; + } + + /** + * Set the userId value. + * + * @param userId the userId value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withUserId(Object userId) { + this.userId = userId; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the FileServerLinkedService object itself. + */ + public FileServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileShareDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileShareDataset.java new file mode 100644 index 00000000000..6702b76781b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileShareDataset.java @@ -0,0 +1,158 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * An on-premises file system dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileShare") +@JsonFlatten +public class FileShareDataset extends DatasetInner { + /** + * The path of the on-premises file system. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.folderPath") + private Object folderPath; + + /** + * The name of the on-premises file system. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.fileName") + private Object fileName; + + /** + * The format of the files. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.fileFilter") + private Object fileFilter; + + /** + * The data compression method used for the file system. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * Get the folderPath value. + * + * @return the folderPath value + */ + public Object folderPath() { + return this.folderPath; + } + + /** + * Set the folderPath value. + * + * @param folderPath the folderPath value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFolderPath(Object folderPath) { + this.folderPath = folderPath; + return this; + } + + /** + * Get the fileName value. + * + * @return the fileName value + */ + public Object fileName() { + return this.fileName; + } + + /** + * Set the fileName value. + * + * @param fileName the fileName value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFileName(Object fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the format value. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format value. + * + * @param format the format value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the fileFilter value. + * + * @return the fileFilter value + */ + public Object fileFilter() { + return this.fileFilter; + } + + /** + * Set the fileFilter value. + * + * @param fileFilter the fileFilter value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withFileFilter(Object fileFilter) { + this.fileFilter = fileFilter; + return this; + } + + /** + * Get the compression value. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the compression value. + * + * @param compression the compression value to set + * @return the FileShareDataset object itself. + */ + public FileShareDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileSystemSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileSystemSink.java new file mode 100644 index 00000000000..041271f6955 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileSystemSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity file system sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileSystemSink") +public class FileSystemSink extends CopySink { + /** + * The type of copy behavior for copy sink. Possible values include: + * 'PreserveHierarchy', 'FlattenHierarchy', 'MergeFiles'. + */ + @JsonProperty(value = "copyBehavior") + private CopyBehaviorType copyBehavior; + + /** + * Get the copyBehavior value. + * + * @return the copyBehavior value + */ + public CopyBehaviorType copyBehavior() { + return this.copyBehavior; + } + + /** + * Set the copyBehavior value. + * + * @param copyBehavior the copyBehavior value to set + * @return the FileSystemSink object itself. + */ + public FileSystemSink withCopyBehavior(CopyBehaviorType copyBehavior) { + this.copyBehavior = copyBehavior; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileSystemSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileSystemSource.java new file mode 100644 index 00000000000..4b373778258 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FileSystemSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity file system source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileSystemSource") +public class FileSystemSource extends CopySource { + /** + * If true, files under the folder path will be read recursively. Default + * is true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "recursive") + private Object recursive; + + /** + * Get the recursive value. + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set the recursive value. + * + * @param recursive the recursive value to set + * @return the FileSystemSource object itself. + */ + public FileSystemSource withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FilterActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FilterActivity.java new file mode 100644 index 00000000000..6f26ddd5f39 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FilterActivity.java @@ -0,0 +1,75 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 +public class FilterActivity extends ControlActivity { + /** + * Input array on which filter should be applied. + */ + @JsonProperty(value = "typeProperties.items", required = true) + private Expression items; + + /** + * Condition to be used for filtering the input. + */ + @JsonProperty(value = "typeProperties.condition", required = true) + private Expression condition; + + /** + * Get the items value. + * + * @return the items value + */ + public Expression items() { + return this.items; + } + + /** + * Set the items value. + * + * @param items the items value to set + * @return the FilterActivity object itself. + */ + public FilterActivity withItems(Expression items) { + this.items = items; + return this; + } + + /** + * Get the condition value. + * + * @return the condition value + */ + public Expression condition() { + return this.condition; + } + + /** + * Set the condition value. + * + * @param condition the condition value to set + * @return the FilterActivity object itself. + */ + public FilterActivity withCondition(Expression condition) { + this.condition = condition; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ForEachActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ForEachActivity.java new file mode 100644 index 00000000000..fc56407d020 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ForEachActivity.java @@ -0,0 +1,130 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * 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 +public class ForEachActivity extends ControlActivity { + /** + * Should the loop be executed in sequence or in parallel (max 50). + */ + @JsonProperty(value = "typeProperties.isSequential") + private Boolean isSequential; + + /** + * Batch count to be used for controlling the number of parallel execution + * (when isSequential is set to false). + */ + @JsonProperty(value = "typeProperties.batchCount") + private Integer batchCount; + + /** + * Collection to iterate. + */ + @JsonProperty(value = "typeProperties.items", required = true) + private Expression items; + + /** + * List of activities to execute . + */ + @JsonProperty(value = "typeProperties.activities", required = true) + private List activities; + + /** + * Get the isSequential value. + * + * @return the isSequential value + */ + public Boolean isSequential() { + return this.isSequential; + } + + /** + * Set the isSequential value. + * + * @param isSequential the isSequential value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withIsSequential(Boolean isSequential) { + this.isSequential = isSequential; + return this; + } + + /** + * Get the batchCount value. + * + * @return the batchCount value + */ + public Integer batchCount() { + return this.batchCount; + } + + /** + * Set the batchCount value. + * + * @param batchCount the batchCount value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withBatchCount(Integer batchCount) { + this.batchCount = batchCount; + return this; + } + + /** + * Get the items value. + * + * @return the items value + */ + public Expression items() { + return this.items; + } + + /** + * Set the items value. + * + * @param items the items value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withItems(Expression items) { + this.items = items; + return this; + } + + /** + * Get the activities value. + * + * @return the activities value + */ + public List activities() { + return this.activities; + } + + /** + * Set the activities value. + * + * @param activities the activities value to set + * @return the ForEachActivity object itself. + */ + public ForEachActivity withActivities(List activities) { + this.activities = activities; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FtpAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FtpAuthenticationType.java new file mode 100644 index 00000000000..ed4531965ad --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FtpAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for FtpAuthenticationType. + */ +public final class FtpAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for FtpAuthenticationType. */ + public static final FtpAuthenticationType BASIC = fromString("Basic"); + + /** Static value Anonymous for FtpAuthenticationType. */ + public static final FtpAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** + * Creates or finds a FtpAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding FtpAuthenticationType + */ + @JsonCreator + public static FtpAuthenticationType fromString(String name) { + return fromString(name, FtpAuthenticationType.class); + } + + /** + * @return known FtpAuthenticationType values + */ + public static Collection values() { + return values(FtpAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FtpServerLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FtpServerLinkedService.java new file mode 100644 index 00000000000..5b28222db1e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/FtpServerLinkedService.java @@ -0,0 +1,242 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * A FTP server Linked Service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FtpServer") +@JsonFlatten +public class FtpServerLinkedService extends LinkedServiceInner { + /** + * Host name of the FTP server. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.port") + private Object port; + + /** + * The authentication type to be used to connect to the FTP server. + * Possible values include: 'Basic', 'Anonymous'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private FtpAuthenticationType authenticationType; + + /** + * Username to logon the FTP server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password to logon the FTP server. + */ + @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; + + /** + * 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public FtpAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withAuthenticationType(FtpAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the enableServerCertificateValidation value. + * + * @return the enableServerCertificateValidation value + */ + public Object enableServerCertificateValidation() { + return this.enableServerCertificateValidation; + } + + /** + * Set the enableServerCertificateValidation value. + * + * @param enableServerCertificateValidation the enableServerCertificateValidation value to set + * @return the FtpServerLinkedService object itself. + */ + public FtpServerLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GetMetadataActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GetMetadataActivity.java new file mode 100644 index 00000000000..9f65c8483d3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GetMetadataActivity.java @@ -0,0 +1,76 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Activity to get metadata of dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GetMetadata") +@JsonFlatten +public class GetMetadataActivity extends ExecutionActivity { + /** + * GetMetadata activity dataset reference. + */ + @JsonProperty(value = "typeProperties.dataset", required = true) + private DatasetReference dataset; + + /** + * Fields of metadata to get from dataset. + */ + @JsonProperty(value = "typeProperties.fieldList") + private List fieldList; + + /** + * Get the dataset value. + * + * @return the dataset value + */ + public DatasetReference dataset() { + return this.dataset; + } + + /** + * Set the dataset value. + * + * @param dataset the dataset value to set + * @return the GetMetadataActivity object itself. + */ + public GetMetadataActivity withDataset(DatasetReference dataset) { + this.dataset = dataset; + return this; + } + + /** + * Get the fieldList value. + * + * @return the fieldList value + */ + public List fieldList() { + return this.fieldList; + } + + /** + * Set the fieldList value. + * + * @param fieldList the fieldList value to set + * @return the GetMetadataActivity object itself. + */ + public GetMetadataActivity withFieldList(List fieldList) { + this.fieldList = fieldList; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryAuthenticationType.java new file mode 100644 index 00000000000..267b8d949df --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for GoogleBigQueryAuthenticationType. + */ +public final class GoogleBigQueryAuthenticationType extends ExpandableStringEnum { + /** Static value ServiceAuthentication for GoogleBigQueryAuthenticationType. */ + public static final GoogleBigQueryAuthenticationType SERVICE_AUTHENTICATION = fromString("ServiceAuthentication"); + + /** Static value UserAuthentication for GoogleBigQueryAuthenticationType. */ + public static final GoogleBigQueryAuthenticationType USER_AUTHENTICATION = fromString("UserAuthentication"); + + /** + * Creates or finds a GoogleBigQueryAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding GoogleBigQueryAuthenticationType + */ + @JsonCreator + public static GoogleBigQueryAuthenticationType fromString(String name) { + return fromString(name, GoogleBigQueryAuthenticationType.class); + } + + /** + * @return known GoogleBigQueryAuthenticationType values + */ + public static Collection values() { + return values(GoogleBigQueryAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryLinkedService.java new file mode 100644 index 00000000000..64ac9b93eb7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryLinkedService.java @@ -0,0 +1,351 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Google BigQuery service linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleBigQuery") +@JsonFlatten +public class GoogleBigQueryLinkedService extends LinkedServiceInner { + /** + * The default BigQuery project to query against. + */ + @JsonProperty(value = "typeProperties.project", required = true) + private Object project; + + /** + * A comma-separated list of public BigQuery projects to access. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.requestGoogleDriveScope") + private Object requestGoogleDriveScope; + + /** + * The OAuth 2.0 authentication mechanism used for authentication. + * ServiceAuthentication can only be used on self-hosted IR. Possible + * values include: 'ServiceAuthentication', 'UserAuthentication'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private GoogleBigQueryAuthenticationType authenticationType; + + /** + * The refresh token obtained from Google for authorizing access to + * BigQuery for UserAuthentication. + */ + @JsonProperty(value = "typeProperties.refreshToken") + private SecretBase refreshToken; + + /** + * The client id of the google application used to acquire the refresh + * token. + */ + @JsonProperty(value = "typeProperties.clientId") + private SecretBase 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 value. + * + * @return the project value + */ + public Object project() { + return this.project; + } + + /** + * Set the project value. + * + * @param project the project value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withProject(Object project) { + this.project = project; + return this; + } + + /** + * Get the additionalProjects value. + * + * @return the additionalProjects value + */ + public Object additionalProjects() { + return this.additionalProjects; + } + + /** + * Set the additionalProjects value. + * + * @param additionalProjects the additionalProjects value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withAdditionalProjects(Object additionalProjects) { + this.additionalProjects = additionalProjects; + return this; + } + + /** + * Get the requestGoogleDriveScope value. + * + * @return the requestGoogleDriveScope value + */ + public Object requestGoogleDriveScope() { + return this.requestGoogleDriveScope; + } + + /** + * Set the requestGoogleDriveScope value. + * + * @param requestGoogleDriveScope the requestGoogleDriveScope value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withRequestGoogleDriveScope(Object requestGoogleDriveScope) { + this.requestGoogleDriveScope = requestGoogleDriveScope; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public GoogleBigQueryAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withAuthenticationType(GoogleBigQueryAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the refreshToken value. + * + * @return the refreshToken value + */ + public SecretBase refreshToken() { + return this.refreshToken; + } + + /** + * Set the refreshToken value. + * + * @param refreshToken the refreshToken value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withRefreshToken(SecretBase refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public SecretBase clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withClientId(SecretBase clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the email value. + * + * @return the email value + */ + public Object email() { + return this.email; + } + + /** + * Set the email value. + * + * @param email the email value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withEmail(Object email) { + this.email = email; + return this; + } + + /** + * Get the keyFilePath value. + * + * @return the keyFilePath value + */ + public Object keyFilePath() { + return this.keyFilePath; + } + + /** + * Set the keyFilePath value. + * + * @param keyFilePath the keyFilePath value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withKeyFilePath(Object keyFilePath) { + this.keyFilePath = keyFilePath; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the useSystemTrustStore value. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set the useSystemTrustStore value. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the GoogleBigQueryLinkedService object itself. + */ + public GoogleBigQueryLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryObjectDataset.java new file mode 100644 index 00000000000..a68c5bba1ff --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQueryObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Google BigQuery service dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleBigQueryObject") +public class GoogleBigQueryObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQuerySource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQuerySource.java new file mode 100644 index 00000000000..55eb73e49bf --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GoogleBigQuerySource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Google BigQuery service source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GoogleBigQuerySource") +public class GoogleBigQuerySource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the GoogleBigQuerySource object itself. + */ + public GoogleBigQuerySource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumLinkedService.java new file mode 100644 index 00000000000..0a192914a4d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Greenplum Database linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Greenplum") +@JsonFlatten +public class GreenplumLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the GreenplumLinkedService object itself. + */ + public GreenplumLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumSource.java new file mode 100644 index 00000000000..dd5458db6a7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Greenplum Database source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GreenplumSource") +public class GreenplumSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the GreenplumSource object itself. + */ + public GreenplumSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumTableDataset.java new file mode 100644 index 00000000000..4d60616fbb8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/GreenplumTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Greenplum Database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("GreenplumTable") +public class GreenplumTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseAuthenticationType.java new file mode 100644 index 00000000000..e3baba97d3c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HBaseAuthenticationType. + */ +public final class HBaseAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for HBaseAuthenticationType. */ + public static final HBaseAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value Basic for HBaseAuthenticationType. */ + public static final HBaseAuthenticationType BASIC = fromString("Basic"); + + /** + * Creates or finds a HBaseAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding HBaseAuthenticationType + */ + @JsonCreator + public static HBaseAuthenticationType fromString(String name) { + return fromString(name, HBaseAuthenticationType.class); + } + + /** + * @return known HBaseAuthenticationType values + */ + public static Collection values() { + return values(HBaseAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseLinkedService.java new file mode 100644 index 00000000000..a42a0ef571e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseLinkedService.java @@ -0,0 +1,322 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * HBase server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HBase") +@JsonFlatten +public class HBaseLinkedService extends LinkedServiceInner { + /** + * The IP address or host name of the HBase server. (i.e. 192.168.222.160). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.port") + private Object port; + + /** + * The partial URL corresponding to the HBase server. (i.e. + * /gateway/sandbox/hbase/version). + */ + @JsonProperty(value = "typeProperties.httpPath") + private Object httpPath; + + /** + * The authentication mechanism to use to connect to the HBase server. + * Possible values include: 'Anonymous', 'Basic'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private HBaseAuthenticationType authenticationType; + + /** + * The user name used to connect to the HBase instance. + */ + @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 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the httpPath value. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the httpPath value. + * + * @param httpPath the httpPath value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public HBaseAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withAuthenticationType(HBaseAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the allowHostNameCNMismatch value. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set the allowHostNameCNMismatch value. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HBaseLinkedService object itself. + */ + public HBaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseObjectDataset.java new file mode 100644 index 00000000000..c7959e21ac3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * HBase server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HBaseObject") +public class HBaseObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseSource.java new file mode 100644 index 00000000000..19e572e1ac5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HBaseSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity HBase server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HBaseSource") +public class HBaseSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the HBaseSource object itself. + */ + public HBaseSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightActivityDebugInfoOption.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightActivityDebugInfoOption.java new file mode 100644 index 00000000000..6e22fa2b52e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightActivityDebugInfoOption.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HDInsightActivityDebugInfoOption. + */ +public final class HDInsightActivityDebugInfoOption extends ExpandableStringEnum { + /** Static value None for HDInsightActivityDebugInfoOption. */ + public static final HDInsightActivityDebugInfoOption NONE = fromString("None"); + + /** Static value Always for HDInsightActivityDebugInfoOption. */ + public static final HDInsightActivityDebugInfoOption ALWAYS = fromString("Always"); + + /** Static value Failure for HDInsightActivityDebugInfoOption. */ + public static final HDInsightActivityDebugInfoOption FAILURE = fromString("Failure"); + + /** + * Creates or finds a HDInsightActivityDebugInfoOption from its string representation. + * @param name a name to look for + * @return the corresponding HDInsightActivityDebugInfoOption + */ + @JsonCreator + public static HDInsightActivityDebugInfoOption fromString(String name) { + return fromString(name, HDInsightActivityDebugInfoOption.class); + } + + /** + * @return known HDInsightActivityDebugInfoOption values + */ + public static Collection values() { + return values(HDInsightActivityDebugInfoOption.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightHiveActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightHiveActivity.java new file mode 100644 index 00000000000..1d70c7f2c32 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightHiveActivity.java @@ -0,0 +1,181 @@ +/** + * 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.datafactory; + +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * HDInsight Hive activity type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsightHive") +@JsonFlatten +public class HDInsightHiveActivity extends ExecutionActivity { + /** + * Storage linked service references. + */ + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; + + /** + * User specified arguments to HDInsightActivity. + */ + @JsonProperty(value = "typeProperties.arguments") + private List arguments; + + /** + * Debug info option. Possible values include: 'None', 'Always', 'Failure'. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; + + /** + * Script path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.scriptPath") + private Object scriptPath; + + /** + * Script linked service reference. + */ + @JsonProperty(value = "typeProperties.scriptLinkedService") + private LinkedServiceReference scriptLinkedService; + + /** + * Allows user to specify defines for Hive job request. + */ + @JsonProperty(value = "typeProperties.defines") + private Map defines; + + /** + * Get the storageLinkedServices value. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set the storageLinkedServices value. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get the arguments value. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set the arguments value. + * + * @param arguments the arguments value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get the getDebugInfo value. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set the getDebugInfo value. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get the scriptPath value. + * + * @return the scriptPath value + */ + public Object scriptPath() { + return this.scriptPath; + } + + /** + * Set the scriptPath value. + * + * @param scriptPath the scriptPath value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withScriptPath(Object scriptPath) { + this.scriptPath = scriptPath; + return this; + } + + /** + * Get the scriptLinkedService value. + * + * @return the scriptLinkedService value + */ + public LinkedServiceReference scriptLinkedService() { + return this.scriptLinkedService; + } + + /** + * Set the scriptLinkedService value. + * + * @param scriptLinkedService the scriptLinkedService value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { + this.scriptLinkedService = scriptLinkedService; + return this; + } + + /** + * Get the defines value. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set the defines value. + * + * @param defines the defines value to set + * @return the HDInsightHiveActivity object itself. + */ + public HDInsightHiveActivity withDefines(Map defines) { + this.defines = defines; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightLinkedService.java new file mode 100644 index 00000000000..7063d31dd11 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightLinkedService.java @@ -0,0 +1,185 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * HDInsight linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsight") +@JsonFlatten +public class HDInsightLinkedService extends LinkedServiceInner { + /** + * HDInsight cluster URI. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.clusterUri", required = true) + private Object clusterUri; + + /** + * HDInsight cluster user name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * HDInsight cluster password. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The Azure Storage linked service reference. + */ + @JsonProperty(value = "typeProperties.linkedServiceName") + private LinkedServiceReference linkedServiceName; + + /** + * A reference to the Azure SQL linked service that points to the HCatalog + * database. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the clusterUri value. + * + * @return the clusterUri value + */ + public Object clusterUri() { + return this.clusterUri; + } + + /** + * Set the clusterUri value. + * + * @param clusterUri the clusterUri value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withClusterUri(Object clusterUri) { + this.clusterUri = clusterUri; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the hcatalogLinkedServiceName value. + * + * @return the hcatalogLinkedServiceName value + */ + public LinkedServiceReference hcatalogLinkedServiceName() { + return this.hcatalogLinkedServiceName; + } + + /** + * Set the hcatalogLinkedServiceName value. + * + * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withHcatalogLinkedServiceName(LinkedServiceReference hcatalogLinkedServiceName) { + this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HDInsightLinkedService object itself. + */ + public HDInsightLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightMapReduceActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightMapReduceActivity.java new file mode 100644 index 00000000000..04d4a482224 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightMapReduceActivity.java @@ -0,0 +1,233 @@ +/** + * 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.datafactory; + +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * HDInsight MapReduce activity type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsightMapReduce") +@JsonFlatten +public class HDInsightMapReduceActivity extends ExecutionActivity { + /** + * Storage linked service references. + */ + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; + + /** + * User specified arguments to HDInsightActivity. + */ + @JsonProperty(value = "typeProperties.arguments") + private List arguments; + + /** + * Debug info option. Possible values include: 'None', 'Always', 'Failure'. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; + + /** + * Class name. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.className", required = true) + private Object className; + + /** + * Jar path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.jarFilePath", required = true) + private Object jarFilePath; + + /** + * Jar linked service reference. + */ + @JsonProperty(value = "typeProperties.jarLinkedService") + private LinkedServiceReference jarLinkedService; + + /** + * Jar libs. + */ + @JsonProperty(value = "typeProperties.jarLibs") + private List jarLibs; + + /** + * Allows user to specify defines for the MapReduce job request. + */ + @JsonProperty(value = "typeProperties.defines") + private Map defines; + + /** + * Get the storageLinkedServices value. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set the storageLinkedServices value. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get the arguments value. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set the arguments value. + * + * @param arguments the arguments value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get the getDebugInfo value. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set the getDebugInfo value. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get the className value. + * + * @return the className value + */ + public Object className() { + return this.className; + } + + /** + * Set the className value. + * + * @param className the className value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withClassName(Object className) { + this.className = className; + return this; + } + + /** + * Get the jarFilePath value. + * + * @return the jarFilePath value + */ + public Object jarFilePath() { + return this.jarFilePath; + } + + /** + * Set the jarFilePath value. + * + * @param jarFilePath the jarFilePath value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withJarFilePath(Object jarFilePath) { + this.jarFilePath = jarFilePath; + return this; + } + + /** + * Get the jarLinkedService value. + * + * @return the jarLinkedService value + */ + public LinkedServiceReference jarLinkedService() { + return this.jarLinkedService; + } + + /** + * Set the jarLinkedService value. + * + * @param jarLinkedService the jarLinkedService value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withJarLinkedService(LinkedServiceReference jarLinkedService) { + this.jarLinkedService = jarLinkedService; + return this; + } + + /** + * Get the jarLibs value. + * + * @return the jarLibs value + */ + public List jarLibs() { + return this.jarLibs; + } + + /** + * Set the jarLibs value. + * + * @param jarLibs the jarLibs value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withJarLibs(List jarLibs) { + this.jarLibs = jarLibs; + return this; + } + + /** + * Get the defines value. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set the defines value. + * + * @param defines the defines value to set + * @return the HDInsightMapReduceActivity object itself. + */ + public HDInsightMapReduceActivity withDefines(Map defines) { + this.defines = defines; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightOnDemandLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightOnDemandLinkedService.java new file mode 100644 index 00000000000..832293c5830 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightOnDemandLinkedService.java @@ -0,0 +1,833 @@ +/** + * 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.datafactory; + +import java.util.List; +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.datafactory.implementation.LinkedServiceInner; + +/** + * HDInsight ondemand linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsightOnDemand") +@JsonFlatten +public class HDInsightOnDemandLinkedService extends LinkedServiceInner { + /** + * Number of worker/data nodes in the cluster. Suggestion value: 4. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.timeToLive", required = true) + private Object timeToLive; + + /** + * Version of the HDInsight cluster.  Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; + + /** + * The customer’s subscription to host the cluster. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.hostSubscriptionId", required = true) + private Object hostSubscriptionId; + + /** + * 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; + + /** + * Get the clusterSize value. + * + * @return the clusterSize value + */ + public Object clusterSize() { + return this.clusterSize; + } + + /** + * Set the clusterSize value. + * + * @param clusterSize the clusterSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterSize(Object clusterSize) { + this.clusterSize = clusterSize; + return this; + } + + /** + * Get the timeToLive value. + * + * @return the timeToLive value + */ + public Object timeToLive() { + return this.timeToLive; + } + + /** + * Set the timeToLive value. + * + * @param timeToLive the timeToLive value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withTimeToLive(Object timeToLive) { + this.timeToLive = timeToLive; + return this; + } + + /** + * Get the version value. + * + * @return the version value + */ + public Object version() { + return this.version; + } + + /** + * Set the version value. + * + * @param version the version value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withVersion(Object version) { + this.version = version; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the hostSubscriptionId value. + * + * @return the hostSubscriptionId value + */ + public Object hostSubscriptionId() { + return this.hostSubscriptionId; + } + + /** + * Set the hostSubscriptionId value. + * + * @param hostSubscriptionId the hostSubscriptionId value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHostSubscriptionId(Object hostSubscriptionId) { + this.hostSubscriptionId = hostSubscriptionId; + return this; + } + + /** + * Get the servicePrincipalId value. + * + * @return the servicePrincipalId value + */ + public Object servicePrincipalId() { + return this.servicePrincipalId; + } + + /** + * Set the servicePrincipalId value. + * + * @param servicePrincipalId the servicePrincipalId value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withServicePrincipalId(Object servicePrincipalId) { + this.servicePrincipalId = servicePrincipalId; + return this; + } + + /** + * Get the servicePrincipalKey value. + * + * @return the servicePrincipalKey value + */ + public SecretBase servicePrincipalKey() { + return this.servicePrincipalKey; + } + + /** + * Set the servicePrincipalKey value. + * + * @param servicePrincipalKey the servicePrincipalKey value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withServicePrincipalKey(SecretBase servicePrincipalKey) { + this.servicePrincipalKey = servicePrincipalKey; + return this; + } + + /** + * Get the tenant value. + * + * @return the tenant value + */ + public Object tenant() { + return this.tenant; + } + + /** + * Set the tenant value. + * + * @param tenant the tenant value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withTenant(Object tenant) { + this.tenant = tenant; + return this; + } + + /** + * Get the clusterResourceGroup value. + * + * @return the clusterResourceGroup value + */ + public Object clusterResourceGroup() { + return this.clusterResourceGroup; + } + + /** + * Set the clusterResourceGroup value. + * + * @param clusterResourceGroup the clusterResourceGroup value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterResourceGroup(Object clusterResourceGroup) { + this.clusterResourceGroup = clusterResourceGroup; + return this; + } + + /** + * Get the clusterNamePrefix value. + * + * @return the clusterNamePrefix value + */ + public Object clusterNamePrefix() { + return this.clusterNamePrefix; + } + + /** + * Set the clusterNamePrefix value. + * + * @param clusterNamePrefix the clusterNamePrefix value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterNamePrefix(Object clusterNamePrefix) { + this.clusterNamePrefix = clusterNamePrefix; + return this; + } + + /** + * Get the clusterUserName value. + * + * @return the clusterUserName value + */ + public Object clusterUserName() { + return this.clusterUserName; + } + + /** + * Set the clusterUserName value. + * + * @param clusterUserName the clusterUserName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterUserName(Object clusterUserName) { + this.clusterUserName = clusterUserName; + return this; + } + + /** + * Get the clusterPassword value. + * + * @return the clusterPassword value + */ + public SecretBase clusterPassword() { + return this.clusterPassword; + } + + /** + * Set the clusterPassword value. + * + * @param clusterPassword the clusterPassword value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterPassword(SecretBase clusterPassword) { + this.clusterPassword = clusterPassword; + return this; + } + + /** + * Get the clusterSshUserName value. + * + * @return the clusterSshUserName value + */ + public Object clusterSshUserName() { + return this.clusterSshUserName; + } + + /** + * Set the clusterSshUserName value. + * + * @param clusterSshUserName the clusterSshUserName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterSshUserName(Object clusterSshUserName) { + this.clusterSshUserName = clusterSshUserName; + return this; + } + + /** + * Get the clusterSshPassword value. + * + * @return the clusterSshPassword value + */ + public SecretBase clusterSshPassword() { + return this.clusterSshPassword; + } + + /** + * Set the clusterSshPassword value. + * + * @param clusterSshPassword the clusterSshPassword value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterSshPassword(SecretBase clusterSshPassword) { + this.clusterSshPassword = clusterSshPassword; + return this; + } + + /** + * Get the additionalLinkedServiceNames value. + * + * @return the additionalLinkedServiceNames value + */ + public List additionalLinkedServiceNames() { + return this.additionalLinkedServiceNames; + } + + /** + * Set the additionalLinkedServiceNames value. + * + * @param additionalLinkedServiceNames the additionalLinkedServiceNames value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withAdditionalLinkedServiceNames(List additionalLinkedServiceNames) { + this.additionalLinkedServiceNames = additionalLinkedServiceNames; + return this; + } + + /** + * Get the hcatalogLinkedServiceName value. + * + * @return the hcatalogLinkedServiceName value + */ + public LinkedServiceReference hcatalogLinkedServiceName() { + return this.hcatalogLinkedServiceName; + } + + /** + * Set the hcatalogLinkedServiceName value. + * + * @param hcatalogLinkedServiceName the hcatalogLinkedServiceName value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHcatalogLinkedServiceName(LinkedServiceReference hcatalogLinkedServiceName) { + this.hcatalogLinkedServiceName = hcatalogLinkedServiceName; + return this; + } + + /** + * Get the clusterType value. + * + * @return the clusterType value + */ + public Object clusterType() { + return this.clusterType; + } + + /** + * Set the clusterType value. + * + * @param clusterType the clusterType value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withClusterType(Object clusterType) { + this.clusterType = clusterType; + return this; + } + + /** + * Get the sparkVersion value. + * + * @return the sparkVersion value + */ + public Object sparkVersion() { + return this.sparkVersion; + } + + /** + * Set the sparkVersion value. + * + * @param sparkVersion the sparkVersion value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withSparkVersion(Object sparkVersion) { + this.sparkVersion = sparkVersion; + return this; + } + + /** + * Get the coreConfiguration value. + * + * @return the coreConfiguration value + */ + public Object coreConfiguration() { + return this.coreConfiguration; + } + + /** + * Set the coreConfiguration value. + * + * @param coreConfiguration the coreConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withCoreConfiguration(Object coreConfiguration) { + this.coreConfiguration = coreConfiguration; + return this; + } + + /** + * Get the hBaseConfiguration value. + * + * @return the hBaseConfiguration value + */ + public Object hBaseConfiguration() { + return this.hBaseConfiguration; + } + + /** + * Set the hBaseConfiguration value. + * + * @param hBaseConfiguration the hBaseConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHBaseConfiguration(Object hBaseConfiguration) { + this.hBaseConfiguration = hBaseConfiguration; + return this; + } + + /** + * Get the hdfsConfiguration value. + * + * @return the hdfsConfiguration value + */ + public Object hdfsConfiguration() { + return this.hdfsConfiguration; + } + + /** + * Set the hdfsConfiguration value. + * + * @param hdfsConfiguration the hdfsConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHdfsConfiguration(Object hdfsConfiguration) { + this.hdfsConfiguration = hdfsConfiguration; + return this; + } + + /** + * Get the hiveConfiguration value. + * + * @return the hiveConfiguration value + */ + public Object hiveConfiguration() { + return this.hiveConfiguration; + } + + /** + * Set the hiveConfiguration value. + * + * @param hiveConfiguration the hiveConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHiveConfiguration(Object hiveConfiguration) { + this.hiveConfiguration = hiveConfiguration; + return this; + } + + /** + * Get the mapReduceConfiguration value. + * + * @return the mapReduceConfiguration value + */ + public Object mapReduceConfiguration() { + return this.mapReduceConfiguration; + } + + /** + * Set the mapReduceConfiguration value. + * + * @param mapReduceConfiguration the mapReduceConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withMapReduceConfiguration(Object mapReduceConfiguration) { + this.mapReduceConfiguration = mapReduceConfiguration; + return this; + } + + /** + * Get the oozieConfiguration value. + * + * @return the oozieConfiguration value + */ + public Object oozieConfiguration() { + return this.oozieConfiguration; + } + + /** + * Set the oozieConfiguration value. + * + * @param oozieConfiguration the oozieConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withOozieConfiguration(Object oozieConfiguration) { + this.oozieConfiguration = oozieConfiguration; + return this; + } + + /** + * Get the stormConfiguration value. + * + * @return the stormConfiguration value + */ + public Object stormConfiguration() { + return this.stormConfiguration; + } + + /** + * Set the stormConfiguration value. + * + * @param stormConfiguration the stormConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withStormConfiguration(Object stormConfiguration) { + this.stormConfiguration = stormConfiguration; + return this; + } + + /** + * Get the yarnConfiguration value. + * + * @return the yarnConfiguration value + */ + public Object yarnConfiguration() { + return this.yarnConfiguration; + } + + /** + * Set the yarnConfiguration value. + * + * @param yarnConfiguration the yarnConfiguration value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withYarnConfiguration(Object yarnConfiguration) { + this.yarnConfiguration = yarnConfiguration; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the headNodeSize value. + * + * @return the headNodeSize value + */ + public Object headNodeSize() { + return this.headNodeSize; + } + + /** + * Set the headNodeSize value. + * + * @param headNodeSize the headNodeSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withHeadNodeSize(Object headNodeSize) { + this.headNodeSize = headNodeSize; + return this; + } + + /** + * Get the dataNodeSize value. + * + * @return the dataNodeSize value + */ + public Object dataNodeSize() { + return this.dataNodeSize; + } + + /** + * Set the dataNodeSize value. + * + * @param dataNodeSize the dataNodeSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withDataNodeSize(Object dataNodeSize) { + this.dataNodeSize = dataNodeSize; + return this; + } + + /** + * Get the zookeeperNodeSize value. + * + * @return the zookeeperNodeSize value + */ + public Object zookeeperNodeSize() { + return this.zookeeperNodeSize; + } + + /** + * Set the zookeeperNodeSize value. + * + * @param zookeeperNodeSize the zookeeperNodeSize value to set + * @return the HDInsightOnDemandLinkedService object itself. + */ + public HDInsightOnDemandLinkedService withZookeeperNodeSize(Object zookeeperNodeSize) { + this.zookeeperNodeSize = zookeeperNodeSize; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightPigActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightPigActivity.java new file mode 100644 index 00000000000..b06b3004625 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightPigActivity.java @@ -0,0 +1,181 @@ +/** + * 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.datafactory; + +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * HDInsight Pig activity type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsightPig") +@JsonFlatten +public class HDInsightPigActivity extends ExecutionActivity { + /** + * Storage linked service references. + */ + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; + + /** + * User specified arguments to HDInsightActivity. + */ + @JsonProperty(value = "typeProperties.arguments") + private List arguments; + + /** + * Debug info option. Possible values include: 'None', 'Always', 'Failure'. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; + + /** + * Script path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.scriptPath") + private Object scriptPath; + + /** + * Script linked service reference. + */ + @JsonProperty(value = "typeProperties.scriptLinkedService") + private LinkedServiceReference scriptLinkedService; + + /** + * Allows user to specify defines for Pig job request. + */ + @JsonProperty(value = "typeProperties.defines") + private Map defines; + + /** + * Get the storageLinkedServices value. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set the storageLinkedServices value. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get the arguments value. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set the arguments value. + * + * @param arguments the arguments value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get the getDebugInfo value. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set the getDebugInfo value. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get the scriptPath value. + * + * @return the scriptPath value + */ + public Object scriptPath() { + return this.scriptPath; + } + + /** + * Set the scriptPath value. + * + * @param scriptPath the scriptPath value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withScriptPath(Object scriptPath) { + this.scriptPath = scriptPath; + return this; + } + + /** + * Get the scriptLinkedService value. + * + * @return the scriptLinkedService value + */ + public LinkedServiceReference scriptLinkedService() { + return this.scriptLinkedService; + } + + /** + * Set the scriptLinkedService value. + * + * @param scriptLinkedService the scriptLinkedService value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withScriptLinkedService(LinkedServiceReference scriptLinkedService) { + this.scriptLinkedService = scriptLinkedService; + return this; + } + + /** + * Get the defines value. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set the defines value. + * + * @param defines the defines value to set + * @return the HDInsightPigActivity object itself. + */ + public HDInsightPigActivity withDefines(Map defines) { + this.defines = defines; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightSparkActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightSparkActivity.java new file mode 100644 index 00000000000..e7df5b7a4a0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightSparkActivity.java @@ -0,0 +1,237 @@ +/** + * 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.datafactory; + +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * HDInsight Spark activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsightSpark") +@JsonFlatten +public class HDInsightSparkActivity extends ExecutionActivity { + /** + * The root path in 'sparkJobLinkedService' for all the job’s files. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.entryFilePath", required = true) + private Object entryFilePath; + + /** + * The user-specified arguments to HDInsightSparkActivity. + */ + @JsonProperty(value = "typeProperties.arguments") + private List arguments; + + /** + * Debug info option. Possible values include: 'None', 'Always', 'Failure'. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; + + /** + * The storage linked service for uploading the entry file and + * dependencies, and for receiving logs. + */ + @JsonProperty(value = "typeProperties.sparkJobLinkedService") + private LinkedServiceReference sparkJobLinkedService; + + /** + * The application's Java/Spark main class. + */ + @JsonProperty(value = "typeProperties.className") + private String className; + + /** + * The user to impersonate that will execute the job. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.proxyUser") + private Object proxyUser; + + /** + * Spark configuration property. + */ + @JsonProperty(value = "typeProperties.sparkConfig") + private Map sparkConfig; + + /** + * Get the rootPath value. + * + * @return the rootPath value + */ + public Object rootPath() { + return this.rootPath; + } + + /** + * Set the rootPath value. + * + * @param rootPath the rootPath value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withRootPath(Object rootPath) { + this.rootPath = rootPath; + return this; + } + + /** + * Get the entryFilePath value. + * + * @return the entryFilePath value + */ + public Object entryFilePath() { + return this.entryFilePath; + } + + /** + * Set the entryFilePath value. + * + * @param entryFilePath the entryFilePath value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withEntryFilePath(Object entryFilePath) { + this.entryFilePath = entryFilePath; + return this; + } + + /** + * Get the arguments value. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set the arguments value. + * + * @param arguments the arguments value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get the getDebugInfo value. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set the getDebugInfo value. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get the sparkJobLinkedService value. + * + * @return the sparkJobLinkedService value + */ + public LinkedServiceReference sparkJobLinkedService() { + return this.sparkJobLinkedService; + } + + /** + * Set the sparkJobLinkedService value. + * + * @param sparkJobLinkedService the sparkJobLinkedService value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withSparkJobLinkedService(LinkedServiceReference sparkJobLinkedService) { + this.sparkJobLinkedService = sparkJobLinkedService; + return this; + } + + /** + * Get the className value. + * + * @return the className value + */ + public String className() { + return this.className; + } + + /** + * Set the className value. + * + * @param className the className value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withClassName(String className) { + this.className = className; + return this; + } + + /** + * Get the proxyUser value. + * + * @return the proxyUser value + */ + public Object proxyUser() { + return this.proxyUser; + } + + /** + * Set the proxyUser value. + * + * @param proxyUser the proxyUser value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withProxyUser(Object proxyUser) { + this.proxyUser = proxyUser; + return this; + } + + /** + * Get the sparkConfig value. + * + * @return the sparkConfig value + */ + public Map sparkConfig() { + return this.sparkConfig; + } + + /** + * Set the sparkConfig value. + * + * @param sparkConfig the sparkConfig value to set + * @return the HDInsightSparkActivity object itself. + */ + public HDInsightSparkActivity withSparkConfig(Map sparkConfig) { + this.sparkConfig = sparkConfig; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightStreamingActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightStreamingActivity.java new file mode 100644 index 00000000000..6d1385ed2fe --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HDInsightStreamingActivity.java @@ -0,0 +1,340 @@ +/** + * 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.datafactory; + +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * HDInsight streaming activity type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HDInsightStreaming") +@JsonFlatten +public class HDInsightStreamingActivity extends ExecutionActivity { + /** + * Storage linked service references. + */ + @JsonProperty(value = "typeProperties.storageLinkedServices") + private List storageLinkedServices; + + /** + * User specified arguments to HDInsightActivity. + */ + @JsonProperty(value = "typeProperties.arguments") + private List arguments; + + /** + * Debug info option. Possible values include: 'None', 'Always', 'Failure'. + */ + @JsonProperty(value = "typeProperties.getDebugInfo") + private HDInsightActivityDebugInfoOption getDebugInfo; + + /** + * Mapper executable name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.mapper", required = true) + private Object mapper; + + /** + * Reducer executable name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.reducer", required = true) + private Object reducer; + + /** + * Input blob path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.input", required = true) + private Object input; + + /** + * Output blob path. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.output", required = true) + private Object output; + + /** + * 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") + private Map defines; + + /** + * Get the storageLinkedServices value. + * + * @return the storageLinkedServices value + */ + public List storageLinkedServices() { + return this.storageLinkedServices; + } + + /** + * Set the storageLinkedServices value. + * + * @param storageLinkedServices the storageLinkedServices value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withStorageLinkedServices(List storageLinkedServices) { + this.storageLinkedServices = storageLinkedServices; + return this; + } + + /** + * Get the arguments value. + * + * @return the arguments value + */ + public List arguments() { + return this.arguments; + } + + /** + * Set the arguments value. + * + * @param arguments the arguments value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withArguments(List arguments) { + this.arguments = arguments; + return this; + } + + /** + * Get the getDebugInfo value. + * + * @return the getDebugInfo value + */ + public HDInsightActivityDebugInfoOption getDebugInfo() { + return this.getDebugInfo; + } + + /** + * Set the getDebugInfo value. + * + * @param getDebugInfo the getDebugInfo value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withGetDebugInfo(HDInsightActivityDebugInfoOption getDebugInfo) { + this.getDebugInfo = getDebugInfo; + return this; + } + + /** + * Get the mapper value. + * + * @return the mapper value + */ + public Object mapper() { + return this.mapper; + } + + /** + * Set the mapper value. + * + * @param mapper the mapper value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withMapper(Object mapper) { + this.mapper = mapper; + return this; + } + + /** + * Get the reducer value. + * + * @return the reducer value + */ + public Object reducer() { + return this.reducer; + } + + /** + * Set the reducer value. + * + * @param reducer the reducer value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withReducer(Object reducer) { + this.reducer = reducer; + return this; + } + + /** + * Get the input value. + * + * @return the input value + */ + public Object input() { + return this.input; + } + + /** + * Set the input value. + * + * @param input the input value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withInput(Object input) { + this.input = input; + return this; + } + + /** + * Get the output value. + * + * @return the output value + */ + public Object output() { + return this.output; + } + + /** + * Set the output value. + * + * @param output the output value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withOutput(Object output) { + this.output = output; + return this; + } + + /** + * Get the filePaths value. + * + * @return the filePaths value + */ + public List filePaths() { + return this.filePaths; + } + + /** + * Set the filePaths value. + * + * @param filePaths the filePaths value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withFilePaths(List filePaths) { + this.filePaths = filePaths; + return this; + } + + /** + * Get the fileLinkedService value. + * + * @return the fileLinkedService value + */ + public LinkedServiceReference fileLinkedService() { + return this.fileLinkedService; + } + + /** + * Set the fileLinkedService value. + * + * @param fileLinkedService the fileLinkedService value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withFileLinkedService(LinkedServiceReference fileLinkedService) { + this.fileLinkedService = fileLinkedService; + return this; + } + + /** + * Get the combiner value. + * + * @return the combiner value + */ + public Object combiner() { + return this.combiner; + } + + /** + * Set the combiner value. + * + * @param combiner the combiner value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withCombiner(Object combiner) { + this.combiner = combiner; + return this; + } + + /** + * Get the commandEnvironment value. + * + * @return the commandEnvironment value + */ + public List commandEnvironment() { + return this.commandEnvironment; + } + + /** + * Set the commandEnvironment value. + * + * @param commandEnvironment the commandEnvironment value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withCommandEnvironment(List commandEnvironment) { + this.commandEnvironment = commandEnvironment; + return this; + } + + /** + * Get the defines value. + * + * @return the defines value + */ + public Map defines() { + return this.defines; + } + + /** + * Set the defines value. + * + * @param defines the defines value to set + * @return the HDInsightStreamingActivity object itself. + */ + public HDInsightStreamingActivity withDefines(Map defines) { + this.defines = defines; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HdfsLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HdfsLinkedService.java new file mode 100644 index 00000000000..048b2a5351b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HdfsLinkedService.java @@ -0,0 +1,161 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Hadoop Distributed File System (HDFS) linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Hdfs") +@JsonFlatten +public class HdfsLinkedService extends LinkedServiceInner { + /** + * The URL of the HDFS service endpoint, e.g. + * http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * User name for Windows authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password for Windows authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * Get the url value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the HdfsLinkedService object itself. + */ + public HdfsLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HdfsSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HdfsSource.java new file mode 100644 index 00000000000..10d62554045 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HdfsSource.java @@ -0,0 +1,74 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity HDFS source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HdfsSource") +public class HdfsSource extends CopySource { + /** + * If true, files under the folder path will be read recursively. Default + * is true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "recursive") + private Object recursive; + + /** + * Specifies Distcp-related settings. + */ + @JsonProperty(value = "distcpSettings") + private DistcpSettings distcpSettings; + + /** + * Get the recursive value. + * + * @return the recursive value + */ + public Object recursive() { + return this.recursive; + } + + /** + * Set the recursive value. + * + * @param recursive the recursive value to set + * @return the HdfsSource object itself. + */ + public HdfsSource withRecursive(Object recursive) { + this.recursive = recursive; + return this; + } + + /** + * Get the distcpSettings value. + * + * @return the distcpSettings value + */ + public DistcpSettings distcpSettings() { + return this.distcpSettings; + } + + /** + * Set the distcpSettings value. + * + * @param distcpSettings the distcpSettings value to set + * @return the HdfsSource object itself. + */ + public HdfsSource withDistcpSettings(DistcpSettings distcpSettings) { + this.distcpSettings = distcpSettings; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveAuthenticationType.java new file mode 100644 index 00000000000..cbc676522f5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveAuthenticationType.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HiveAuthenticationType. + */ +public final class HiveAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for HiveAuthenticationType. */ + public static final HiveAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value Username for HiveAuthenticationType. */ + public static final HiveAuthenticationType USERNAME = fromString("Username"); + + /** Static value UsernameAndPassword for HiveAuthenticationType. */ + public static final HiveAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); + + /** Static value WindowsAzureHDInsightService for HiveAuthenticationType. */ + public static final HiveAuthenticationType WINDOWS_AZURE_HDINSIGHT_SERVICE = fromString("WindowsAzureHDInsightService"); + + /** + * Creates or finds a HiveAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding HiveAuthenticationType + */ + @JsonCreator + public static HiveAuthenticationType fromString(String name) { + return fromString(name, HiveAuthenticationType.class); + } + + /** + * @return known HiveAuthenticationType values + */ + public static Collection values() { + return values(HiveAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveLinkedService.java new file mode 100644 index 00000000000..c665b9de6ef --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveLinkedService.java @@ -0,0 +1,483 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Hive Server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Hive") +@JsonFlatten +public class HiveLinkedService extends LinkedServiceInner { + /** + * IP address or host name of the Hive server, separated by ';' for + * multiple hosts (only when serviceDiscoveryMode is enable). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The TCP port that the Hive server uses to listen for client connections. + */ + @JsonProperty(value = "typeProperties.port") + private Object port; + + /** + * The type of Hive server. Possible values include: 'HiveServer1', + * 'HiveServer2', 'HiveThriftServer'. + */ + @JsonProperty(value = "typeProperties.serverType") + private HiveServerType serverType; + + /** + * The transport protocol to use in the Thrift layer. Possible values + * include: 'Binary', 'SASL', 'HTTP '. + */ + @JsonProperty(value = "typeProperties.thriftTransportProtocol") + private HiveThriftTransportProtocol thriftTransportProtocol; + + /** + * The authentication method used to access the Hive server. Possible + * values include: 'Anonymous', 'Username', 'UsernameAndPassword', + * 'WindowsAzureHDInsightService'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private HiveAuthenticationType authenticationType; + + /** + * 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the serverType value. + * + * @return the serverType value + */ + public HiveServerType serverType() { + return this.serverType; + } + + /** + * Set the serverType value. + * + * @param serverType the serverType value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withServerType(HiveServerType serverType) { + this.serverType = serverType; + return this; + } + + /** + * Get the thriftTransportProtocol value. + * + * @return the thriftTransportProtocol value + */ + public HiveThriftTransportProtocol thriftTransportProtocol() { + return this.thriftTransportProtocol; + } + + /** + * Set the thriftTransportProtocol value. + * + * @param thriftTransportProtocol the thriftTransportProtocol value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withThriftTransportProtocol(HiveThriftTransportProtocol thriftTransportProtocol) { + this.thriftTransportProtocol = thriftTransportProtocol; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public HiveAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withAuthenticationType(HiveAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the serviceDiscoveryMode value. + * + * @return the serviceDiscoveryMode value + */ + public Object serviceDiscoveryMode() { + return this.serviceDiscoveryMode; + } + + /** + * Set the serviceDiscoveryMode value. + * + * @param serviceDiscoveryMode the serviceDiscoveryMode value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withServiceDiscoveryMode(Object serviceDiscoveryMode) { + this.serviceDiscoveryMode = serviceDiscoveryMode; + return this; + } + + /** + * Get the zooKeeperNameSpace value. + * + * @return the zooKeeperNameSpace value + */ + public Object zooKeeperNameSpace() { + return this.zooKeeperNameSpace; + } + + /** + * Set the zooKeeperNameSpace value. + * + * @param zooKeeperNameSpace the zooKeeperNameSpace value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withZooKeeperNameSpace(Object zooKeeperNameSpace) { + this.zooKeeperNameSpace = zooKeeperNameSpace; + return this; + } + + /** + * Get the useNativeQuery value. + * + * @return the useNativeQuery value + */ + public Object useNativeQuery() { + return this.useNativeQuery; + } + + /** + * Set the useNativeQuery value. + * + * @param useNativeQuery the useNativeQuery value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withUseNativeQuery(Object useNativeQuery) { + this.useNativeQuery = useNativeQuery; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the httpPath value. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the httpPath value. + * + * @param httpPath the httpPath value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the useSystemTrustStore value. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set the useSystemTrustStore value. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the allowHostNameCNMismatch value. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set the allowHostNameCNMismatch value. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HiveLinkedService object itself. + */ + public HiveLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveObjectDataset.java new file mode 100644 index 00000000000..4cc5f30acd2 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Hive Server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HiveObject") +public class HiveObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveServerType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveServerType.java new file mode 100644 index 00000000000..be53ca110ff --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveServerType.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HiveServerType. + */ +public final class HiveServerType extends ExpandableStringEnum { + /** Static value HiveServer1 for HiveServerType. */ + public static final HiveServerType HIVE_SERVER1 = fromString("HiveServer1"); + + /** Static value HiveServer2 for HiveServerType. */ + public static final HiveServerType HIVE_SERVER2 = fromString("HiveServer2"); + + /** Static value HiveThriftServer for HiveServerType. */ + public static final HiveServerType HIVE_THRIFT_SERVER = fromString("HiveThriftServer"); + + /** + * Creates or finds a HiveServerType from its string representation. + * @param name a name to look for + * @return the corresponding HiveServerType + */ + @JsonCreator + public static HiveServerType fromString(String name) { + return fromString(name, HiveServerType.class); + } + + /** + * @return known HiveServerType values + */ + public static Collection values() { + return values(HiveServerType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveSource.java new file mode 100644 index 00000000000..31dc5b3716f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Hive Server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HiveSource") +public class HiveSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the HiveSource object itself. + */ + public HiveSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveThriftTransportProtocol.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveThriftTransportProtocol.java new file mode 100644 index 00000000000..740d81adfc6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HiveThriftTransportProtocol.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HiveThriftTransportProtocol. + */ +public final class HiveThriftTransportProtocol extends ExpandableStringEnum { + /** Static value Binary for HiveThriftTransportProtocol. */ + public static final HiveThriftTransportProtocol BINARY = fromString("Binary"); + + /** Static value SASL for HiveThriftTransportProtocol. */ + public static final HiveThriftTransportProtocol SASL = fromString("SASL"); + + /** Static value HTTP for HiveThriftTransportProtocol. */ + public static final HiveThriftTransportProtocol HTTP_ = fromString("HTTP "); + + /** + * Creates or finds a HiveThriftTransportProtocol from its string representation. + * @param name a name to look for + * @return the corresponding HiveThriftTransportProtocol + */ + @JsonCreator + public static HiveThriftTransportProtocol fromString(String name) { + return fromString(name, HiveThriftTransportProtocol.class); + } + + /** + * @return known HiveThriftTransportProtocol values + */ + public static Collection values() { + return values(HiveThriftTransportProtocol.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpAuthenticationType.java new file mode 100644 index 00000000000..35f1fe1d574 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpAuthenticationType.java @@ -0,0 +1,50 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HttpAuthenticationType. + */ +public final class HttpAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for HttpAuthenticationType. */ + public static final HttpAuthenticationType BASIC = fromString("Basic"); + + /** Static value Anonymous for HttpAuthenticationType. */ + public static final HttpAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value Digest for HttpAuthenticationType. */ + public static final HttpAuthenticationType DIGEST = fromString("Digest"); + + /** Static value Windows for HttpAuthenticationType. */ + public static final HttpAuthenticationType WINDOWS = fromString("Windows"); + + /** Static value ClientCertificate for HttpAuthenticationType. */ + public static final HttpAuthenticationType CLIENT_CERTIFICATE = fromString("ClientCertificate"); + + /** + * Creates or finds a HttpAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding HttpAuthenticationType + */ + @JsonCreator + public static HttpAuthenticationType fromString(String name) { + return fromString(name, HttpAuthenticationType.class); + } + + /** + * @return known HttpAuthenticationType values + */ + public static Collection values() { + return values(HttpAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpDataset.java new file mode 100644 index 00000000000..9188611e1a4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpDataset.java @@ -0,0 +1,187 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * A file in an HTTP web server. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HttpFile") +@JsonFlatten +public class HttpDataset extends DatasetInner { + /** + * 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.relativeUrl") + private Object relativeUrl; + + /** + * The HTTP method for the HTTP request. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.requestMethod") + private Object requestMethod; + + /** + * The body for the HTTP request. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.additionalHeaders") + private Object additionalHeaders; + + /** + * The format of files. + */ + @JsonProperty(value = "typeProperties.format") + private DatasetStorageFormat format; + + /** + * The data compression method used on files. + */ + @JsonProperty(value = "typeProperties.compression") + private DatasetCompression compression; + + /** + * Get the relativeUrl value. + * + * @return the relativeUrl value + */ + public Object relativeUrl() { + return this.relativeUrl; + } + + /** + * Set the relativeUrl value. + * + * @param relativeUrl the relativeUrl value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withRelativeUrl(Object relativeUrl) { + this.relativeUrl = relativeUrl; + return this; + } + + /** + * Get the requestMethod value. + * + * @return the requestMethod value + */ + public Object requestMethod() { + return this.requestMethod; + } + + /** + * Set the requestMethod value. + * + * @param requestMethod the requestMethod value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withRequestMethod(Object requestMethod) { + this.requestMethod = requestMethod; + return this; + } + + /** + * Get the requestBody value. + * + * @return the requestBody value + */ + public Object requestBody() { + return this.requestBody; + } + + /** + * Set the requestBody value. + * + * @param requestBody the requestBody value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withRequestBody(Object requestBody) { + this.requestBody = requestBody; + return this; + } + + /** + * Get the additionalHeaders value. + * + * @return the additionalHeaders value + */ + public Object additionalHeaders() { + return this.additionalHeaders; + } + + /** + * Set the additionalHeaders value. + * + * @param additionalHeaders the additionalHeaders value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withAdditionalHeaders(Object additionalHeaders) { + this.additionalHeaders = additionalHeaders; + return this; + } + + /** + * Get the format value. + * + * @return the format value + */ + public DatasetStorageFormat format() { + return this.format; + } + + /** + * Set the format value. + * + * @param format the format value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withFormat(DatasetStorageFormat format) { + this.format = format; + return this; + } + + /** + * Get the compression value. + * + * @return the compression value + */ + public DatasetCompression compression() { + return this.compression; + } + + /** + * Set the compression value. + * + * @param compression the compression value to set + * @return the HttpDataset object itself. + */ + public HttpDataset withCompression(DatasetCompression compression) { + this.compression = compression; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpLinkedService.java new file mode 100644 index 00000000000..dafac89606e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpLinkedService.java @@ -0,0 +1,247 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for an HTTP source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HttpServer") +@JsonFlatten +public class HttpLinkedService extends LinkedServiceInner { + /** + * The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * The authentication type to be used to connect to the HTTP server. + * Possible values include: 'Basic', 'Anonymous', 'Digest', 'Windows', + * 'ClientCertificate'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private HttpAuthenticationType authenticationType; + + /** + * User name for Basic, Digest, or Windows authentication. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password for Basic, Digest, Windows, or ClientCertificate with + * EmbeddedCertData authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * 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 value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public HttpAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withAuthenticationType(HttpAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the embeddedCertData value. + * + * @return the embeddedCertData value + */ + public Object embeddedCertData() { + return this.embeddedCertData; + } + + /** + * Set the embeddedCertData value. + * + * @param embeddedCertData the embeddedCertData value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withEmbeddedCertData(Object embeddedCertData) { + this.embeddedCertData = embeddedCertData; + return this; + } + + /** + * Get the certThumbprint value. + * + * @return the certThumbprint value + */ + public Object certThumbprint() { + return this.certThumbprint; + } + + /** + * Set the certThumbprint value. + * + * @param certThumbprint the certThumbprint value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withCertThumbprint(Object certThumbprint) { + this.certThumbprint = certThumbprint; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the enableServerCertificateValidation value. + * + * @return the enableServerCertificateValidation value + */ + public Object enableServerCertificateValidation() { + return this.enableServerCertificateValidation; + } + + /** + * Set the enableServerCertificateValidation value. + * + * @param enableServerCertificateValidation the enableServerCertificateValidation value to set + * @return the HttpLinkedService object itself. + */ + public HttpLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) { + this.enableServerCertificateValidation = enableServerCertificateValidation; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpSource.java new file mode 100644 index 00000000000..fe7635c1de4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HttpSource.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for an HTTP file. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HttpSource") +public class HttpSource extends CopySource { + /** + * Specifies the timeout for a HTTP client to get HTTP response from HTTP + * server. The default value is equivalent to + * System.Net.HttpWebRequest.Timeout. Type: string (or Expression with + * resultType string), pattern: + * ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "httpRequestTimeout") + private Object httpRequestTimeout; + + /** + * Get the httpRequestTimeout value. + * + * @return the httpRequestTimeout value + */ + public Object httpRequestTimeout() { + return this.httpRequestTimeout; + } + + /** + * Set the httpRequestTimeout value. + * + * @param httpRequestTimeout the httpRequestTimeout value to set + * @return the HttpSource object itself. + */ + public HttpSource withHttpRequestTimeout(Object httpRequestTimeout) { + this.httpRequestTimeout = httpRequestTimeout; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotLinkedService.java new file mode 100644 index 00000000000..11f69c7cae3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotLinkedService.java @@ -0,0 +1,240 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Hubspot Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Hubspot") +@JsonFlatten +public class HubspotLinkedService extends LinkedServiceInner { + /** + * The client ID associated with your Hubspot application. + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The client secret associated with your Hubspot application. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; + + /** + * The access token obtained when initially authenticating your OAuth + * integration. + */ + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; + + /** + * The refresh token obtained when initially authenticating your OAuth + * integration. + */ + @JsonProperty(value = "typeProperties.refreshToken") + private SecretBase refreshToken; + + /** + * 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 clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the accessToken value. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the accessToken value. + * + * @param accessToken the accessToken value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the refreshToken value. + * + * @return the refreshToken value + */ + public SecretBase refreshToken() { + return this.refreshToken; + } + + /** + * Set the refreshToken value. + * + * @param refreshToken the refreshToken value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withRefreshToken(SecretBase refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the HubspotLinkedService object itself. + */ + public HubspotLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotObjectDataset.java new file mode 100644 index 00000000000..23d384d9be4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Hubspot Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HubspotObject") +public class HubspotObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotSource.java new file mode 100644 index 00000000000..003d1a364c8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/HubspotSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Hubspot Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("HubspotSource") +public class HubspotSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the HubspotSource object itself. + */ + public HubspotSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IfConditionActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IfConditionActivity.java new file mode 100644 index 00000000000..d3b8104f089 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IfConditionActivity.java @@ -0,0 +1,110 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * This activity evaluates a boolean expression and executes either the + * activities under the ifTrueActivities property or the ifFalseActivities + * property depending on the result of the expression. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("IfCondition") +@JsonFlatten +public class IfConditionActivity extends ControlActivity { + /** + * 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.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 = "typeProperties.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 = "typeProperties.ifFalseActivities") + private List ifFalseActivities; + + /** + * Get the expression value. + * + * @return the expression value + */ + public Expression expression() { + return this.expression; + } + + /** + * Set the expression value. + * + * @param expression the expression value to set + * @return the IfConditionActivity object itself. + */ + public IfConditionActivity withExpression(Expression expression) { + this.expression = expression; + return this; + } + + /** + * Get the ifTrueActivities value. + * + * @return the ifTrueActivities value + */ + public List ifTrueActivities() { + return this.ifTrueActivities; + } + + /** + * Set the ifTrueActivities value. + * + * @param ifTrueActivities the ifTrueActivities value to set + * @return the IfConditionActivity object itself. + */ + public IfConditionActivity withIfTrueActivities(List ifTrueActivities) { + this.ifTrueActivities = ifTrueActivities; + return this; + } + + /** + * Get the ifFalseActivities value. + * + * @return the ifFalseActivities value + */ + public List ifFalseActivities() { + return this.ifFalseActivities; + } + + /** + * Set the ifFalseActivities value. + * + * @param ifFalseActivities the ifFalseActivities value to set + * @return the IfConditionActivity object itself. + */ + public IfConditionActivity withIfFalseActivities(List ifFalseActivities) { + this.ifFalseActivities = ifFalseActivities; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaAuthenticationType.java new file mode 100644 index 00000000000..746f4808bdf --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaAuthenticationType.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ImpalaAuthenticationType. + */ +public final class ImpalaAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for ImpalaAuthenticationType. */ + public static final ImpalaAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value SASLUsername for ImpalaAuthenticationType. */ + public static final ImpalaAuthenticationType SASLUSERNAME = fromString("SASLUsername"); + + /** Static value UsernameAndPassword for ImpalaAuthenticationType. */ + public static final ImpalaAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); + + /** + * Creates or finds a ImpalaAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding ImpalaAuthenticationType + */ + @JsonCreator + public static ImpalaAuthenticationType fromString(String name) { + return fromString(name, ImpalaAuthenticationType.class); + } + + /** + * @return known ImpalaAuthenticationType values + */ + public static Collection values() { + return values(ImpalaAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaLinkedService.java new file mode 100644 index 00000000000..a0d0c91df59 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaLinkedService.java @@ -0,0 +1,325 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Impala server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Impala") +@JsonFlatten +public class ImpalaLinkedService extends LinkedServiceInner { + /** + * The IP address or host name of the Impala server. (i.e. + * 192.168.222.160). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.port") + private Object port; + + /** + * The authentication type to use. Possible values include: 'Anonymous', + * 'SASLUsername', 'UsernameAndPassword'. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.username") + private Object username; + + /** + * The password corresponding to the user name when using + * UsernameAndPassword. + */ + @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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public ImpalaAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the useSystemTrustStore value. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set the useSystemTrustStore value. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the allowHostNameCNMismatch value. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set the allowHostNameCNMismatch value. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ImpalaLinkedService object itself. + */ + public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaObjectDataset.java new file mode 100644 index 00000000000..db9d093ac8e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Impala server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ImpalaObject") +public class ImpalaObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaSource.java new file mode 100644 index 00000000000..c29db3475b3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ImpalaSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Impala server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ImpalaSource") +public class ImpalaSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ImpalaSource object itself. + */ + public ImpalaSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeAuthKeyName.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeAuthKeyName.java new file mode 100644 index 00000000000..cbed07c7bb9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeAuthKeyName.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeAuthKeyName. + */ +public final class IntegrationRuntimeAuthKeyName extends ExpandableStringEnum { + /** Static value authKey1 for IntegrationRuntimeAuthKeyName. */ + public static final IntegrationRuntimeAuthKeyName AUTH_KEY1 = fromString("authKey1"); + + /** Static value authKey2 for IntegrationRuntimeAuthKeyName. */ + public static final IntegrationRuntimeAuthKeyName AUTH_KEY2 = fromString("authKey2"); + + /** + * Creates or finds a IntegrationRuntimeAuthKeyName from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeAuthKeyName + */ + @JsonCreator + public static IntegrationRuntimeAuthKeyName fromString(String name) { + return fromString(name, IntegrationRuntimeAuthKeyName.class); + } + + /** + * @return known IntegrationRuntimeAuthKeyName values + */ + public static Collection values() { + return values(IntegrationRuntimeAuthKeyName.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeAutoUpdate.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeAutoUpdate.java new file mode 100644 index 00000000000..df3b77a4794 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeAutoUpdate.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeAutoUpdate. + */ +public final class IntegrationRuntimeAutoUpdate extends ExpandableStringEnum { + /** Static value On for IntegrationRuntimeAutoUpdate. */ + public static final IntegrationRuntimeAutoUpdate ON = fromString("On"); + + /** Static value Off for IntegrationRuntimeAutoUpdate. */ + public static final IntegrationRuntimeAutoUpdate OFF = fromString("Off"); + + /** + * Creates or finds a IntegrationRuntimeAutoUpdate from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeAutoUpdate + */ + @JsonCreator + public static IntegrationRuntimeAutoUpdate fromString(String name) { + return fromString(name, IntegrationRuntimeAutoUpdate.class); + } + + /** + * @return known IntegrationRuntimeAutoUpdate values + */ + public static Collection values() { + return values(IntegrationRuntimeAutoUpdate.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeComputeProperties.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeComputeProperties.java new file mode 100644 index 00000000000..83c57cdbce7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeComputeProperties.java @@ -0,0 +1,177 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The compute resource properties for managed integration runtime. + */ +public class IntegrationRuntimeComputeProperties { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The location for managed integration runtime. The supported regions + * could be found on + * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. + */ + @JsonProperty(value = "location") + private String location; + + /** + * The node size requirement to managed integration runtime. + */ + @JsonProperty(value = "nodeSize") + private String nodeSize; + + /** + * The required number of nodes for managed integration runtime. + */ + @JsonProperty(value = "numberOfNodes") + private Integer numberOfNodes; + + /** + * Maximum parallel executions count per node for managed integration + * runtime. + */ + @JsonProperty(value = "maxParallelExecutionsPerNode") + private Integer maxParallelExecutionsPerNode; + + /** + * VNet properties for managed integration runtime. + */ + @JsonProperty(value = "vNetProperties") + private IntegrationRuntimeVNetProperties vNetProperties; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the nodeSize value. + * + * @return the nodeSize value + */ + public String nodeSize() { + return this.nodeSize; + } + + /** + * Set the nodeSize value. + * + * @param nodeSize the nodeSize value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withNodeSize(String nodeSize) { + this.nodeSize = nodeSize; + return this; + } + + /** + * Get the numberOfNodes value. + * + * @return the numberOfNodes value + */ + public Integer numberOfNodes() { + return this.numberOfNodes; + } + + /** + * Set the numberOfNodes value. + * + * @param numberOfNodes the numberOfNodes value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withNumberOfNodes(Integer numberOfNodes) { + this.numberOfNodes = numberOfNodes; + return this; + } + + /** + * Get the maxParallelExecutionsPerNode value. + * + * @return the maxParallelExecutionsPerNode value + */ + public Integer maxParallelExecutionsPerNode() { + return this.maxParallelExecutionsPerNode; + } + + /** + * Set the maxParallelExecutionsPerNode value. + * + * @param maxParallelExecutionsPerNode the maxParallelExecutionsPerNode value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withMaxParallelExecutionsPerNode(Integer maxParallelExecutionsPerNode) { + this.maxParallelExecutionsPerNode = maxParallelExecutionsPerNode; + return this; + } + + /** + * Get the vNetProperties value. + * + * @return the vNetProperties value + */ + public IntegrationRuntimeVNetProperties vNetProperties() { + return this.vNetProperties; + } + + /** + * Set the vNetProperties value. + * + * @param vNetProperties the vNetProperties value to set + * @return the IntegrationRuntimeComputeProperties object itself. + */ + public IntegrationRuntimeComputeProperties withVNetProperties(IntegrationRuntimeVNetProperties vNetProperties) { + this.vNetProperties = vNetProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeCustomSetupScriptProperties.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeCustomSetupScriptProperties.java new file mode 100644 index 00000000000..130c75088be --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeCustomSetupScriptProperties.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Custom setup script properties for a managed dedicated integration runtime. + */ +public class IntegrationRuntimeCustomSetupScriptProperties { + /** + * The URI of the Azure blob container that contains the custom setup + * script. + */ + @JsonProperty(value = "blobContainerUri") + private String blobContainerUri; + + /** + * The SAS token of the Azure blob container. + */ + @JsonProperty(value = "sasToken") + private SecureString sasToken; + + /** + * Get the blobContainerUri value. + * + * @return the blobContainerUri value + */ + public String blobContainerUri() { + return this.blobContainerUri; + } + + /** + * Set the blobContainerUri value. + * + * @param blobContainerUri the blobContainerUri value to set + * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. + */ + public IntegrationRuntimeCustomSetupScriptProperties withBlobContainerUri(String blobContainerUri) { + this.blobContainerUri = blobContainerUri; + return this; + } + + /** + * Get the sasToken value. + * + * @return the sasToken value + */ + public SecureString sasToken() { + return this.sasToken; + } + + /** + * Set the sasToken value. + * + * @param sasToken the sasToken value to set + * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. + */ + public IntegrationRuntimeCustomSetupScriptProperties withSasToken(SecureString sasToken) { + this.sasToken = sasToken; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeEdition.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeEdition.java new file mode 100644 index 00000000000..9141d2d4812 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeEdition.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeEdition. + */ +public final class IntegrationRuntimeEdition extends ExpandableStringEnum { + /** Static value Standard for IntegrationRuntimeEdition. */ + public static final IntegrationRuntimeEdition STANDARD = fromString("Standard"); + + /** Static value Enterprise for IntegrationRuntimeEdition. */ + public static final IntegrationRuntimeEdition ENTERPRISE = fromString("Enterprise"); + + /** + * Creates or finds a IntegrationRuntimeEdition from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeEdition + */ + @JsonCreator + public static IntegrationRuntimeEdition fromString(String name) { + return fromString(name, IntegrationRuntimeEdition.class); + } + + /** + * @return known IntegrationRuntimeEdition values + */ + public static Collection values() { + return values(IntegrationRuntimeEdition.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeInternalChannelEncryptionMode.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeInternalChannelEncryptionMode.java new file mode 100644 index 00000000000..75f1e2e26ac --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeInternalChannelEncryptionMode.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeInternalChannelEncryptionMode. + */ +public final class IntegrationRuntimeInternalChannelEncryptionMode extends ExpandableStringEnum { + /** Static value NotSet for IntegrationRuntimeInternalChannelEncryptionMode. */ + public static final IntegrationRuntimeInternalChannelEncryptionMode NOT_SET = fromString("NotSet"); + + /** Static value SslEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. */ + public static final IntegrationRuntimeInternalChannelEncryptionMode SSL_ENCRYPTED = fromString("SslEncrypted"); + + /** Static value NotEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. */ + public static final IntegrationRuntimeInternalChannelEncryptionMode NOT_ENCRYPTED = fromString("NotEncrypted"); + + /** + * Creates or finds a IntegrationRuntimeInternalChannelEncryptionMode from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeInternalChannelEncryptionMode + */ + @JsonCreator + public static IntegrationRuntimeInternalChannelEncryptionMode fromString(String name) { + return fromString(name, IntegrationRuntimeInternalChannelEncryptionMode.class); + } + + /** + * @return known IntegrationRuntimeInternalChannelEncryptionMode values + */ + public static Collection values() { + return values(IntegrationRuntimeInternalChannelEncryptionMode.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeLicenseType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeLicenseType.java new file mode 100644 index 00000000000..fa296d58fee --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeLicenseType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeLicenseType. + */ +public final class IntegrationRuntimeLicenseType extends ExpandableStringEnum { + /** Static value BasePrice for IntegrationRuntimeLicenseType. */ + public static final IntegrationRuntimeLicenseType BASE_PRICE = fromString("BasePrice"); + + /** Static value LicenseIncluded for IntegrationRuntimeLicenseType. */ + public static final IntegrationRuntimeLicenseType LICENSE_INCLUDED = fromString("LicenseIncluded"); + + /** + * Creates or finds a IntegrationRuntimeLicenseType from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeLicenseType + */ + @JsonCreator + public static IntegrationRuntimeLicenseType fromString(String name) { + return fromString(name, IntegrationRuntimeLicenseType.class); + } + + /** + * @return known IntegrationRuntimeLicenseType values + */ + public static Collection values() { + return values(IntegrationRuntimeLicenseType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeNodeMonitoringData.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeNodeMonitoringData.java new file mode 100644 index 00000000000..c9539dcb7be --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeNodeMonitoringData.java @@ -0,0 +1,164 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Monitoring data for integration runtime node. + */ +public class IntegrationRuntimeNodeMonitoringData { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Name of the integration runtime node. + */ + @JsonProperty(value = "nodeName", access = JsonProperty.Access.WRITE_ONLY) + private String nodeName; + + /** + * Available memory (MB) on the integration runtime node. + */ + @JsonProperty(value = "availableMemoryInMB", access = JsonProperty.Access.WRITE_ONLY) + private Integer availableMemoryInMB; + + /** + * CPU percentage on the integration runtime node. + */ + @JsonProperty(value = "cpuUtilization", access = JsonProperty.Access.WRITE_ONLY) + private Double cpuUtilization; + + /** + * Maximum concurrent jobs on the integration runtime node. + */ + @JsonProperty(value = "concurrentJobsLimit", access = JsonProperty.Access.WRITE_ONLY) + private Integer concurrentJobsLimit; + + /** + * The number of jobs currently running on the integration runtime node. + */ + @JsonProperty(value = "concurrentJobsRunning", access = JsonProperty.Access.WRITE_ONLY) + private Integer concurrentJobsRunning; + + /** + * The maximum concurrent jobs in this integration runtime. + */ + @JsonProperty(value = "maxConcurrentJobs", access = JsonProperty.Access.WRITE_ONLY) + private Integer maxConcurrentJobs; + + /** + * Sent bytes on the integration runtime node. + */ + @JsonProperty(value = "sentBytes", access = JsonProperty.Access.WRITE_ONLY) + private Double sentBytes; + + /** + * Received bytes on the integration runtime node. + */ + @JsonProperty(value = "receivedBytes", access = JsonProperty.Access.WRITE_ONLY) + private Double receivedBytes; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeNodeMonitoringData object itself. + */ + public IntegrationRuntimeNodeMonitoringData withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the nodeName value. + * + * @return the nodeName value + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Get the availableMemoryInMB value. + * + * @return the availableMemoryInMB value + */ + public Integer availableMemoryInMB() { + return this.availableMemoryInMB; + } + + /** + * Get the cpuUtilization value. + * + * @return the cpuUtilization value + */ + public Double cpuUtilization() { + return this.cpuUtilization; + } + + /** + * Get the concurrentJobsLimit value. + * + * @return the concurrentJobsLimit value + */ + public Integer concurrentJobsLimit() { + return this.concurrentJobsLimit; + } + + /** + * Get the concurrentJobsRunning value. + * + * @return the concurrentJobsRunning value + */ + public Integer concurrentJobsRunning() { + return this.concurrentJobsRunning; + } + + /** + * Get the maxConcurrentJobs value. + * + * @return the maxConcurrentJobs value + */ + public Integer maxConcurrentJobs() { + return this.maxConcurrentJobs; + } + + /** + * Get the sentBytes value. + * + * @return the sentBytes value + */ + public Double sentBytes() { + return this.sentBytes; + } + + /** + * Get the receivedBytes value. + * + * @return the receivedBytes value + */ + public Double receivedBytes() { + return this.receivedBytes; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeReference.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeReference.java new file mode 100644 index 00000000000..4da14d3c004 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeReference.java @@ -0,0 +1,103 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Integration runtime reference type. + */ +public class IntegrationRuntimeReference { + /** + * Type of integration runtime. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Reference integration runtime name. + */ + @JsonProperty(value = "referenceName", required = true) + private String referenceName; + + /** + * Arguments for integration runtime. + */ + @JsonProperty(value = "parameters") + private Map parameters; + + /** + * Creates an instance of IntegrationRuntimeReference class. + */ + public IntegrationRuntimeReference() { + type = "IntegrationRuntimeReference"; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the IntegrationRuntimeReference object itself. + */ + public IntegrationRuntimeReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get the referenceName value. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set the referenceName value. + * + * @param referenceName the referenceName value to set + * @return the IntegrationRuntimeReference object itself. + */ + public IntegrationRuntimeReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the IntegrationRuntimeReference object itself. + */ + public IntegrationRuntimeReference withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeRegenerateKeyParameters.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeRegenerateKeyParameters.java new file mode 100644 index 00000000000..1d25bd10483 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeRegenerateKeyParameters.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters to regenerate the authentication key. + */ +public class IntegrationRuntimeRegenerateKeyParameters { + /** + * The name of the authentication key to regenerate. Possible values + * include: 'authKey1', 'authKey2'. + */ + @JsonProperty(value = "keyName") + private IntegrationRuntimeAuthKeyName keyName; + + /** + * Get the keyName value. + * + * @return the keyName value + */ + public IntegrationRuntimeAuthKeyName keyName() { + return this.keyName; + } + + /** + * Set the keyName value. + * + * @param keyName the keyName value to set + * @return the IntegrationRuntimeRegenerateKeyParameters object itself. + */ + public IntegrationRuntimeRegenerateKeyParameters withKeyName(IntegrationRuntimeAuthKeyName keyName) { + this.keyName = keyName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisCatalogInfo.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisCatalogInfo.java new file mode 100644 index 00000000000..a11e067c62d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisCatalogInfo.java @@ -0,0 +1,151 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Catalog information for managed dedicated integration runtime. + */ +public class IntegrationRuntimeSsisCatalogInfo { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The catalog database server URL. + */ + @JsonProperty(value = "catalogServerEndpoint") + private String catalogServerEndpoint; + + /** + * The administrator user name of catalog database. + */ + @JsonProperty(value = "catalogAdminUserName") + private String catalogAdminUserName; + + /** + * The password of the administrator user account of the catalog database. + */ + @JsonProperty(value = "catalogAdminPassword") + private SecureString catalogAdminPassword; + + /** + * The pricing tier for the catalog database. The valid values could be + * found in + * https://azure.microsoft.com/en-us/pricing/details/sql-database/. + * Possible values include: 'Basic', 'Standard', 'Premium', 'PremiumRS'. + */ + @JsonProperty(value = "catalogPricingTier") + private IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the catalogServerEndpoint value. + * + * @return the catalogServerEndpoint value + */ + public String catalogServerEndpoint() { + return this.catalogServerEndpoint; + } + + /** + * Set the catalogServerEndpoint value. + * + * @param catalogServerEndpoint the catalogServerEndpoint value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogServerEndpoint(String catalogServerEndpoint) { + this.catalogServerEndpoint = catalogServerEndpoint; + return this; + } + + /** + * Get the catalogAdminUserName value. + * + * @return the catalogAdminUserName value + */ + public String catalogAdminUserName() { + return this.catalogAdminUserName; + } + + /** + * Set the catalogAdminUserName value. + * + * @param catalogAdminUserName the catalogAdminUserName value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogAdminUserName(String catalogAdminUserName) { + this.catalogAdminUserName = catalogAdminUserName; + return this; + } + + /** + * Get the catalogAdminPassword value. + * + * @return the catalogAdminPassword value + */ + public SecureString catalogAdminPassword() { + return this.catalogAdminPassword; + } + + /** + * Set the catalogAdminPassword value. + * + * @param catalogAdminPassword the catalogAdminPassword value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogAdminPassword(SecureString catalogAdminPassword) { + this.catalogAdminPassword = catalogAdminPassword; + return this; + } + + /** + * Get the catalogPricingTier value. + * + * @return the catalogPricingTier value + */ + public IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier() { + return this.catalogPricingTier; + } + + /** + * Set the catalogPricingTier value. + * + * @param catalogPricingTier the catalogPricingTier value to set + * @return the IntegrationRuntimeSsisCatalogInfo object itself. + */ + public IntegrationRuntimeSsisCatalogInfo withCatalogPricingTier(IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier) { + this.catalogPricingTier = catalogPricingTier; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisCatalogPricingTier.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisCatalogPricingTier.java new file mode 100644 index 00000000000..09ec5b799a4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisCatalogPricingTier.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeSsisCatalogPricingTier. + */ +public final class IntegrationRuntimeSsisCatalogPricingTier extends ExpandableStringEnum { + /** Static value Basic for IntegrationRuntimeSsisCatalogPricingTier. */ + public static final IntegrationRuntimeSsisCatalogPricingTier BASIC = fromString("Basic"); + + /** Static value Standard for IntegrationRuntimeSsisCatalogPricingTier. */ + public static final IntegrationRuntimeSsisCatalogPricingTier STANDARD = fromString("Standard"); + + /** Static value Premium for IntegrationRuntimeSsisCatalogPricingTier. */ + public static final IntegrationRuntimeSsisCatalogPricingTier PREMIUM = fromString("Premium"); + + /** Static value PremiumRS for IntegrationRuntimeSsisCatalogPricingTier. */ + public static final IntegrationRuntimeSsisCatalogPricingTier PREMIUM_RS = fromString("PremiumRS"); + + /** + * Creates or finds a IntegrationRuntimeSsisCatalogPricingTier from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeSsisCatalogPricingTier + */ + @JsonCreator + public static IntegrationRuntimeSsisCatalogPricingTier fromString(String name) { + return fromString(name, IntegrationRuntimeSsisCatalogPricingTier.class); + } + + /** + * @return known IntegrationRuntimeSsisCatalogPricingTier values + */ + public static Collection values() { + return values(IntegrationRuntimeSsisCatalogPricingTier.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisProperties.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisProperties.java new file mode 100644 index 00000000000..471ad17af99 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeSsisProperties.java @@ -0,0 +1,151 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS properties for managed integration runtime. + */ +public class IntegrationRuntimeSsisProperties { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Catalog information for managed dedicated integration runtime. + */ + @JsonProperty(value = "catalogInfo") + private IntegrationRuntimeSsisCatalogInfo catalogInfo; + + /** + * License type for bringing your own license scenario. Possible values + * include: 'BasePrice', 'LicenseIncluded'. + */ + @JsonProperty(value = "licenseType") + private IntegrationRuntimeLicenseType licenseType; + + /** + * Custom setup script properties for a managed dedicated integration + * runtime. + */ + @JsonProperty(value = "customSetupScriptProperties") + private IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties; + + /** + * The edition for the SSIS Integration Runtime. Possible values include: + * 'Standard', 'Enterprise'. + */ + @JsonProperty(value = "edition") + private IntegrationRuntimeEdition edition; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the catalogInfo value. + * + * @return the catalogInfo value + */ + public IntegrationRuntimeSsisCatalogInfo catalogInfo() { + return this.catalogInfo; + } + + /** + * Set the catalogInfo value. + * + * @param catalogInfo the catalogInfo value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withCatalogInfo(IntegrationRuntimeSsisCatalogInfo catalogInfo) { + this.catalogInfo = catalogInfo; + return this; + } + + /** + * Get the licenseType value. + * + * @return the licenseType value + */ + public IntegrationRuntimeLicenseType licenseType() { + return this.licenseType; + } + + /** + * Set the licenseType value. + * + * @param licenseType the licenseType value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withLicenseType(IntegrationRuntimeLicenseType licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * Get the customSetupScriptProperties value. + * + * @return the customSetupScriptProperties value + */ + public IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties() { + return this.customSetupScriptProperties; + } + + /** + * Set the customSetupScriptProperties value. + * + * @param customSetupScriptProperties the customSetupScriptProperties value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withCustomSetupScriptProperties(IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties) { + this.customSetupScriptProperties = customSetupScriptProperties; + return this; + } + + /** + * Get the edition value. + * + * @return the edition value + */ + public IntegrationRuntimeEdition edition() { + return this.edition; + } + + /** + * Set the edition value. + * + * @param edition the edition value to set + * @return the IntegrationRuntimeSsisProperties object itself. + */ + public IntegrationRuntimeSsisProperties withEdition(IntegrationRuntimeEdition edition) { + this.edition = edition; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeState.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeState.java new file mode 100644 index 00000000000..441fcc6cbd0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeState.java @@ -0,0 +1,62 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeState. + */ +public final class IntegrationRuntimeState extends ExpandableStringEnum { + /** Static value Initial for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState INITIAL = fromString("Initial"); + + /** Static value Stopped for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState STOPPED = fromString("Stopped"); + + /** Static value Started for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState STARTED = fromString("Started"); + + /** Static value Starting for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState STARTING = fromString("Starting"); + + /** Static value Stopping for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState STOPPING = fromString("Stopping"); + + /** Static value NeedRegistration for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState NEED_REGISTRATION = fromString("NeedRegistration"); + + /** Static value Online for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState ONLINE = fromString("Online"); + + /** Static value Limited for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState LIMITED = fromString("Limited"); + + /** Static value Offline for IntegrationRuntimeState. */ + public static final IntegrationRuntimeState OFFLINE = fromString("Offline"); + + /** + * Creates or finds a IntegrationRuntimeState from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeState + */ + @JsonCreator + public static IntegrationRuntimeState fromString(String name) { + return fromString(name, IntegrationRuntimeState.class); + } + + /** + * @return known IntegrationRuntimeState values + */ + public static Collection values() { + return values(IntegrationRuntimeState.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeStatus.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeStatus.java new file mode 100644 index 00000000000..5c897b6638e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeStatus.java @@ -0,0 +1,85 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Integration runtime status. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("IntegrationRuntimeStatus") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntimeStatus.class), + @JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntimeStatus.class) +}) +public class IntegrationRuntimeStatus { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The data factory name which the integration runtime belong to. + */ + @JsonProperty(value = "dataFactoryName", access = JsonProperty.Access.WRITE_ONLY) + private String dataFactoryName; + + /** + * The state of integration runtime. Possible values include: 'Initial', + * 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', + * 'Online', 'Limited', 'Offline'. + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private IntegrationRuntimeState state; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeStatus object itself. + */ + public IntegrationRuntimeStatus withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the dataFactoryName value. + * + * @return the dataFactoryName value + */ + public String dataFactoryName() { + return this.dataFactoryName; + } + + /** + * Get the state value. + * + * @return the state value + */ + public IntegrationRuntimeState state() { + return this.state; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeStatusListResponse.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeStatusListResponse.java new file mode 100644 index 00000000000..91744c9351e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeStatusListResponse.java @@ -0,0 +1,71 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.microsoft.azure.management.datafactory.implementation.IntegrationRuntimeStatusResponseInner; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list of integration runtime status. + */ +public class IntegrationRuntimeStatusListResponse { + /** + * List of integration runtime status. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /** + * The link to the next page of results, if any remaining results exist. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value value. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the value value. + * + * @param value the value value to set + * @return the IntegrationRuntimeStatusListResponse object itself. + */ + public IntegrationRuntimeStatusListResponse withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink value. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink value. + * + * @param nextLink the nextLink value to set + * @return the IntegrationRuntimeStatusListResponse object itself. + */ + public IntegrationRuntimeStatusListResponse withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeType.java new file mode 100644 index 00000000000..151034c01c1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeType. + */ +public final class IntegrationRuntimeType extends ExpandableStringEnum { + /** Static value Managed for IntegrationRuntimeType. */ + public static final IntegrationRuntimeType MANAGED = fromString("Managed"); + + /** Static value SelfHosted for IntegrationRuntimeType. */ + public static final IntegrationRuntimeType SELF_HOSTED = fromString("SelfHosted"); + + /** + * Creates or finds a IntegrationRuntimeType from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeType + */ + @JsonCreator + public static IntegrationRuntimeType fromString(String name) { + return fromString(name, IntegrationRuntimeType.class); + } + + /** + * @return known IntegrationRuntimeType values + */ + public static Collection values() { + return values(IntegrationRuntimeType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeUpdateResult.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeUpdateResult.java new file mode 100644 index 00000000000..196f45b9600 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeUpdateResult.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for IntegrationRuntimeUpdateResult. + */ +public final class IntegrationRuntimeUpdateResult extends ExpandableStringEnum { + /** Static value Succeed for IntegrationRuntimeUpdateResult. */ + public static final IntegrationRuntimeUpdateResult SUCCEED = fromString("Succeed"); + + /** Static value Fail for IntegrationRuntimeUpdateResult. */ + public static final IntegrationRuntimeUpdateResult FAIL = fromString("Fail"); + + /** + * Creates or finds a IntegrationRuntimeUpdateResult from its string representation. + * @param name a name to look for + * @return the corresponding IntegrationRuntimeUpdateResult + */ + @JsonCreator + public static IntegrationRuntimeUpdateResult fromString(String name) { + return fromString(name, IntegrationRuntimeUpdateResult.class); + } + + /** + * @return known IntegrationRuntimeUpdateResult values + */ + public static Collection values() { + return values(IntegrationRuntimeUpdateResult.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeVNetProperties.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeVNetProperties.java new file mode 100644 index 00000000000..7b69047467d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/IntegrationRuntimeVNetProperties.java @@ -0,0 +1,96 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * VNet properties for managed integration runtime. + */ +public class IntegrationRuntimeVNetProperties { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The ID of the VNet that this integration runtime will join. + */ + @JsonProperty(value = "vNetId") + private String vNetId; + + /** + * The name of the subnet this integration runtime will join. + */ + @JsonProperty(value = "subnet") + private String subnet; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeVNetProperties object itself. + */ + public IntegrationRuntimeVNetProperties withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the vNetId value. + * + * @return the vNetId value + */ + public String vNetId() { + return this.vNetId; + } + + /** + * Set the vNetId value. + * + * @param vNetId the vNetId value to set + * @return the IntegrationRuntimeVNetProperties object itself. + */ + public IntegrationRuntimeVNetProperties withVNetId(String vNetId) { + this.vNetId = vNetId; + return this; + } + + /** + * Get the subnet value. + * + * @return the subnet value + */ + public String subnet() { + return this.subnet; + } + + /** + * Set the subnet value. + * + * @param subnet the subnet value to set + * @return the IntegrationRuntimeVNetProperties object itself. + */ + public IntegrationRuntimeVNetProperties withSubnet(String subnet) { + this.subnet = subnet; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraLinkedService.java new file mode 100644 index 00000000000..5cd089b2b95 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraLinkedService.java @@ -0,0 +1,242 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Jira Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Jira") +@JsonFlatten +public class JiraLinkedService extends LinkedServiceInner { + /** + * The IP address or host name of the Jira service. (e.g. + * jira.example.com). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.port") + private Object port; + + /** + * The user name that you use to access Jira Service. + */ + @JsonProperty(value = "typeProperties.username", required = true) + private Object username; + + /** + * The password corresponding to the user name that you provided in the + * username field. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * 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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the JiraLinkedService object itself. + */ + public JiraLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraObjectDataset.java new file mode 100644 index 00000000000..539bedb9808 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Jira Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("JiraObject") +public class JiraObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraSource.java new file mode 100644 index 00000000000..533a9c5bf84 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JiraSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Jira Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("JiraSource") +public class JiraSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the JiraSource object itself. + */ + public JiraSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JsonFormat.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JsonFormat.java new file mode 100644 index 00000000000..d6be739604e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JsonFormat.java @@ -0,0 +1,166 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The data stored in JSON format. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("JsonFormat") +public class JsonFormat extends DatasetStorageFormat { + /** + * File pattern of JSON. To be more specific, the way of separating a + * collection of JSON objects. The default value is 'setOfObjects'. It is + * case-sensitive. Possible values include: 'setOfObjects', + * 'arrayOfObjects'. + */ + @JsonProperty(value = "filePattern") + private JsonFormatFilePattern filePattern; + + /** + * The character used to separate nesting levels. Default value is '.' + * (dot). Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "nestingSeparator") + private Object nestingSeparator; + + /** + * The code page name of the preferred encoding. If not provided, the + * default value is 'utf-8', unless the byte order mark (BOM) denotes + * another Unicode encoding. The full list of supported values can be found + * in the 'Name' column of the table of encodings in the following + * reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "encodingName") + private Object encodingName; + + /** + * The JSONPath of the JSON array element to be flattened. Example: + * "$.ArrayPath". Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "jsonNodeReference") + private Object jsonNodeReference; + + /** + * The JSONPath definition for each column mapping with a customized column + * name to extract data from JSON file. For fields under root object, start + * with "$"; for fields inside the array chosen by jsonNodeReference + * property, start from the array element. Example: {"Column1": + * "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or + * Expression with resultType object). + */ + @JsonProperty(value = "jsonPathDefinition") + private Object jsonPathDefinition; + + /** + * Get the filePattern value. + * + * @return the filePattern value + */ + public JsonFormatFilePattern filePattern() { + return this.filePattern; + } + + /** + * Set the filePattern value. + * + * @param filePattern the filePattern value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withFilePattern(JsonFormatFilePattern filePattern) { + this.filePattern = filePattern; + return this; + } + + /** + * Get the nestingSeparator value. + * + * @return the nestingSeparator value + */ + public Object nestingSeparator() { + return this.nestingSeparator; + } + + /** + * Set the nestingSeparator value. + * + * @param nestingSeparator the nestingSeparator value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withNestingSeparator(Object nestingSeparator) { + this.nestingSeparator = nestingSeparator; + return this; + } + + /** + * Get the encodingName value. + * + * @return the encodingName value + */ + public Object encodingName() { + return this.encodingName; + } + + /** + * Set the encodingName value. + * + * @param encodingName the encodingName value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withEncodingName(Object encodingName) { + this.encodingName = encodingName; + return this; + } + + /** + * Get the jsonNodeReference value. + * + * @return the jsonNodeReference value + */ + public Object jsonNodeReference() { + return this.jsonNodeReference; + } + + /** + * Set the jsonNodeReference value. + * + * @param jsonNodeReference the jsonNodeReference value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withJsonNodeReference(Object jsonNodeReference) { + this.jsonNodeReference = jsonNodeReference; + return this; + } + + /** + * Get the jsonPathDefinition value. + * + * @return the jsonPathDefinition value + */ + public Object jsonPathDefinition() { + return this.jsonPathDefinition; + } + + /** + * Set the jsonPathDefinition value. + * + * @param jsonPathDefinition the jsonPathDefinition value to set + * @return the JsonFormat object itself. + */ + public JsonFormat withJsonPathDefinition(Object jsonPathDefinition) { + this.jsonPathDefinition = jsonPathDefinition; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JsonFormatFilePattern.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JsonFormatFilePattern.java new file mode 100644 index 00000000000..39ad264b420 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/JsonFormatFilePattern.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for JsonFormatFilePattern. + */ +public final class JsonFormatFilePattern extends ExpandableStringEnum { + /** Static value setOfObjects for JsonFormatFilePattern. */ + public static final JsonFormatFilePattern SET_OF_OBJECTS = fromString("setOfObjects"); + + /** Static value arrayOfObjects for JsonFormatFilePattern. */ + public static final JsonFormatFilePattern ARRAY_OF_OBJECTS = fromString("arrayOfObjects"); + + /** + * Creates or finds a JsonFormatFilePattern from its string representation. + * @param name a name to look for + * @return the corresponding JsonFormatFilePattern + */ + @JsonCreator + public static JsonFormatFilePattern fromString(String name) { + return fromString(name, JsonFormatFilePattern.class); + } + + /** + * @return known JsonFormatFilePattern values + */ + public static Collection values() { + return values(JsonFormatFilePattern.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntime.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntime.java new file mode 100644 index 00000000000..5df74f84f4f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntime.java @@ -0,0 +1,95 @@ +/** + * 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.datafactory; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The linked integration runtime information. + */ +public class LinkedIntegrationRuntime { + /** + * The name of the linked integration runtime. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The subscription ID for which the linked integration runtime belong to. + */ + @JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY) + private String subscriptionId; + + /** + * The name of the data factory for which the linked integration runtime + * belong to. + */ + @JsonProperty(value = "dataFactoryName", access = JsonProperty.Access.WRITE_ONLY) + private String dataFactoryName; + + /** + * The location of the data factory for which the linked integration + * runtime belong to. + */ + @JsonProperty(value = "dataFactoryLocation", access = JsonProperty.Access.WRITE_ONLY) + private String dataFactoryLocation; + + /** + * The creating time of the linked integration runtime. + */ + @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime createTime; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the subscriptionId value. + * + * @return the subscriptionId value + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Get the dataFactoryName value. + * + * @return the dataFactoryName value + */ + public String dataFactoryName() { + return this.dataFactoryName; + } + + /** + * Get the dataFactoryLocation value. + * + * @return the dataFactoryLocation value + */ + public String dataFactoryLocation() { + return this.dataFactoryLocation; + } + + /** + * Get the createTime value. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeKey.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeKey.java new file mode 100644 index 00000000000..d48e3749844 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeKey.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The base definition of a secret type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") +@JsonTypeName("Key") +public class LinkedIntegrationRuntimeKey extends LinkedIntegrationRuntimeProperties { + /** + * Type of the secret. + */ + @JsonProperty(value = "key", required = true) + private SecureString key; + + /** + * Get the key value. + * + * @return the key value + */ + public SecureString key() { + return this.key; + } + + /** + * Set the key value. + * + * @param key the key value to set + * @return the LinkedIntegrationRuntimeKey object itself. + */ + public LinkedIntegrationRuntimeKey withKey(SecureString key) { + this.key = key; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeProperties.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeProperties.java new file mode 100644 index 00000000000..d8d3d7dc674 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeProperties.java @@ -0,0 +1,25 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The base definition of a secret type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") +@JsonTypeName("LinkedIntegrationRuntimeProperties") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "RBAC", value = LinkedIntegrationRuntimeRbac.class), + @JsonSubTypes.Type(name = "Key", value = LinkedIntegrationRuntimeKey.class) +}) +public class LinkedIntegrationRuntimeProperties { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeRbac.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeRbac.java new file mode 100644 index 00000000000..d9eeab40043 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedIntegrationRuntimeRbac.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The base definition of a secret type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") +@JsonTypeName("RBAC") +public class LinkedIntegrationRuntimeRbac extends LinkedIntegrationRuntimeProperties { + /** + * The resource ID of the integration runtime to be shared. + */ + @JsonProperty(value = "resourceId", required = true) + private String resourceId; + + /** + * Get the resourceId value. + * + * @return the resourceId value + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Set the resourceId value. + * + * @param resourceId the resourceId value to set + * @return the LinkedIntegrationRuntimeRbac object itself. + */ + public LinkedIntegrationRuntimeRbac withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedServiceReference.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedServiceReference.java new file mode 100644 index 00000000000..22200a446c6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LinkedServiceReference.java @@ -0,0 +1,103 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Linked service reference type. + */ +public class LinkedServiceReference { + /** + * Linked service reference type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Reference LinkedService name. + */ + @JsonProperty(value = "referenceName", required = true) + private String referenceName; + + /** + * Arguments for LinkedService. + */ + @JsonProperty(value = "parameters") + private Map parameters; + + /** + * Creates an instance of LinkedServiceReference class. + */ + public LinkedServiceReference() { + type = "LinkedServiceReference"; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the LinkedServiceReference object itself. + */ + public LinkedServiceReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get the referenceName value. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set the referenceName value. + * + * @param referenceName the referenceName value to set + * @return the LinkedServiceReference object itself. + */ + public LinkedServiceReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the LinkedServiceReference object itself. + */ + public LinkedServiceReference withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LookupActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LookupActivity.java new file mode 100644 index 00000000000..6e33ff5242d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/LookupActivity.java @@ -0,0 +1,102 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Lookup activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Lookup") +@JsonFlatten +public class LookupActivity extends ExecutionActivity { + /** + * Dataset-specific source properties, same as copy activity source. + */ + @JsonProperty(value = "typeProperties.source", required = true) + private CopySource source; + + /** + * Lookup activity dataset reference. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.firstRowOnly") + private Object firstRowOnly; + + /** + * Get the source value. + * + * @return the source value + */ + public CopySource source() { + return this.source; + } + + /** + * Set the source value. + * + * @param source the source value to set + * @return the LookupActivity object itself. + */ + public LookupActivity withSource(CopySource source) { + this.source = source; + return this; + } + + /** + * Get the dataset value. + * + * @return the dataset value + */ + public DatasetReference dataset() { + return this.dataset; + } + + /** + * Set the dataset value. + * + * @param dataset the dataset value to set + * @return the LookupActivity object itself. + */ + public LookupActivity withDataset(DatasetReference dataset) { + this.dataset = dataset; + return this; + } + + /** + * Get the firstRowOnly value. + * + * @return the firstRowOnly value + */ + public Object firstRowOnly() { + return this.firstRowOnly; + } + + /** + * Set the firstRowOnly value. + * + * @param firstRowOnly the firstRowOnly value to set + * @return the LookupActivity object itself. + */ + public LookupActivity withFirstRowOnly(Object firstRowOnly) { + this.firstRowOnly = firstRowOnly; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoLinkedService.java new file mode 100644 index 00000000000..7e50fded4fb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Magento server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Magento") +@JsonFlatten +public class MagentoLinkedService extends LinkedServiceInner { + /** + * The URL of the Magento instance. (i.e. 192.168.222.110/magento3). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The access token from Magento. + */ + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; + + /** + * 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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the accessToken value. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the accessToken value. + * + * @param accessToken the accessToken value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MagentoLinkedService object itself. + */ + public MagentoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoObjectDataset.java new file mode 100644 index 00000000000..b47b6cdeca4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Magento server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MagentoObject") +public class MagentoObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoSource.java new file mode 100644 index 00000000000..42567fbc377 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MagentoSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Magento server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MagentoSource") +public class MagentoSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the MagentoSource object itself. + */ + public MagentoSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntime.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntime.java new file mode 100644 index 00000000000..2d88bd4263e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntime.java @@ -0,0 +1,95 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.IntegrationRuntimeInner; + +/** + * 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 +public class ManagedIntegrationRuntime extends IntegrationRuntimeInner { + /** + * Integration runtime state, only valid for managed dedicated integration + * runtime. Possible values include: 'Initial', 'Stopped', 'Started', + * 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', + * 'Offline'. + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private IntegrationRuntimeState state; + + /** + * 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; + + /** + * Get the state value. + * + * @return the state value + */ + public IntegrationRuntimeState state() { + return this.state; + } + + /** + * Get the computeProperties value. + * + * @return the computeProperties value + */ + public IntegrationRuntimeComputeProperties computeProperties() { + return this.computeProperties; + } + + /** + * Set the computeProperties value. + * + * @param computeProperties the computeProperties value to set + * @return the ManagedIntegrationRuntime object itself. + */ + public ManagedIntegrationRuntime withComputeProperties(IntegrationRuntimeComputeProperties computeProperties) { + this.computeProperties = computeProperties; + return this; + } + + /** + * Get the ssisProperties value. + * + * @return the ssisProperties value + */ + public IntegrationRuntimeSsisProperties ssisProperties() { + return this.ssisProperties; + } + + /** + * Set the ssisProperties value. + * + * @param ssisProperties the ssisProperties value to set + * @return the ManagedIntegrationRuntime object itself. + */ + public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProperties ssisProperties) { + this.ssisProperties = ssisProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeError.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeError.java new file mode 100644 index 00000000000..3f2fff6a68d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeError.java @@ -0,0 +1,79 @@ +/** + * 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.datafactory; + +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error definition for managed integration runtime. + */ +public class ManagedIntegrationRuntimeError { + /** + * The time when the error occurred. + */ + @JsonProperty(value = "time", access = JsonProperty.Access.WRITE_ONLY) + private DateTime time; + + /** + * Error code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /** + * Managed integration runtime error parameters. + */ + @JsonProperty(value = "parameters", access = JsonProperty.Access.WRITE_ONLY) + private List parameters; + + /** + * Error message. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /** + * Get the time value. + * + * @return the time value + */ + public DateTime time() { + return this.time; + } + + /** + * Get the code value. + * + * @return the code value + */ + public String code() { + return this.code; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeNode.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeNode.java new file mode 100644 index 00000000000..c0977ec0e6e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeNode.java @@ -0,0 +1,75 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of integration runtime node. + */ +public class ManagedIntegrationRuntimeNode { + /** + * The managed integration runtime node id. + */ + @JsonProperty(value = "nodeId", access = JsonProperty.Access.WRITE_ONLY) + private String nodeId; + + /** + * The managed integration runtime node status. Possible values include: + * 'Starting', 'Available', 'Recycling', 'Unavailable'. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private ManagedIntegrationRuntimeNodeStatus status; + + /** + * The errors that occurred on this integration runtime node. + */ + @JsonProperty(value = "errors") + private List errors; + + /** + * Get the nodeId value. + * + * @return the nodeId value + */ + public String nodeId() { + return this.nodeId; + } + + /** + * Get the status value. + * + * @return the status value + */ + public ManagedIntegrationRuntimeNodeStatus status() { + return this.status; + } + + /** + * Get the errors value. + * + * @return the errors value + */ + public List errors() { + return this.errors; + } + + /** + * Set the errors value. + * + * @param errors the errors value to set + * @return the ManagedIntegrationRuntimeNode object itself. + */ + public ManagedIntegrationRuntimeNode withErrors(List errors) { + this.errors = errors; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeNodeStatus.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeNodeStatus.java new file mode 100644 index 00000000000..3a3e94887fb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeNodeStatus.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ManagedIntegrationRuntimeNodeStatus. + */ +public final class ManagedIntegrationRuntimeNodeStatus extends ExpandableStringEnum { + /** Static value Starting for ManagedIntegrationRuntimeNodeStatus. */ + public static final ManagedIntegrationRuntimeNodeStatus STARTING = fromString("Starting"); + + /** Static value Available for ManagedIntegrationRuntimeNodeStatus. */ + public static final ManagedIntegrationRuntimeNodeStatus AVAILABLE = fromString("Available"); + + /** Static value Recycling for ManagedIntegrationRuntimeNodeStatus. */ + public static final ManagedIntegrationRuntimeNodeStatus RECYCLING = fromString("Recycling"); + + /** Static value Unavailable for ManagedIntegrationRuntimeNodeStatus. */ + public static final ManagedIntegrationRuntimeNodeStatus UNAVAILABLE = fromString("Unavailable"); + + /** + * Creates or finds a ManagedIntegrationRuntimeNodeStatus from its string representation. + * @param name a name to look for + * @return the corresponding ManagedIntegrationRuntimeNodeStatus + */ + @JsonCreator + public static ManagedIntegrationRuntimeNodeStatus fromString(String name) { + return fromString(name, ManagedIntegrationRuntimeNodeStatus.class); + } + + /** + * @return known ManagedIntegrationRuntimeNodeStatus values + */ + public static Collection values() { + return values(ManagedIntegrationRuntimeNodeStatus.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeOperationResult.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeOperationResult.java new file mode 100644 index 00000000000..a6c125aece7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeOperationResult.java @@ -0,0 +1,109 @@ +/** + * 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.datafactory; + +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of managed integration runtime operation result. + */ +public class ManagedIntegrationRuntimeOperationResult { + /** + * The operation type. Could be start or stop. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * The start time of the operation. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime startTime; + + /** + * The operation result. + */ + @JsonProperty(value = "result", access = JsonProperty.Access.WRITE_ONLY) + private String result; + + /** + * The error code. + */ + @JsonProperty(value = "errorCode", access = JsonProperty.Access.WRITE_ONLY) + private String errorCode; + + /** + * Managed integration runtime error parameters. + */ + @JsonProperty(value = "parameters", access = JsonProperty.Access.WRITE_ONLY) + private List parameters; + + /** + * The activity id for the operation request. + */ + @JsonProperty(value = "activityId", access = JsonProperty.Access.WRITE_ONLY) + private String activityId; + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Get the startTime value. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Get the result value. + * + * @return the result value + */ + public String result() { + return this.result; + } + + /** + * Get the errorCode value. + * + * @return the errorCode value + */ + public String errorCode() { + return this.errorCode; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public List parameters() { + return this.parameters; + } + + /** + * Get the activityId value. + * + * @return the activityId value + */ + public String activityId() { + return this.activityId; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeStatus.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeStatus.java new file mode 100644 index 00000000000..95856a69fc1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ManagedIntegrationRuntimeStatus.java @@ -0,0 +1,86 @@ +/** + * 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.datafactory; + +import org.joda.time.DateTime; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Managed integration runtime status. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Managed") +@JsonFlatten +public class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { + /** + * The time at which the integration runtime was created, in ISO8601 + * format. + */ + @JsonProperty(value = "typeProperties.createTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime createTime; + + /** + * The list of nodes for managed integration runtime. + */ + @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 value. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + + /** + * Get the nodes value. + * + * @return the nodes value + */ + public List nodes() { + return this.nodes; + } + + /** + * Get the otherErrors value. + * + * @return the otherErrors value + */ + public List otherErrors() { + return this.otherErrors; + } + + /** + * Get the lastOperation value. + * + * @return the lastOperation value + */ + public ManagedIntegrationRuntimeOperationResult lastOperation() { + return this.lastOperation; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBLinkedService.java new file mode 100644 index 00000000000..443ef07aa2e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * MariaDB server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MariaDB") +@JsonFlatten +public class MariaDBLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the MariaDBLinkedService object itself. + */ + public MariaDBLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MariaDBLinkedService object itself. + */ + public MariaDBLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBSource.java new file mode 100644 index 00000000000..7626e1c64da --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity MariaDB server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MariaDBSource") +public class MariaDBSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the MariaDBSource object itself. + */ + public MariaDBSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBTableDataset.java new file mode 100644 index 00000000000..31c0ee08a5f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MariaDBTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * MariaDB server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MariaDBTable") +public class MariaDBTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoLinkedService.java new file mode 100644 index 00000000000..f1a21bdef03 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoLinkedService.java @@ -0,0 +1,212 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Marketo server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Marketo") +@JsonFlatten +public class MarketoLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The client Id of your Marketo service. + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The client secret of your Marketo service. + */ + @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 value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MarketoLinkedService object itself. + */ + public MarketoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoObjectDataset.java new file mode 100644 index 00000000000..f9c403b1879 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Marketo server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MarketoObject") +public class MarketoObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoSource.java new file mode 100644 index 00000000000..616a634da6f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MarketoSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Marketo server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MarketoSource") +public class MarketoSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the MarketoSource object itself. + */ + public MarketoSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbAuthenticationType.java new file mode 100644 index 00000000000..c4d6d061feb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for MongoDbAuthenticationType. + */ +public final class MongoDbAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for MongoDbAuthenticationType. */ + public static final MongoDbAuthenticationType BASIC = fromString("Basic"); + + /** Static value Anonymous for MongoDbAuthenticationType. */ + public static final MongoDbAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** + * Creates or finds a MongoDbAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding MongoDbAuthenticationType + */ + @JsonCreator + public static MongoDbAuthenticationType fromString(String name) { + return fromString(name, MongoDbAuthenticationType.class); + } + + /** + * @return known MongoDbAuthenticationType values + */ + public static Collection values() { + return values(MongoDbAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbCollectionDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbCollectionDataset.java new file mode 100644 index 00000000000..ee99f6f6acd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbCollectionDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The MongoDB database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MongoDbCollection") +@JsonFlatten +public class MongoDbCollectionDataset extends DatasetInner { + /** + * The table name of the MongoDB database. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.collectionName", required = true) + private Object collectionName; + + /** + * Get the collectionName value. + * + * @return the collectionName value + */ + public Object collectionName() { + return this.collectionName; + } + + /** + * Set the collectionName value. + * + * @param collectionName the collectionName value to set + * @return the MongoDbCollectionDataset object itself. + */ + public MongoDbCollectionDataset withCollectionName(Object collectionName) { + this.collectionName = collectionName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbLinkedService.java new file mode 100644 index 00000000000..60d282656cb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbLinkedService.java @@ -0,0 +1,297 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for MongoDb data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MongoDb") +@JsonFlatten +public class MongoDbLinkedService extends LinkedServiceInner { + /** + * The IP address or server name of the MongoDB server. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * The authentication type to be used to connect to the MongoDB database. + * Possible values include: 'Basic', 'Anonymous'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private MongoDbAuthenticationType authenticationType; + + /** + * 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; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * Password for authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * 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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public MongoDbAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withAuthenticationType(MongoDbAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the databaseName value. + * + * @return the databaseName value + */ + public Object databaseName() { + return this.databaseName; + } + + /** + * Set the databaseName value. + * + * @param databaseName the databaseName value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withDatabaseName(Object databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the authSource value. + * + * @return the authSource value + */ + public Object authSource() { + return this.authSource; + } + + /** + * Set the authSource value. + * + * @param authSource the authSource value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withAuthSource(Object authSource) { + this.authSource = authSource; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MongoDbLinkedService object itself. + */ + public MongoDbLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbSource.java new file mode 100644 index 00000000000..a3423458d2b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MongoDbSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for a MongoDB database. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MongoDbSource") +public class MongoDbSource extends CopySource { + /** + * Database query. Should be a SQL-92 query expression. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the MongoDbSource object itself. + */ + public MongoDbSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MultiplePipelineTrigger.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MultiplePipelineTrigger.java new file mode 100644 index 00000000000..c565b998923 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MultiplePipelineTrigger.java @@ -0,0 +1,55 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.microsoft.azure.management.datafactory.implementation.TriggerInner; + +/** + * Base class for all triggers that support one to many model for trigger to + * pipeline. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MultiplePipelineTrigger") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "BlobTrigger", value = BlobTrigger.class), + @JsonSubTypes.Type(name = "ScheduleTrigger", value = ScheduleTrigger.class) +}) +public class MultiplePipelineTrigger extends TriggerInner { + /** + * Pipelines that need to be started. + */ + @JsonProperty(value = "pipelines") + private List pipelines; + + /** + * Get the pipelines value. + * + * @return the pipelines value + */ + public List pipelines() { + return this.pipelines; + } + + /** + * Set the pipelines value. + * + * @param pipelines the pipelines value to set + * @return the MultiplePipelineTrigger object itself. + */ + public MultiplePipelineTrigger withPipelines(List pipelines) { + this.pipelines = pipelines; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MySqlLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MySqlLinkedService.java new file mode 100644 index 00000000000..f5f2f3fe2f8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/MySqlLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for MySQL data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("MySql") +@JsonFlatten +public class MySqlLinkedService extends LinkedServiceInner { + /** + * Server name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * Database name for connection. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * Schema name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schema; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * 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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the database value. + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database value. + * + * @param database the database value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the schema value. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set the schema value. + * + * @param schema the schema value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the MySqlLinkedService object itself. + */ + public MySqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaLinkedService.java new file mode 100644 index 00000000000..42f87d79027 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Netezza linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Netezza") +@JsonFlatten +public class NetezzaLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the NetezzaLinkedService object itself. + */ + public NetezzaLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the NetezzaLinkedService object itself. + */ + public NetezzaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaSource.java new file mode 100644 index 00000000000..15e6a70fb2f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Netezza source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("NetezzaSource") +public class NetezzaSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the NetezzaSource object itself. + */ + public NetezzaSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaTableDataset.java new file mode 100644 index 00000000000..ce6980bd31f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/NetezzaTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Netezza dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("NetezzaTable") +public class NetezzaTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataAuthenticationType.java new file mode 100644 index 00000000000..3e68a0b7683 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ODataAuthenticationType. + */ +public final class ODataAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for ODataAuthenticationType. */ + public static final ODataAuthenticationType BASIC = fromString("Basic"); + + /** Static value Anonymous for ODataAuthenticationType. */ + public static final ODataAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** + * Creates or finds a ODataAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding ODataAuthenticationType + */ + @JsonCreator + public static ODataAuthenticationType fromString(String name) { + return fromString(name, ODataAuthenticationType.class); + } + + /** + * @return known ODataAuthenticationType values + */ + public static Collection values() { + return values(ODataAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataLinkedService.java new file mode 100644 index 00000000000..da89193411f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataLinkedService.java @@ -0,0 +1,159 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Open Data Protocol (OData) linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OData") +@JsonFlatten +public class ODataLinkedService extends LinkedServiceInner { + /** + * The URL of the OData service endpoint. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.url", required = true) + private Object url; + + /** + * Type of authentication used to connect to the OData service. Possible + * values include: 'Basic', 'Anonymous'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private ODataAuthenticationType authenticationType; + + /** + * User name of the OData service. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password of the OData service. + */ + @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 url value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public ODataAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withAuthenticationType(ODataAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ODataLinkedService object itself. + */ + public ODataLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataResourceDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataResourceDataset.java new file mode 100644 index 00000000000..c4c2cf8be9c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ODataResourceDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Open Data Protocol (OData) resource dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ODataResource") +@JsonFlatten +public class ODataResourceDataset extends DatasetInner { + /** + * The OData resource path. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.path") + private Object path; + + /** + * Get the path value. + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the ODataResourceDataset object itself. + */ + public ODataResourceDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OdbcLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OdbcLinkedService.java new file mode 100644 index 00000000000..d783d9fc350 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OdbcLinkedService.java @@ -0,0 +1,187 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Open Database Connectivity (ODBC) linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Odbc") +@JsonFlatten +public class OdbcLinkedService extends LinkedServiceInner { + /** + * The non-access credential portion of the connection string as well as an + * optional encrypted credential. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase 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 = "typeProperties.authenticationType") + private Object authenticationType; + + /** + * The access credential portion of the connection string specified in + * driver-specific property-value format. + */ + @JsonProperty(value = "typeProperties.credential") + private SecretBase credential; + + /** + * User name for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password for Basic 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 connectionString value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public Object authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withAuthenticationType(Object authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the credential value. + * + * @return the credential value + */ + public SecretBase credential() { + return this.credential; + } + + /** + * Set the credential value. + * + * @param credential the credential value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withCredential(SecretBase credential) { + this.credential = credential; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the OdbcLinkedService object itself. + */ + public OdbcLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OdbcSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OdbcSink.java new file mode 100644 index 00000000000..3c81b3e208d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OdbcSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity ODBC sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OdbcSink") +public class OdbcSink extends CopySink { + /** + * A query to execute before starting the copy. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * Get the preCopyScript value. + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set the preCopyScript value. + * + * @param preCopyScript the preCopyScript value to set + * @return the OdbcSink object itself. + */ + public OdbcSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Operation.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Operation.java new file mode 100644 index 00000000000..2df9ab343e8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/Operation.java @@ -0,0 +1,123 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Azure Data Factory API operation definition. + */ +@JsonFlatten +public class Operation { + /** + * Operation name: {provider}/{resource}/{operation}. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The intended executor of the operation. + */ + @JsonProperty(value = "origin") + private String origin; + + /** + * Metadata associated with the operation. + */ + @JsonProperty(value = "display") + private OperationDisplay display; + + /** + * Details about a service operation. + */ + @JsonProperty(value = "properties.serviceSpecification") + private OperationServiceSpecification serviceSpecification; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the Operation object itself. + */ + public Operation withName(String name) { + this.name = name; + return this; + } + + /** + * Get the origin value. + * + * @return the origin value + */ + public String origin() { + return this.origin; + } + + /** + * Set the origin value. + * + * @param origin the origin value to set + * @return the Operation object itself. + */ + public Operation withOrigin(String origin) { + this.origin = origin; + return this; + } + + /** + * Get the display value. + * + * @return the display value + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Set the display value. + * + * @param display the display value to set + * @return the Operation object itself. + */ + public Operation withDisplay(OperationDisplay display) { + this.display = display; + return this; + } + + /** + * Get the serviceSpecification value. + * + * @return the serviceSpecification value + */ + public OperationServiceSpecification serviceSpecification() { + return this.serviceSpecification; + } + + /** + * Set the serviceSpecification value. + * + * @param serviceSpecification the serviceSpecification value to set + * @return the Operation object itself. + */ + public Operation withServiceSpecification(OperationServiceSpecification serviceSpecification) { + this.serviceSpecification = serviceSpecification; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationDisplay.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationDisplay.java new file mode 100644 index 00000000000..74f325a0f5e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationDisplay.java @@ -0,0 +1,121 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Metadata associated with the operation. + */ +public class OperationDisplay { + /** + * The description of the operation. + */ + @JsonProperty(value = "description") + private String description; + + /** + * The name of the provider. + */ + @JsonProperty(value = "provider") + private String provider; + + /** + * The name of the resource type on which the operation is performed. + */ + @JsonProperty(value = "resource") + private String resource; + + /** + * The type of operation: get, read, delete, etc. + */ + @JsonProperty(value = "operation") + private String operation; + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the provider value. + * + * @return the provider value + */ + public String provider() { + return this.provider; + } + + /** + * Set the provider value. + * + * @param provider the provider value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withProvider(String provider) { + this.provider = provider; + return this; + } + + /** + * Get the resource value. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set the resource value. + * + * @param resource the resource value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withResource(String resource) { + this.resource = resource; + return this; + } + + /** + * Get the operation value. + * + * @return the operation value + */ + public String operation() { + return this.operation; + } + + /** + * Set the operation value. + * + * @param operation the operation value to set + * @return the OperationDisplay object itself. + */ + public OperationDisplay withOperation(String operation) { + this.operation = operation; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationLogSpecification.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationLogSpecification.java new file mode 100644 index 00000000000..aeb95131762 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationLogSpecification.java @@ -0,0 +1,95 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Details about an operation related to logs. + */ +public class OperationLogSpecification { + /** + * The name of the log category. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Localized display name. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Blobs created in the customer storage account, per hour. + */ + @JsonProperty(value = "blobDuration") + private String blobDuration; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the OperationLogSpecification object itself. + */ + public OperationLogSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName value. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName value. + * + * @param displayName the displayName value to set + * @return the OperationLogSpecification object itself. + */ + public OperationLogSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the blobDuration value. + * + * @return the blobDuration value + */ + public String blobDuration() { + return this.blobDuration; + } + + /** + * Set the blobDuration value. + * + * @param blobDuration the blobDuration value to set + * @return the OperationLogSpecification object itself. + */ + public OperationLogSpecification withBlobDuration(String blobDuration) { + this.blobDuration = blobDuration; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationMetricAvailability.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationMetricAvailability.java new file mode 100644 index 00000000000..7ef3ebfd133 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationMetricAvailability.java @@ -0,0 +1,69 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines how often data for a metric becomes available. + */ +public class OperationMetricAvailability { + /** + * The granularity for the metric. + */ + @JsonProperty(value = "timeGrain") + private String timeGrain; + + /** + * Blob created in the customer storage account, per hour. + */ + @JsonProperty(value = "blobDuration") + private String blobDuration; + + /** + * Get the timeGrain value. + * + * @return the timeGrain value + */ + public String timeGrain() { + return this.timeGrain; + } + + /** + * Set the timeGrain value. + * + * @param timeGrain the timeGrain value to set + * @return the OperationMetricAvailability object itself. + */ + public OperationMetricAvailability withTimeGrain(String timeGrain) { + this.timeGrain = timeGrain; + return this; + } + + /** + * Get the blobDuration value. + * + * @return the blobDuration value + */ + public String blobDuration() { + return this.blobDuration; + } + + /** + * Set the blobDuration value. + * + * @param blobDuration the blobDuration value to set + * @return the OperationMetricAvailability object itself. + */ + public OperationMetricAvailability withBlobDuration(String blobDuration) { + this.blobDuration = blobDuration; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationMetricSpecification.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationMetricSpecification.java new file mode 100644 index 00000000000..791741af3a9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationMetricSpecification.java @@ -0,0 +1,252 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Details about an operation related to metrics. + */ +public class OperationMetricSpecification { + /** + * The name of the metric. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Localized display name of the metric. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * The description of the metric. + */ + @JsonProperty(value = "displayDescription") + private String displayDescription; + + /** + * The unit that the metric is measured in. + */ + @JsonProperty(value = "unit") + private String unit; + + /** + * The type of metric aggregation. + */ + @JsonProperty(value = "aggregationType") + private String aggregationType; + + /** + * Whether or not the service is using regional MDM accounts. + */ + @JsonProperty(value = "enableRegionalMdmAccount") + private String enableRegionalMdmAccount; + + /** + * The name of the MDM account. + */ + @JsonProperty(value = "sourceMdmAccount") + private String sourceMdmAccount; + + /** + * The name of the MDM namespace. + */ + @JsonProperty(value = "sourceMdmNamespace") + private String sourceMdmNamespace; + + /** + * Defines how often data for metrics becomes available. + */ + @JsonProperty(value = "availabilities") + private List availabilities; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName value. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName value. + * + * @param displayName the displayName value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the displayDescription value. + * + * @return the displayDescription value + */ + public String displayDescription() { + return this.displayDescription; + } + + /** + * Set the displayDescription value. + * + * @param displayDescription the displayDescription value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withDisplayDescription(String displayDescription) { + this.displayDescription = displayDescription; + return this; + } + + /** + * Get the unit value. + * + * @return the unit value + */ + public String unit() { + return this.unit; + } + + /** + * Set the unit value. + * + * @param unit the unit value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Get the aggregationType value. + * + * @return the aggregationType value + */ + public String aggregationType() { + return this.aggregationType; + } + + /** + * Set the aggregationType value. + * + * @param aggregationType the aggregationType value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withAggregationType(String aggregationType) { + this.aggregationType = aggregationType; + return this; + } + + /** + * Get the enableRegionalMdmAccount value. + * + * @return the enableRegionalMdmAccount value + */ + public String enableRegionalMdmAccount() { + return this.enableRegionalMdmAccount; + } + + /** + * Set the enableRegionalMdmAccount value. + * + * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withEnableRegionalMdmAccount(String enableRegionalMdmAccount) { + this.enableRegionalMdmAccount = enableRegionalMdmAccount; + return this; + } + + /** + * Get the sourceMdmAccount value. + * + * @return the sourceMdmAccount value + */ + public String sourceMdmAccount() { + return this.sourceMdmAccount; + } + + /** + * Set the sourceMdmAccount value. + * + * @param sourceMdmAccount the sourceMdmAccount value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withSourceMdmAccount(String sourceMdmAccount) { + this.sourceMdmAccount = sourceMdmAccount; + return this; + } + + /** + * Get the sourceMdmNamespace value. + * + * @return the sourceMdmNamespace value + */ + public String sourceMdmNamespace() { + return this.sourceMdmNamespace; + } + + /** + * Set the sourceMdmNamespace value. + * + * @param sourceMdmNamespace the sourceMdmNamespace value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { + this.sourceMdmNamespace = sourceMdmNamespace; + return this; + } + + /** + * Get the availabilities value. + * + * @return the availabilities value + */ + public List availabilities() { + return this.availabilities; + } + + /** + * Set the availabilities value. + * + * @param availabilities the availabilities value to set + * @return the OperationMetricSpecification object itself. + */ + public OperationMetricSpecification withAvailabilities(List availabilities) { + this.availabilities = availabilities; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationServiceSpecification.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationServiceSpecification.java new file mode 100644 index 00000000000..61c9fe8f26d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OperationServiceSpecification.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Details about a service operation. + */ +public class OperationServiceSpecification { + /** + * Details about operations related to logs. + */ + @JsonProperty(value = "logSpecifications") + private List logSpecifications; + + /** + * Details about operations related to metrics. + */ + @JsonProperty(value = "metricSpecifications") + private List metricSpecifications; + + /** + * Get the logSpecifications value. + * + * @return the logSpecifications value + */ + public List logSpecifications() { + return this.logSpecifications; + } + + /** + * Set the logSpecifications value. + * + * @param logSpecifications the logSpecifications value to set + * @return the OperationServiceSpecification object itself. + */ + public OperationServiceSpecification withLogSpecifications(List logSpecifications) { + this.logSpecifications = logSpecifications; + return this; + } + + /** + * Get the metricSpecifications value. + * + * @return the metricSpecifications value + */ + public List metricSpecifications() { + return this.metricSpecifications; + } + + /** + * Set the metricSpecifications value. + * + * @param metricSpecifications the metricSpecifications value to set + * @return the OperationServiceSpecification object itself. + */ + public OperationServiceSpecification withMetricSpecifications(List metricSpecifications) { + this.metricSpecifications = metricSpecifications; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleLinkedService.java new file mode 100644 index 00000000000..796bad1396b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Oracle database. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Oracle") +@JsonFlatten +public class OracleLinkedService extends LinkedServiceInner { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the OracleLinkedService object itself. + */ + public OracleLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleSink.java new file mode 100644 index 00000000000..1227ff24a66 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Oracle sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OracleSink") +public class OracleSink extends CopySink { + /** + * SQL pre-copy script. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * Get the preCopyScript value. + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set the preCopyScript value. + * + * @param preCopyScript the preCopyScript value to set + * @return the OracleSink object itself. + */ + public OracleSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleSource.java new file mode 100644 index 00000000000..ab0c8d10d56 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleSource.java @@ -0,0 +1,75 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Oracle source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OracleSource") +public class OracleSource extends CopySource { + /** + * Oracle reader query. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "oracleReaderQuery") + private Object oracleReaderQuery; + + /** + * Query timeout. Type: string (or Expression with resultType string), + * pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + */ + @JsonProperty(value = "queryTimeout") + private Object queryTimeout; + + /** + * Get the oracleReaderQuery value. + * + * @return the oracleReaderQuery value + */ + public Object oracleReaderQuery() { + return this.oracleReaderQuery; + } + + /** + * Set the oracleReaderQuery value. + * + * @param oracleReaderQuery the oracleReaderQuery value to set + * @return the OracleSource object itself. + */ + public OracleSource withOracleReaderQuery(Object oracleReaderQuery) { + this.oracleReaderQuery = oracleReaderQuery; + return this; + } + + /** + * Get the queryTimeout value. + * + * @return the queryTimeout value + */ + public Object queryTimeout() { + return this.queryTimeout; + } + + /** + * Set the queryTimeout value. + * + * @param queryTimeout the queryTimeout value to set + * @return the OracleSource object itself. + */ + public OracleSource withQueryTimeout(Object queryTimeout) { + this.queryTimeout = queryTimeout; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleTableDataset.java new file mode 100644 index 00000000000..01d20982211 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OracleTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The on-premises Oracle database dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OracleTable") +@JsonFlatten +public class OracleTableDataset extends DatasetInner { + /** + * The table name of the on-premises Oracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the OracleTableDataset object itself. + */ + public OracleTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OrcFormat.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OrcFormat.java new file mode 100644 index 00000000000..f2dbc9295ec --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/OrcFormat.java @@ -0,0 +1,20 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The data stored in Optimized Row Columnar (ORC) format. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("OrcFormat") +public class OrcFormat extends DatasetStorageFormat { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParameterSpecification.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParameterSpecification.java new file mode 100644 index 00000000000..f0483617bd8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParameterSpecification.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Definition of a single parameter for an entity. + */ +public class ParameterSpecification { + /** + * Parameter type. Possible values include: 'Object', 'String', 'Int', + * 'Float', 'Bool', 'Array', 'SecureString'. + */ + @JsonProperty(value = "type", required = true) + private ParameterType type; + + /** + * Default value of parameter. + */ + @JsonProperty(value = "defaultValue") + private Object defaultValue; + + /** + * Get the type value. + * + * @return the type value + */ + public ParameterType type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the ParameterSpecification object itself. + */ + public ParameterSpecification withType(ParameterType type) { + this.type = type; + return this; + } + + /** + * Get the defaultValue value. + * + * @return the defaultValue value + */ + public Object defaultValue() { + return this.defaultValue; + } + + /** + * Set the defaultValue value. + * + * @param defaultValue the defaultValue value to set + * @return the ParameterSpecification object itself. + */ + public ParameterSpecification withDefaultValue(Object defaultValue) { + this.defaultValue = defaultValue; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParameterType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParameterType.java new file mode 100644 index 00000000000..c40372b81fc --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParameterType.java @@ -0,0 +1,56 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ParameterType. + */ +public final class ParameterType extends ExpandableStringEnum { + /** Static value Object for ParameterType. */ + public static final ParameterType OBJECT = fromString("Object"); + + /** Static value String for ParameterType. */ + public static final ParameterType STRING = fromString("String"); + + /** Static value Int for ParameterType. */ + public static final ParameterType INT = fromString("Int"); + + /** Static value Float for ParameterType. */ + public static final ParameterType FLOAT = fromString("Float"); + + /** Static value Bool for ParameterType. */ + public static final ParameterType BOOL = fromString("Bool"); + + /** Static value Array for ParameterType. */ + public static final ParameterType ARRAY = fromString("Array"); + + /** Static value SecureString for ParameterType. */ + public static final ParameterType SECURE_STRING = fromString("SecureString"); + + /** + * Creates or finds a ParameterType from its string representation. + * @param name a name to look for + * @return the corresponding ParameterType + */ + @JsonCreator + public static ParameterType fromString(String name) { + return fromString(name, ParameterType.class); + } + + /** + * @return known ParameterType values + */ + public static Collection values() { + return values(ParameterType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParquetFormat.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParquetFormat.java new file mode 100644 index 00000000000..6995bbb4c38 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ParquetFormat.java @@ -0,0 +1,20 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The data stored in Parquet format. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ParquetFormat") +public class ParquetFormat extends DatasetStorageFormat { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalLinkedService.java new file mode 100644 index 00000000000..b7ebbc45aa1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalLinkedService.java @@ -0,0 +1,212 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Paypal Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Paypal") +@JsonFlatten +public class PaypalLinkedService extends LinkedServiceInner { + /** + * The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The client ID associated with your PayPal application. + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The client secret associated with your PayPal application. + */ + @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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PaypalLinkedService object itself. + */ + public PaypalLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalObjectDataset.java new file mode 100644 index 00000000000..de97f42248a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Paypal Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PaypalObject") +public class PaypalObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalSource.java new file mode 100644 index 00000000000..f4a58e7cee2 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PaypalSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Paypal Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PaypalSource") +public class PaypalSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the PaypalSource object itself. + */ + public PaypalSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixAuthenticationType.java new file mode 100644 index 00000000000..281b1749d8e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixAuthenticationType.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PhoenixAuthenticationType. + */ +public final class PhoenixAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for PhoenixAuthenticationType. */ + public static final PhoenixAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value UsernameAndPassword for PhoenixAuthenticationType. */ + public static final PhoenixAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); + + /** Static value WindowsAzureHDInsightService for PhoenixAuthenticationType. */ + public static final PhoenixAuthenticationType WINDOWS_AZURE_HDINSIGHT_SERVICE = fromString("WindowsAzureHDInsightService"); + + /** + * Creates or finds a PhoenixAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding PhoenixAuthenticationType + */ + @JsonCreator + public static PhoenixAuthenticationType fromString(String name) { + return fromString(name, PhoenixAuthenticationType.class); + } + + /** + * @return known PhoenixAuthenticationType values + */ + public static Collection values() { + return values(PhoenixAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixLinkedService.java new file mode 100644 index 00000000000..6a1af4125e5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixLinkedService.java @@ -0,0 +1,352 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Phoenix server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Phoenix") +@JsonFlatten +public class PhoenixLinkedService extends LinkedServiceInner { + /** + * The IP address or host name of the Phoenix server. (i.e. + * 192.168.222.160). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.httpPath") + private Object httpPath; + + /** + * The authentication mechanism used to connect to the Phoenix server. + * Possible values include: 'Anonymous', 'UsernameAndPassword', + * 'WindowsAzureHDInsightService'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private PhoenixAuthenticationType authenticationType; + + /** + * The user name used to connect to the Phoenix 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 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the httpPath value. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the httpPath value. + * + * @param httpPath the httpPath value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public PhoenixAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withAuthenticationType(PhoenixAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the useSystemTrustStore value. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set the useSystemTrustStore value. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the allowHostNameCNMismatch value. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set the allowHostNameCNMismatch value. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PhoenixLinkedService object itself. + */ + public PhoenixLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixObjectDataset.java new file mode 100644 index 00000000000..db1a7cbc692 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Phoenix server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PhoenixObject") +public class PhoenixObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixSource.java new file mode 100644 index 00000000000..95af09cdc12 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PhoenixSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Phoenix server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PhoenixSource") +public class PhoenixSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the PhoenixSource object itself. + */ + public PhoenixSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineReference.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineReference.java new file mode 100644 index 00000000000..1c268d65ed1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineReference.java @@ -0,0 +1,102 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Pipeline reference type. + */ +public class PipelineReference { + /** + * Pipeline reference type. + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Reference pipeline name. + */ + @JsonProperty(value = "referenceName", required = true) + private String referenceName; + + /** + * Reference name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Creates an instance of PipelineReference class. + */ + public PipelineReference() { + type = "PipelineReference"; + } + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the PipelineReference object itself. + */ + public PipelineReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get the referenceName value. + * + * @return the referenceName value + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set the referenceName value. + * + * @param referenceName the referenceName value to set + * @return the PipelineReference object itself. + */ + public PipelineReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the PipelineReference object itself. + */ + public PipelineReference withName(String name) { + this.name = name; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunInvokedBy.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunInvokedBy.java new file mode 100644 index 00000000000..ff3ed147f9a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunInvokedBy.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Provides entity name and id that started the pipeline run. + */ +public class PipelineRunInvokedBy { + /** + * Name of the entity that started the pipeline run. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * The ID of the entity that started the run. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the id value. + * + * @return the id value + */ + public String id() { + return this.id; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilter.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilter.java new file mode 100644 index 00000000000..f85847f9b2e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilter.java @@ -0,0 +1,98 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query filter option for listing pipeline runs. + */ +public class PipelineRunQueryFilter { + /** + * Parameter name to be used for filter. Possible values include: + * 'PipelineName', 'Status', 'RunStart', 'RunEnd'. + */ + @JsonProperty(value = "operand", required = true) + private PipelineRunQueryFilterOperand operand; + + /** + * Operator to be used for filter. Possible values include: 'Equals', + * 'NotEquals', 'In', 'NotIn'. + */ + @JsonProperty(value = "operator", required = true) + private PipelineRunQueryFilterOperator operator; + + /** + * List of filter values. + */ + @JsonProperty(value = "values", required = true) + private List values; + + /** + * Get the operand value. + * + * @return the operand value + */ + public PipelineRunQueryFilterOperand operand() { + return this.operand; + } + + /** + * Set the operand value. + * + * @param operand the operand value to set + * @return the PipelineRunQueryFilter object itself. + */ + public PipelineRunQueryFilter withOperand(PipelineRunQueryFilterOperand operand) { + this.operand = operand; + return this; + } + + /** + * Get the operator value. + * + * @return the operator value + */ + public PipelineRunQueryFilterOperator operator() { + return this.operator; + } + + /** + * Set the operator value. + * + * @param operator the operator value to set + * @return the PipelineRunQueryFilter object itself. + */ + public PipelineRunQueryFilter withOperator(PipelineRunQueryFilterOperator operator) { + this.operator = operator; + return this; + } + + /** + * Get the values value. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the values value. + * + * @param values the values value to set + * @return the PipelineRunQueryFilter object itself. + */ + public PipelineRunQueryFilter withValues(List values) { + this.values = values; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilterOperand.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilterOperand.java new file mode 100644 index 00000000000..e1fddd0c4d6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilterOperand.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PipelineRunQueryFilterOperand. + */ +public final class PipelineRunQueryFilterOperand extends ExpandableStringEnum { + /** Static value PipelineName for PipelineRunQueryFilterOperand. */ + public static final PipelineRunQueryFilterOperand PIPELINE_NAME = fromString("PipelineName"); + + /** Static value Status for PipelineRunQueryFilterOperand. */ + public static final PipelineRunQueryFilterOperand STATUS = fromString("Status"); + + /** Static value RunStart for PipelineRunQueryFilterOperand. */ + public static final PipelineRunQueryFilterOperand RUN_START = fromString("RunStart"); + + /** Static value RunEnd for PipelineRunQueryFilterOperand. */ + public static final PipelineRunQueryFilterOperand RUN_END = fromString("RunEnd"); + + /** + * Creates or finds a PipelineRunQueryFilterOperand from its string representation. + * @param name a name to look for + * @return the corresponding PipelineRunQueryFilterOperand + */ + @JsonCreator + public static PipelineRunQueryFilterOperand fromString(String name) { + return fromString(name, PipelineRunQueryFilterOperand.class); + } + + /** + * @return known PipelineRunQueryFilterOperand values + */ + public static Collection values() { + return values(PipelineRunQueryFilterOperand.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilterOperator.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilterOperator.java new file mode 100644 index 00000000000..4436c51f941 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryFilterOperator.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PipelineRunQueryFilterOperator. + */ +public final class PipelineRunQueryFilterOperator extends ExpandableStringEnum { + /** Static value Equals for PipelineRunQueryFilterOperator. */ + public static final PipelineRunQueryFilterOperator EQUALS = fromString("Equals"); + + /** Static value NotEquals for PipelineRunQueryFilterOperator. */ + public static final PipelineRunQueryFilterOperator NOT_EQUALS = fromString("NotEquals"); + + /** Static value In for PipelineRunQueryFilterOperator. */ + public static final PipelineRunQueryFilterOperator IN = fromString("In"); + + /** Static value NotIn for PipelineRunQueryFilterOperator. */ + public static final PipelineRunQueryFilterOperator NOT_IN = fromString("NotIn"); + + /** + * Creates or finds a PipelineRunQueryFilterOperator from its string representation. + * @param name a name to look for + * @return the corresponding PipelineRunQueryFilterOperator + */ + @JsonCreator + public static PipelineRunQueryFilterOperator fromString(String name) { + return fromString(name, PipelineRunQueryFilterOperator.class); + } + + /** + * @return known PipelineRunQueryFilterOperator values + */ + public static Collection values() { + return values(PipelineRunQueryFilterOperator.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrder.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrder.java new file mode 100644 index 00000000000..1b8f8ccb8bd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrder.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PipelineRunQueryOrder. + */ +public final class PipelineRunQueryOrder extends ExpandableStringEnum { + /** Static value ASC for PipelineRunQueryOrder. */ + public static final PipelineRunQueryOrder ASC = fromString("ASC"); + + /** Static value DESC for PipelineRunQueryOrder. */ + public static final PipelineRunQueryOrder DESC = fromString("DESC"); + + /** + * Creates or finds a PipelineRunQueryOrder from its string representation. + * @param name a name to look for + * @return the corresponding PipelineRunQueryOrder + */ + @JsonCreator + public static PipelineRunQueryOrder fromString(String name) { + return fromString(name, PipelineRunQueryOrder.class); + } + + /** + * @return known PipelineRunQueryOrder values + */ + public static Collection values() { + return values(PipelineRunQueryOrder.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrderBy.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrderBy.java new file mode 100644 index 00000000000..d15c4dd1507 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrderBy.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An object to provide order by options for listing pipeline runs. + */ +public class PipelineRunQueryOrderBy { + /** + * Parameter name to be used for order by. Possible values include: + * 'RunStart', 'RunEnd'. + */ + @JsonProperty(value = "orderBy", required = true) + private PipelineRunQueryOrderByField orderBy; + + /** + * Sorting order of the parameter. Possible values include: 'ASC', 'DESC'. + */ + @JsonProperty(value = "order", required = true) + private PipelineRunQueryOrder order; + + /** + * Get the orderBy value. + * + * @return the orderBy value + */ + public PipelineRunQueryOrderByField orderBy() { + return this.orderBy; + } + + /** + * Set the orderBy value. + * + * @param orderBy the orderBy value to set + * @return the PipelineRunQueryOrderBy object itself. + */ + public PipelineRunQueryOrderBy withOrderBy(PipelineRunQueryOrderByField orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get the order value. + * + * @return the order value + */ + public PipelineRunQueryOrder order() { + return this.order; + } + + /** + * Set the order value. + * + * @param order the order value to set + * @return the PipelineRunQueryOrderBy object itself. + */ + public PipelineRunQueryOrderBy withOrder(PipelineRunQueryOrder order) { + this.order = order; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrderByField.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrderByField.java new file mode 100644 index 00000000000..70faa342b90 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PipelineRunQueryOrderByField.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PipelineRunQueryOrderByField. + */ +public final class PipelineRunQueryOrderByField extends ExpandableStringEnum { + /** Static value RunStart for PipelineRunQueryOrderByField. */ + public static final PipelineRunQueryOrderByField RUN_START = fromString("RunStart"); + + /** Static value RunEnd for PipelineRunQueryOrderByField. */ + public static final PipelineRunQueryOrderByField RUN_END = fromString("RunEnd"); + + /** + * Creates or finds a PipelineRunQueryOrderByField from its string representation. + * @param name a name to look for + * @return the corresponding PipelineRunQueryOrderByField + */ + @JsonCreator + public static PipelineRunQueryOrderByField fromString(String name) { + return fromString(name, PipelineRunQueryOrderByField.class); + } + + /** + * @return known PipelineRunQueryOrderByField values + */ + public static Collection values() { + return values(PipelineRunQueryOrderByField.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PolybaseSettings.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PolybaseSettings.java new file mode 100644 index 00000000000..3231291ec4c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PolybaseSettings.java @@ -0,0 +1,154 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * PolyBase settings. + */ +public class PolybaseSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Reject type. Possible values include: 'value', 'percentage'. + */ + @JsonProperty(value = "rejectType") + private PolybaseSettingsRejectType rejectType; + + /** + * Specifies the value or the percentage of rows that can be rejected + * before the query fails. Type: number (or Expression with resultType + * number), minimum: 0. + */ + @JsonProperty(value = "rejectValue") + private Object rejectValue; + + /** + * Determines the number of rows to attempt to retrieve before the PolyBase + * recalculates the percentage of rejected rows. Type: integer (or + * Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "rejectSampleValue") + private Object rejectSampleValue; + + /** + * Specifies how to handle missing values in delimited text files when + * PolyBase retrieves data from the text file. Type: boolean (or Expression + * with resultType boolean). + */ + @JsonProperty(value = "useTypeDefault") + private Object useTypeDefault; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the rejectType value. + * + * @return the rejectType value + */ + public PolybaseSettingsRejectType rejectType() { + return this.rejectType; + } + + /** + * Set the rejectType value. + * + * @param rejectType the rejectType value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withRejectType(PolybaseSettingsRejectType rejectType) { + this.rejectType = rejectType; + return this; + } + + /** + * Get the rejectValue value. + * + * @return the rejectValue value + */ + public Object rejectValue() { + return this.rejectValue; + } + + /** + * Set the rejectValue value. + * + * @param rejectValue the rejectValue value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withRejectValue(Object rejectValue) { + this.rejectValue = rejectValue; + return this; + } + + /** + * Get the rejectSampleValue value. + * + * @return the rejectSampleValue value + */ + public Object rejectSampleValue() { + return this.rejectSampleValue; + } + + /** + * Set the rejectSampleValue value. + * + * @param rejectSampleValue the rejectSampleValue value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withRejectSampleValue(Object rejectSampleValue) { + this.rejectSampleValue = rejectSampleValue; + return this; + } + + /** + * Get the useTypeDefault value. + * + * @return the useTypeDefault value + */ + public Object useTypeDefault() { + return this.useTypeDefault; + } + + /** + * Set the useTypeDefault value. + * + * @param useTypeDefault the useTypeDefault value to set + * @return the PolybaseSettings object itself. + */ + public PolybaseSettings withUseTypeDefault(Object useTypeDefault) { + this.useTypeDefault = useTypeDefault; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PolybaseSettingsRejectType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PolybaseSettingsRejectType.java new file mode 100644 index 00000000000..143db935dc8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PolybaseSettingsRejectType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PolybaseSettingsRejectType. + */ +public final class PolybaseSettingsRejectType extends ExpandableStringEnum { + /** Static value value for PolybaseSettingsRejectType. */ + public static final PolybaseSettingsRejectType VALUE = fromString("value"); + + /** Static value percentage for PolybaseSettingsRejectType. */ + public static final PolybaseSettingsRejectType PERCENTAGE = fromString("percentage"); + + /** + * Creates or finds a PolybaseSettingsRejectType from its string representation. + * @param name a name to look for + * @return the corresponding PolybaseSettingsRejectType + */ + @JsonCreator + public static PolybaseSettingsRejectType fromString(String name) { + return fromString(name, PolybaseSettingsRejectType.class); + } + + /** + * @return known PolybaseSettingsRejectType values + */ + public static Collection values() { + return values(PolybaseSettingsRejectType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PostgreSqlLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PostgreSqlLinkedService.java new file mode 100644 index 00000000000..973a5b4f2fb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PostgreSqlLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for PostgreSQL data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PostgreSql") +@JsonFlatten +public class PostgreSqlLinkedService extends LinkedServiceInner { + /** + * Server name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * Database name for connection. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * Schema name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schema; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * 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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the database value. + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database value. + * + * @param database the database value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the schema value. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set the schema value. + * + * @param schema the schema value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PostgreSqlLinkedService object itself. + */ + public PostgreSqlLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoAuthenticationType.java new file mode 100644 index 00000000000..118c24b75bb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for PrestoAuthenticationType. + */ +public final class PrestoAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for PrestoAuthenticationType. */ + public static final PrestoAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value LDAP for PrestoAuthenticationType. */ + public static final PrestoAuthenticationType LDAP = fromString("LDAP"); + + /** + * Creates or finds a PrestoAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding PrestoAuthenticationType + */ + @JsonCreator + public static PrestoAuthenticationType fromString(String name) { + return fromString(name, PrestoAuthenticationType.class); + } + + /** + * @return known PrestoAuthenticationType values + */ + public static Collection values() { + return values(PrestoAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoLinkedService.java new file mode 100644 index 00000000000..451a579c977 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoLinkedService.java @@ -0,0 +1,403 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Presto server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Presto") +@JsonFlatten +public class PrestoLinkedService extends LinkedServiceInner { + /** + * The IP address or host name of the Presto server. (i.e. + * 192.168.222.160). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The version of the Presto server. (i.e. 0.148-t). + */ + @JsonProperty(value = "typeProperties.serverVersion", required = true) + private Object serverVersion; + + /** + * The catalog context for all request against the server. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.port") + private Object port; + + /** + * The authentication mechanism used to connect to the Presto server. + * Possible values include: 'Anonymous', 'LDAP'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private PrestoAuthenticationType authenticationType; + + /** + * 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the serverVersion value. + * + * @return the serverVersion value + */ + public Object serverVersion() { + return this.serverVersion; + } + + /** + * Set the serverVersion value. + * + * @param serverVersion the serverVersion value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withServerVersion(Object serverVersion) { + this.serverVersion = serverVersion; + return this; + } + + /** + * Get the catalog value. + * + * @return the catalog value + */ + public Object catalog() { + return this.catalog; + } + + /** + * Set the catalog value. + * + * @param catalog the catalog value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withCatalog(Object catalog) { + this.catalog = catalog; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public PrestoAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the useSystemTrustStore value. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set the useSystemTrustStore value. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the allowHostNameCNMismatch value. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set the allowHostNameCNMismatch value. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the timeZoneID value. + * + * @return the timeZoneID value + */ + public Object timeZoneID() { + return this.timeZoneID; + } + + /** + * Set the timeZoneID value. + * + * @param timeZoneID the timeZoneID value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withTimeZoneID(Object timeZoneID) { + this.timeZoneID = timeZoneID; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the PrestoLinkedService object itself. + */ + public PrestoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoObjectDataset.java new file mode 100644 index 00000000000..cb7d9c4d953 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Presto server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PrestoObject") +public class PrestoObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoSource.java new file mode 100644 index 00000000000..4a68148342b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/PrestoSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Presto server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("PrestoSource") +public class PrestoSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the PrestoSource object itself. + */ + public PrestoSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksLinkedService.java new file mode 100644 index 00000000000..a671661ecc5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksLinkedService.java @@ -0,0 +1,183 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * QuickBooks server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("QuickBooks") +@JsonFlatten +public class QuickBooksLinkedService extends LinkedServiceInner { + /** + * The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com). + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The company ID of the QuickBooks company to authorize. + */ + @JsonProperty(value = "typeProperties.companyId", required = true) + private Object companyId; + + /** + * 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 endpoint value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the companyId value. + * + * @return the companyId value + */ + public Object companyId() { + return this.companyId; + } + + /** + * Set the companyId value. + * + * @param companyId the companyId value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withCompanyId(Object companyId) { + this.companyId = companyId; + return this; + } + + /** + * Get the accessToken value. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the accessToken value. + * + * @param accessToken the accessToken value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the accessTokenSecret value. + * + * @return the accessTokenSecret value + */ + public SecretBase accessTokenSecret() { + return this.accessTokenSecret; + } + + /** + * Set the accessTokenSecret value. + * + * @param accessTokenSecret the accessTokenSecret value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withAccessTokenSecret(SecretBase accessTokenSecret) { + this.accessTokenSecret = accessTokenSecret; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the QuickBooksLinkedService object itself. + */ + public QuickBooksLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksObjectDataset.java new file mode 100644 index 00000000000..7443cbb3f07 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * QuickBooks server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("QuickBooksObject") +public class QuickBooksObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksSource.java new file mode 100644 index 00000000000..9726045d910 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/QuickBooksSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity QuickBooks server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("QuickBooksSource") +public class QuickBooksSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the QuickBooksSource object itself. + */ + public QuickBooksSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceFrequency.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceFrequency.java new file mode 100644 index 00000000000..0ceb8691c6c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceFrequency.java @@ -0,0 +1,56 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for RecurrenceFrequency. + */ +public final class RecurrenceFrequency extends ExpandableStringEnum { + /** Static value NotSpecified for RecurrenceFrequency. */ + public static final RecurrenceFrequency NOT_SPECIFIED = fromString("NotSpecified"); + + /** Static value Minute for RecurrenceFrequency. */ + public static final RecurrenceFrequency MINUTE = fromString("Minute"); + + /** Static value Hour for RecurrenceFrequency. */ + public static final RecurrenceFrequency HOUR = fromString("Hour"); + + /** Static value Day for RecurrenceFrequency. */ + public static final RecurrenceFrequency DAY = fromString("Day"); + + /** Static value Week for RecurrenceFrequency. */ + public static final RecurrenceFrequency WEEK = fromString("Week"); + + /** Static value Month for RecurrenceFrequency. */ + public static final RecurrenceFrequency MONTH = fromString("Month"); + + /** Static value Year for RecurrenceFrequency. */ + public static final RecurrenceFrequency YEAR = fromString("Year"); + + /** + * Creates or finds a RecurrenceFrequency from its string representation. + * @param name a name to look for + * @return the corresponding RecurrenceFrequency + */ + @JsonCreator + public static RecurrenceFrequency fromString(String name) { + return fromString(name, RecurrenceFrequency.class); + } + + /** + * @return known RecurrenceFrequency values + */ + public static Collection values() { + return values(RecurrenceFrequency.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceSchedule.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceSchedule.java new file mode 100644 index 00000000000..879c7b79ed8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceSchedule.java @@ -0,0 +1,175 @@ +/** + * 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.datafactory; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The recurrence schedule. + */ +public class RecurrenceSchedule { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The minutes. + */ + @JsonProperty(value = "minutes") + private List minutes; + + /** + * The hours. + */ + @JsonProperty(value = "hours") + private List hours; + + /** + * The days of the week. + */ + @JsonProperty(value = "weekDays") + private List weekDays; + + /** + * The month days. + */ + @JsonProperty(value = "monthDays") + private List monthDays; + + /** + * The monthly occurrences. + */ + @JsonProperty(value = "monthlyOccurrences") + private List monthlyOccurrences; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the minutes value. + * + * @return the minutes value + */ + public List minutes() { + return this.minutes; + } + + /** + * Set the minutes value. + * + * @param minutes the minutes value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withMinutes(List minutes) { + this.minutes = minutes; + return this; + } + + /** + * Get the hours value. + * + * @return the hours value + */ + public List hours() { + return this.hours; + } + + /** + * Set the hours value. + * + * @param hours the hours value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withHours(List hours) { + this.hours = hours; + return this; + } + + /** + * Get the weekDays value. + * + * @return the weekDays value + */ + public List weekDays() { + return this.weekDays; + } + + /** + * Set the weekDays value. + * + * @param weekDays the weekDays value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withWeekDays(List weekDays) { + this.weekDays = weekDays; + return this; + } + + /** + * Get the monthDays value. + * + * @return the monthDays value + */ + public List monthDays() { + return this.monthDays; + } + + /** + * Set the monthDays value. + * + * @param monthDays the monthDays value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withMonthDays(List monthDays) { + this.monthDays = monthDays; + return this; + } + + /** + * Get the monthlyOccurrences value. + * + * @return the monthlyOccurrences value + */ + public List monthlyOccurrences() { + return this.monthlyOccurrences; + } + + /** + * Set the monthlyOccurrences value. + * + * @param monthlyOccurrences the monthlyOccurrences value to set + * @return the RecurrenceSchedule object itself. + */ + public RecurrenceSchedule withMonthlyOccurrences(List monthlyOccurrences) { + this.monthlyOccurrences = monthlyOccurrences; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceScheduleOccurrence.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceScheduleOccurrence.java new file mode 100644 index 00000000000..74d7bbcaa52 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RecurrenceScheduleOccurrence.java @@ -0,0 +1,97 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The recurrence schedule occurence. + */ +public class RecurrenceScheduleOccurrence { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The day of the week. Possible values include: 'Sunday', 'Monday', + * 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'. + */ + @JsonProperty(value = "day") + private DayOfWeek day; + + /** + * The occurrence. + */ + @JsonProperty(value = "occurrence") + private Integer occurrence; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the RecurrenceScheduleOccurrence object itself. + */ + public RecurrenceScheduleOccurrence withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the day value. + * + * @return the day value + */ + public DayOfWeek day() { + return this.day; + } + + /** + * Set the day value. + * + * @param day the day value to set + * @return the RecurrenceScheduleOccurrence object itself. + */ + public RecurrenceScheduleOccurrence withDay(DayOfWeek day) { + this.day = day; + return this; + } + + /** + * Get the occurrence value. + * + * @return the occurrence value + */ + public Integer occurrence() { + return this.occurrence; + } + + /** + * Set the occurrence value. + * + * @param occurrence the occurrence value to set + * @return the RecurrenceScheduleOccurrence object itself. + */ + public RecurrenceScheduleOccurrence withOccurrence(Integer occurrence) { + this.occurrence = occurrence; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RedirectIncompatibleRowSettings.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RedirectIncompatibleRowSettings.java new file mode 100644 index 00000000000..e8fcfed1a1c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RedirectIncompatibleRowSettings.java @@ -0,0 +1,100 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Redirect incompatible row settings. + */ +public class RedirectIncompatibleRowSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked + * service used for redirecting incompatible row. Must be specified if + * redirectIncompatibleRowSettings is specified. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "linkedServiceName", required = true) + private Object linkedServiceName; + + /** + * The path for storing the redirect incompatible row data. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "path") + private Object path; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the RedirectIncompatibleRowSettings object itself. + */ + public RedirectIncompatibleRowSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public Object linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the RedirectIncompatibleRowSettings object itself. + */ + public RedirectIncompatibleRowSettings withLinkedServiceName(Object linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the path value. + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the RedirectIncompatibleRowSettings object itself. + */ + public RedirectIncompatibleRowSettings withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RedshiftUnloadSettings.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RedshiftUnloadSettings.java new file mode 100644 index 00000000000..dd40dbd391a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RedshiftUnloadSettings.java @@ -0,0 +1,76 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Amazon S3 settings needed for the interim Amazon S3 when copying from + * Amazon Redshift with unload. With this, data from Amazon Redshift source + * will be unloaded into S3 first and then copied into the targeted sink from + * the interim S3. + */ +public class RedshiftUnloadSettings { + /** + * The name of the Amazon S3 linked service which will be used for the + * unload operation when copying from the Amazon Redshift source. + */ + @JsonProperty(value = "s3LinkedServiceName", required = true) + private LinkedServiceReference s3LinkedServiceName; + + /** + * The bucket of the interim Amazon S3 which will be used to store the + * unloaded data from Amazon Redshift source. The bucket must be in the + * same region as the Amazon Redshift source. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "bucketName", required = true) + private Object bucketName; + + /** + * Get the s3LinkedServiceName value. + * + * @return the s3LinkedServiceName value + */ + public LinkedServiceReference s3LinkedServiceName() { + return this.s3LinkedServiceName; + } + + /** + * Set the s3LinkedServiceName value. + * + * @param s3LinkedServiceName the s3LinkedServiceName value to set + * @return the RedshiftUnloadSettings object itself. + */ + public RedshiftUnloadSettings withS3LinkedServiceName(LinkedServiceReference s3LinkedServiceName) { + this.s3LinkedServiceName = s3LinkedServiceName; + return this; + } + + /** + * Get the bucketName value. + * + * @return the bucketName value + */ + public Object bucketName() { + return this.bucketName; + } + + /** + * Set the bucketName value. + * + * @param bucketName the bucketName value to set + * @return the RedshiftUnloadSettings object itself. + */ + public RedshiftUnloadSettings withBucketName(Object bucketName) { + this.bucketName = bucketName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RelationalSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RelationalSource.java new file mode 100644 index 00000000000..6e5895ef8b3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RelationalSource.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for various relational databases. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("RelationalSource") +public class RelationalSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the RelationalSource object itself. + */ + public RelationalSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RelationalTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RelationalTableDataset.java new file mode 100644 index 00000000000..cc15f2ea493 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RelationalTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The relational table dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("RelationalTable") +@JsonFlatten +public class RelationalTableDataset extends DatasetInner { + /** + * The relational table name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.tableName") + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the RelationalTableDataset object itself. + */ + public RelationalTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysLinkedService.java new file mode 100644 index 00000000000..0f0bca45a06 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysLinkedService.java @@ -0,0 +1,217 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Responsys linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Responsys") +@JsonFlatten +public class ResponsysLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Responsys server. + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The client ID associated with the Responsys application. Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The client secret associated with the Responsys application. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "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. Type: boolean (or Expression with resultType + * boolean). + */ + @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. 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 value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ResponsysLinkedService object itself. + */ + public ResponsysLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysObjectDataset.java new file mode 100644 index 00000000000..2a8a7d3c4b8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Responsys dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ResponsysObject") +public class ResponsysObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysSource.java new file mode 100644 index 00000000000..84b7a583a4d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ResponsysSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Responsys source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ResponsysSource") +public class ResponsysSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ResponsysSource object itself. + */ + public ResponsysSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RetryPolicy.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RetryPolicy.java new file mode 100644 index 00000000000..18ac020237c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/RetryPolicy.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Execution policy for an activity. + */ +public class RetryPolicy { + /** + * Maximum ordinary retry attempts. Default is 0. Type: integer (or + * Expression with resultType integer), minimum: 0. + */ + @JsonProperty(value = "count") + private Object count; + + /** + * Interval between retries in seconds. Default is 30. + */ + @JsonProperty(value = "intervalInSeconds") + private Integer intervalInSeconds; + + /** + * Get the count value. + * + * @return the count value + */ + public Object count() { + return this.count; + } + + /** + * Set the count value. + * + * @param count the count value to set + * @return the RetryPolicy object itself. + */ + public RetryPolicy withCount(Object count) { + this.count = count; + return this; + } + + /** + * Get the intervalInSeconds value. + * + * @return the intervalInSeconds value + */ + public Integer intervalInSeconds() { + return this.intervalInSeconds; + } + + /** + * Set the intervalInSeconds value. + * + * @param intervalInSeconds the intervalInSeconds value to set + * @return the RetryPolicy object itself. + */ + public RetryPolicy withIntervalInSeconds(Integer intervalInSeconds) { + this.intervalInSeconds = intervalInSeconds; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SSISExecutionRuntime.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SSISExecutionRuntime.java new file mode 100644 index 00000000000..664a5a9e5c4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SSISExecutionRuntime.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SSISExecutionRuntime. + */ +public final class SSISExecutionRuntime extends ExpandableStringEnum { + /** Static value x64 for SSISExecutionRuntime. */ + public static final SSISExecutionRuntime X64 = fromString("x64"); + + /** Static value x86 for SSISExecutionRuntime. */ + public static final SSISExecutionRuntime X86 = fromString("x86"); + + /** + * Creates or finds a SSISExecutionRuntime from its string representation. + * @param name a name to look for + * @return the corresponding SSISExecutionRuntime + */ + @JsonCreator + public static SSISExecutionRuntime fromString(String name) { + return fromString(name, SSISExecutionRuntime.class); + } + + /** + * @return known SSISExecutionRuntime values + */ + public static Collection values() { + return values(SSISExecutionRuntime.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SSISPackageLocation.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SSISPackageLocation.java new file mode 100644 index 00000000000..9c510708dcb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SSISPackageLocation.java @@ -0,0 +1,43 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SSIS package location. + */ +public class SSISPackageLocation { + /** + * The SSIS package path. + */ + @JsonProperty(value = "packagePath", required = true) + private String packagePath; + + /** + * Get the packagePath value. + * + * @return the packagePath value + */ + public String packagePath() { + return this.packagePath; + } + + /** + * Set the packagePath value. + * + * @param packagePath the packagePath value to set + * @return the SSISPackageLocation object itself. + */ + public SSISPackageLocation withPackagePath(String packagePath) { + this.packagePath = packagePath; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceLinkedService.java new file mode 100644 index 00000000000..4535de190cf --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceLinkedService.java @@ -0,0 +1,161 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Salesforce. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Salesforce") +@JsonFlatten +public class SalesforceLinkedService extends LinkedServiceInner { + /** + * 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.environmentUrl") + private Object environmentUrl; + + /** + * The username for Basic authentication of the Salesforce instance. Type: + * string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * The password for Basic authentication of the Salesforce instance. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The security token is required to remotely access Salesforce instance. + */ + @JsonProperty(value = "typeProperties.securityToken") + private SecretBase securityToken; + + /** + * 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 value. + * + * @return the environmentUrl value + */ + public Object environmentUrl() { + return this.environmentUrl; + } + + /** + * Set the environmentUrl value. + * + * @param environmentUrl the environmentUrl value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withEnvironmentUrl(Object environmentUrl) { + this.environmentUrl = environmentUrl; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the securityToken value. + * + * @return the securityToken value + */ + public SecretBase securityToken() { + return this.securityToken; + } + + /** + * Set the securityToken value. + * + * @param securityToken the securityToken value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withSecurityToken(SecretBase securityToken) { + this.securityToken = securityToken; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SalesforceLinkedService object itself. + */ + public SalesforceLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudLinkedService.java new file mode 100644 index 00000000000..b3c8cd2b3a0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudLinkedService.java @@ -0,0 +1,191 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Salesforce Marketing Cloud linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceMarketingCloud") +@JsonFlatten +public class SalesforceMarketingCloudLinkedService extends LinkedServiceInner { + /** + * The client ID associated with the Salesforce Marketing Cloud + * application. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The client secret associated with the Salesforce Marketing Cloud + * application. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "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. Type: boolean (or Expression with resultType + * boolean). + */ + @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. 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 clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SalesforceMarketingCloudLinkedService object itself. + */ + public SalesforceMarketingCloudLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudObjectDataset.java new file mode 100644 index 00000000000..1fbc1cc512f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Salesforce Marketing Cloud dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceMarketingCloudObject") +public class SalesforceMarketingCloudObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudSource.java new file mode 100644 index 00000000000..71d572cce10 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceMarketingCloudSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Salesforce Marketing Cloud source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceMarketingCloudSource") +public class SalesforceMarketingCloudSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the SalesforceMarketingCloudSource object itself. + */ + public SalesforceMarketingCloudSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceObjectDataset.java new file mode 100644 index 00000000000..11a4c5c0452 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceObjectDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The Salesforce object dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceObject") +@JsonFlatten +public class SalesforceObjectDataset extends DatasetInner { + /** + * The Salesforce object API name. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.objectApiName") + private Object objectApiName; + + /** + * Get the objectApiName value. + * + * @return the objectApiName value + */ + public Object objectApiName() { + return this.objectApiName; + } + + /** + * Set the objectApiName value. + * + * @param objectApiName the objectApiName value to set + * @return the SalesforceObjectDataset object itself. + */ + public SalesforceObjectDataset withObjectApiName(Object objectApiName) { + this.objectApiName = objectApiName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSink.java new file mode 100644 index 00000000000..62ba304eb58 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSink.java @@ -0,0 +1,108 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Salesforce sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceSink") +public class SalesforceSink extends CopySink { + /** + * The write behavior for the operation. Default is Insert. Possible values + * include: 'Insert', 'Upsert'. + */ + @JsonProperty(value = "writeBehavior") + private SalesforceSinkWriteBehavior writeBehavior; + + /** + * The name of the external ID field for upsert operation. Default value is + * 'Id' column. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "externalIdFieldName") + private Object externalIdFieldName; + + /** + * The flag indicating whether or not to ignore null values from input + * dataset (except key fields) during write operation. Default value is + * false. If set it to true, it means ADF will leave the data in the + * destination object unchanged when doing upsert/update operation and + * insert defined default value when doing insert operation, versus ADF + * will update the data in the destination object to NULL when doing + * upsert/update operation and insert NULL value when doing insert + * operation. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "ignoreNullValues") + private Object ignoreNullValues; + + /** + * Get the writeBehavior value. + * + * @return the writeBehavior value + */ + public SalesforceSinkWriteBehavior writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the writeBehavior value. + * + * @param writeBehavior the writeBehavior value to set + * @return the SalesforceSink object itself. + */ + public SalesforceSink withWriteBehavior(SalesforceSinkWriteBehavior writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + + /** + * Get the externalIdFieldName value. + * + * @return the externalIdFieldName value + */ + public Object externalIdFieldName() { + return this.externalIdFieldName; + } + + /** + * Set the externalIdFieldName value. + * + * @param externalIdFieldName the externalIdFieldName value to set + * @return the SalesforceSink object itself. + */ + public SalesforceSink withExternalIdFieldName(Object externalIdFieldName) { + this.externalIdFieldName = externalIdFieldName; + return this; + } + + /** + * Get the ignoreNullValues value. + * + * @return the ignoreNullValues value + */ + public Object ignoreNullValues() { + return this.ignoreNullValues; + } + + /** + * Set the ignoreNullValues value. + * + * @param ignoreNullValues the ignoreNullValues value to set + * @return the SalesforceSink object itself. + */ + public SalesforceSink withIgnoreNullValues(Object ignoreNullValues) { + this.ignoreNullValues = ignoreNullValues; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSinkWriteBehavior.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSinkWriteBehavior.java new file mode 100644 index 00000000000..ea156d3f5c3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSinkWriteBehavior.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SalesforceSinkWriteBehavior. + */ +public final class SalesforceSinkWriteBehavior extends ExpandableStringEnum { + /** Static value Insert for SalesforceSinkWriteBehavior. */ + public static final SalesforceSinkWriteBehavior INSERT = fromString("Insert"); + + /** Static value Upsert for SalesforceSinkWriteBehavior. */ + public static final SalesforceSinkWriteBehavior UPSERT = fromString("Upsert"); + + /** + * Creates or finds a SalesforceSinkWriteBehavior from its string representation. + * @param name a name to look for + * @return the corresponding SalesforceSinkWriteBehavior + */ + @JsonCreator + public static SalesforceSinkWriteBehavior fromString(String name) { + return fromString(name, SalesforceSinkWriteBehavior.class); + } + + /** + * @return known SalesforceSinkWriteBehavior values + */ + public static Collection values() { + return values(SalesforceSinkWriteBehavior.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSource.java new file mode 100644 index 00000000000..b6309f9a22c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSource.java @@ -0,0 +1,74 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Salesforce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SalesforceSource") +public class SalesforceSource extends CopySource { + /** + * Database query. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * The read behavior for the operation. Default is Query. Possible values + * include: 'Query', 'QueryAll'. + */ + @JsonProperty(value = "readBehavior") + private SalesforceSourceReadBehavior readBehavior; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the SalesforceSource object itself. + */ + public SalesforceSource withQuery(Object query) { + this.query = query; + return this; + } + + /** + * Get the readBehavior value. + * + * @return the readBehavior value + */ + public SalesforceSourceReadBehavior readBehavior() { + return this.readBehavior; + } + + /** + * Set the readBehavior value. + * + * @param readBehavior the readBehavior value to set + * @return the SalesforceSource object itself. + */ + public SalesforceSource withReadBehavior(SalesforceSourceReadBehavior readBehavior) { + this.readBehavior = readBehavior; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSourceReadBehavior.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSourceReadBehavior.java new file mode 100644 index 00000000000..c287af0e6ba --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SalesforceSourceReadBehavior.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SalesforceSourceReadBehavior. + */ +public final class SalesforceSourceReadBehavior extends ExpandableStringEnum { + /** Static value Query for SalesforceSourceReadBehavior. */ + public static final SalesforceSourceReadBehavior QUERY = fromString("Query"); + + /** Static value QueryAll for SalesforceSourceReadBehavior. */ + public static final SalesforceSourceReadBehavior QUERY_ALL = fromString("QueryAll"); + + /** + * Creates or finds a SalesforceSourceReadBehavior from its string representation. + * @param name a name to look for + * @return the corresponding SalesforceSourceReadBehavior + */ + @JsonCreator + public static SalesforceSourceReadBehavior fromString(String name) { + return fromString(name, SalesforceSourceReadBehavior.class); + } + + /** + * @return known SalesforceSourceReadBehavior values + */ + public static Collection values() { + return values(SalesforceSourceReadBehavior.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapBWLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapBWLinkedService.java new file mode 100644 index 00000000000..2e69383b76d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapBWLinkedService.java @@ -0,0 +1,188 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * SAP Business Warehouse Linked Service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapBW") +@JsonFlatten +public class SapBWLinkedService extends LinkedServiceInner { + /** + * Host name of the SAP BW instance. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * Username to access the SAP BW server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password to access the SAP BW server. + */ + @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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the systemNumber value. + * + * @return the systemNumber value + */ + public Object systemNumber() { + return this.systemNumber; + } + + /** + * Set the systemNumber value. + * + * @param systemNumber the systemNumber value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withSystemNumber(Object systemNumber) { + this.systemNumber = systemNumber; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapBWLinkedService object itself. + */ + public SapBWLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerLinkedService.java new file mode 100644 index 00000000000..de355ec40d1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerLinkedService.java @@ -0,0 +1,134 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for SAP Cloud for Customer. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapCloudForCustomer") +@JsonFlatten +public class SapCloudForCustomerLinkedService extends LinkedServiceInner { + /** + * 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.url", required = true) + private Object url; + + /** + * The username for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * The password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the url value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapCloudForCustomerLinkedService object itself. + */ + public SapCloudForCustomerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerResourceDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerResourceDataset.java new file mode 100644 index 00000000000..65ec5d32c6a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerResourceDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The path of the SAP Cloud for Customer OData entity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapCloudForCustomerResource") +@JsonFlatten +public class SapCloudForCustomerResourceDataset extends DatasetInner { + /** + * The path of the SAP Cloud for Customer OData entity. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.path", required = true) + private Object path; + + /** + * Get the path value. + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the SapCloudForCustomerResourceDataset object itself. + */ + public SapCloudForCustomerResourceDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSink.java new file mode 100644 index 00000000000..1f95d59d08b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSink.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity SAP Cloud for Customer sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapCloudForCustomerSink") +public class SapCloudForCustomerSink extends CopySink { + /** + * The write behavior for the operation. Default is 'Insert'. Possible + * values include: 'Insert', 'Update'. + */ + @JsonProperty(value = "writeBehavior") + private SapCloudForCustomerSinkWriteBehavior writeBehavior; + + /** + * Get the writeBehavior value. + * + * @return the writeBehavior value + */ + public SapCloudForCustomerSinkWriteBehavior writeBehavior() { + return this.writeBehavior; + } + + /** + * Set the writeBehavior value. + * + * @param writeBehavior the writeBehavior value to set + * @return the SapCloudForCustomerSink object itself. + */ + public SapCloudForCustomerSink withWriteBehavior(SapCloudForCustomerSinkWriteBehavior writeBehavior) { + this.writeBehavior = writeBehavior; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSinkWriteBehavior.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSinkWriteBehavior.java new file mode 100644 index 00000000000..fcd9364e22d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSinkWriteBehavior.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SapCloudForCustomerSinkWriteBehavior. + */ +public final class SapCloudForCustomerSinkWriteBehavior extends ExpandableStringEnum { + /** Static value Insert for SapCloudForCustomerSinkWriteBehavior. */ + public static final SapCloudForCustomerSinkWriteBehavior INSERT = fromString("Insert"); + + /** Static value Update for SapCloudForCustomerSinkWriteBehavior. */ + public static final SapCloudForCustomerSinkWriteBehavior UPDATE = fromString("Update"); + + /** + * Creates or finds a SapCloudForCustomerSinkWriteBehavior from its string representation. + * @param name a name to look for + * @return the corresponding SapCloudForCustomerSinkWriteBehavior + */ + @JsonCreator + public static SapCloudForCustomerSinkWriteBehavior fromString(String name) { + return fromString(name, SapCloudForCustomerSinkWriteBehavior.class); + } + + /** + * @return known SapCloudForCustomerSinkWriteBehavior values + */ + public static Collection values() { + return values(SapCloudForCustomerSinkWriteBehavior.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSource.java new file mode 100644 index 00000000000..c4e0da30546 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapCloudForCustomerSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for SAP Cloud for Customer source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapCloudForCustomerSource") +public class SapCloudForCustomerSource extends CopySource { + /** + * SAP Cloud for Customer OData query. For example, "$top=1". Type: string + * (or Expression with resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the SapCloudForCustomerSource object itself. + */ + public SapCloudForCustomerSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccLinkedService.java new file mode 100644 index 00000000000..f06d9618c8f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccLinkedService.java @@ -0,0 +1,134 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for SAP ERP Central Component(SAP ECC). + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapEcc") +@JsonFlatten +public class SapEccLinkedService extends LinkedServiceInner { + /** + * 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.url", required = true) + private String url; + + /** + * The username for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.username") + private String username; + + /** + * The password for Basic authentication. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private String encryptedCredential; + + /** + * Get the url value. + * + * @return the url value + */ + public String url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withUsername(String username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public String encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapEccLinkedService object itself. + */ + public SapEccLinkedService withEncryptedCredential(String encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccResourceDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccResourceDataset.java new file mode 100644 index 00000000000..6b26f8de85b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccResourceDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The path of the SAP ECC OData entity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapEccResource") +@JsonFlatten +public class SapEccResourceDataset extends DatasetInner { + /** + * The path of the SAP ECC OData entity. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.path", required = true) + private String path; + + /** + * Get the path value. + * + * @return the path value + */ + public String path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the SapEccResourceDataset object itself. + */ + public SapEccResourceDataset withPath(String path) { + this.path = path; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccSource.java new file mode 100644 index 00000000000..e1b335504b7 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapEccSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for SAP ECC source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapEccSource") +public class SapEccSource extends CopySource { + /** + * SAP ECC OData query. For example, "$top=1". Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "query") + private String query; + + /** + * Get the query value. + * + * @return the query value + */ + public String query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the SapEccSource object itself. + */ + public SapEccSource withQuery(String query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapHanaAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapHanaAuthenticationType.java new file mode 100644 index 00000000000..5f10c960080 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapHanaAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SapHanaAuthenticationType. + */ +public final class SapHanaAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for SapHanaAuthenticationType. */ + public static final SapHanaAuthenticationType BASIC = fromString("Basic"); + + /** Static value Windows for SapHanaAuthenticationType. */ + public static final SapHanaAuthenticationType WINDOWS = fromString("Windows"); + + /** + * Creates or finds a SapHanaAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding SapHanaAuthenticationType + */ + @JsonCreator + public static SapHanaAuthenticationType fromString(String name) { + return fromString(name, SapHanaAuthenticationType.class); + } + + /** + * @return known SapHanaAuthenticationType values + */ + public static Collection values() { + return values(SapHanaAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapHanaLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapHanaLinkedService.java new file mode 100644 index 00000000000..de4778af03f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SapHanaLinkedService.java @@ -0,0 +1,159 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * SAP HANA Linked Service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SapHana") +@JsonFlatten +public class SapHanaLinkedService extends LinkedServiceInner { + /** + * Host name of the SAP HANA server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * The authentication type to be used to connect to the SAP HANA server. + * Possible values include: 'Basic', 'Windows'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private SapHanaAuthenticationType authenticationType; + + /** + * Username to access the SAP HANA server. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password to access the SAP HANA server. + */ + @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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public SapHanaAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withAuthenticationType(SapHanaAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SapHanaLinkedService object itself. + */ + public SapHanaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ScheduleTrigger.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ScheduleTrigger.java new file mode 100644 index 00000000000..4e98a694828 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ScheduleTrigger.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Trigger that creates pipeline runs periodically, on schedule. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ScheduleTrigger") +@JsonFlatten +public class ScheduleTrigger extends MultiplePipelineTrigger { + /** + * Recurrence schedule configuration. + */ + @JsonProperty(value = "typeProperties.recurrence", required = true) + private ScheduleTriggerRecurrence recurrence; + + /** + * Get the recurrence value. + * + * @return the recurrence value + */ + public ScheduleTriggerRecurrence recurrence() { + return this.recurrence; + } + + /** + * Set the recurrence value. + * + * @param recurrence the recurrence value to set + * @return the ScheduleTrigger object itself. + */ + public ScheduleTrigger withRecurrence(ScheduleTriggerRecurrence recurrence) { + this.recurrence = recurrence; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ScheduleTriggerRecurrence.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ScheduleTriggerRecurrence.java new file mode 100644 index 00000000000..9a68f5567b4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ScheduleTriggerRecurrence.java @@ -0,0 +1,202 @@ +/** + * 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.datafactory; + +import java.util.Map; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The workflow trigger recurrence. + */ +public class ScheduleTriggerRecurrence { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The frequency. Possible values include: 'NotSpecified', 'Minute', + * 'Hour', 'Day', 'Week', 'Month', 'Year'. + */ + @JsonProperty(value = "frequency") + private RecurrenceFrequency frequency; + + /** + * The interval. + */ + @JsonProperty(value = "interval") + private Integer interval; + + /** + * The start time. + */ + @JsonProperty(value = "startTime") + private DateTime startTime; + + /** + * The end time. + */ + @JsonProperty(value = "endTime") + private DateTime endTime; + + /** + * The time zone. + */ + @JsonProperty(value = "timeZone") + private String timeZone; + + /** + * The recurrence schedule. + */ + @JsonProperty(value = "schedule") + private RecurrenceSchedule schedule; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the frequency value. + * + * @return the frequency value + */ + public RecurrenceFrequency frequency() { + return this.frequency; + } + + /** + * Set the frequency value. + * + * @param frequency the frequency value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withFrequency(RecurrenceFrequency frequency) { + this.frequency = frequency; + return this; + } + + /** + * Get the interval value. + * + * @return the interval value + */ + public Integer interval() { + return this.interval; + } + + /** + * Set the interval value. + * + * @param interval the interval value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withInterval(Integer interval) { + this.interval = interval; + return this; + } + + /** + * Get the startTime value. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the startTime value. + * + * @param startTime the startTime value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the endTime value. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the endTime value. + * + * @param endTime the endTime value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the timeZone value. + * + * @return the timeZone value + */ + public String timeZone() { + return this.timeZone; + } + + /** + * Set the timeZone value. + * + * @param timeZone the timeZone value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Get the schedule value. + * + * @return the schedule value + */ + public RecurrenceSchedule schedule() { + return this.schedule; + } + + /** + * Set the schedule value. + * + * @param schedule the schedule value to set + * @return the ScheduleTriggerRecurrence object itself. + */ + public ScheduleTriggerRecurrence withSchedule(RecurrenceSchedule schedule) { + this.schedule = schedule; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SecretBase.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SecretBase.java new file mode 100644 index 00000000000..c2ee46605b6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SecretBase.java @@ -0,0 +1,25 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The base definition of a secret type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SecretBase") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SecureString", value = SecureString.class), + @JsonSubTypes.Type(name = "AzureKeyVaultSecret", value = AzureKeyVaultSecretReference.class) +}) +public class SecretBase { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SecureString.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SecureString.java new file mode 100644 index 00000000000..f74efee1746 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SecureString.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Azure Data Factory secure string definition. The string value will be masked + * with asterisks '*' during Get or List API calls. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SecureString") +public class SecureString extends SecretBase { + /** + * Value of secure string. + */ + @JsonProperty(value = "value", required = true) + private String value; + + /** + * Get the value value. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set the value value. + * + * @param value the value value to set + * @return the SecureString object itself. + */ + public SecureString withValue(String value) { + this.value = value; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntime.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntime.java new file mode 100644 index 00000000000..dec55e8d111 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntime.java @@ -0,0 +1,50 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.IntegrationRuntimeInner; + +/** + * Self-hosted integration runtime. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SelfHosted") +@JsonFlatten +public class SelfHostedIntegrationRuntime extends IntegrationRuntimeInner { + /** + * The linkedInfo property. + */ + @JsonProperty(value = "typeProperties.linkedInfo") + private LinkedIntegrationRuntimeProperties linkedInfo; + + /** + * Get the linkedInfo value. + * + * @return the linkedInfo value + */ + public LinkedIntegrationRuntimeProperties linkedInfo() { + return this.linkedInfo; + } + + /** + * Set the linkedInfo value. + * + * @param linkedInfo the linkedInfo value to set + * @return the SelfHostedIntegrationRuntime object itself. + */ + public SelfHostedIntegrationRuntime withLinkedInfo(LinkedIntegrationRuntimeProperties linkedInfo) { + this.linkedInfo = linkedInfo; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntimeNodeStatus.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntimeNodeStatus.java new file mode 100644 index 00000000000..263b86cf87e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntimeNodeStatus.java @@ -0,0 +1,56 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SelfHostedIntegrationRuntimeNodeStatus. + */ +public final class SelfHostedIntegrationRuntimeNodeStatus extends ExpandableStringEnum { + /** Static value NeedRegistration for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus NEED_REGISTRATION = fromString("NeedRegistration"); + + /** Static value Online for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus ONLINE = fromString("Online"); + + /** Static value Limited for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus LIMITED = fromString("Limited"); + + /** Static value Offline for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus OFFLINE = fromString("Offline"); + + /** Static value Upgrading for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus UPGRADING = fromString("Upgrading"); + + /** Static value Initializing for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus INITIALIZING = fromString("Initializing"); + + /** Static value InitializeFailed for SelfHostedIntegrationRuntimeNodeStatus. */ + public static final SelfHostedIntegrationRuntimeNodeStatus INITIALIZE_FAILED = fromString("InitializeFailed"); + + /** + * Creates or finds a SelfHostedIntegrationRuntimeNodeStatus from its string representation. + * @param name a name to look for + * @return the corresponding SelfHostedIntegrationRuntimeNodeStatus + */ + @JsonCreator + public static SelfHostedIntegrationRuntimeNodeStatus fromString(String name) { + return fromString(name, SelfHostedIntegrationRuntimeNodeStatus.class); + } + + /** + * @return known SelfHostedIntegrationRuntimeNodeStatus values + */ + public static Collection values() { + return values(SelfHostedIntegrationRuntimeNodeStatus.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntimeStatus.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntimeStatus.java new file mode 100644 index 00000000000..55b6b5d7f2c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SelfHostedIntegrationRuntimeStatus.java @@ -0,0 +1,252 @@ +/** + * 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.datafactory; + +import org.joda.time.DateTime; +import java.util.List; +import com.microsoft.azure.management.datafactory.implementation.SelfHostedIntegrationRuntimeNodeInner; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Self-hosted integration runtime status. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SelfHosted") +@JsonFlatten +public class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { + /** + * The time at which the integration runtime was created, in ISO8601 + * format. + */ + @JsonProperty(value = "typeProperties.createTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime createTime; + + /** + * The task queue id of the integration runtime. + */ + @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). + * Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted'. + */ + @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 DateTime 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) + 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. + * Possible values include: 'On', 'Off'. + */ + @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; + + /** + * Get the createTime value. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + + /** + * Get the taskQueueId value. + * + * @return the taskQueueId value + */ + public String taskQueueId() { + return this.taskQueueId; + } + + /** + * Get the internalChannelEncryption value. + * + * @return the internalChannelEncryption value + */ + public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { + return this.internalChannelEncryption; + } + + /** + * Get the version value. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get the nodes value. + * + * @return the nodes value + */ + public List nodes() { + return this.nodes; + } + + /** + * Set the nodes value. + * + * @param nodes the nodes value to set + * @return the SelfHostedIntegrationRuntimeStatus object itself. + */ + public SelfHostedIntegrationRuntimeStatus withNodes(List nodes) { + this.nodes = nodes; + return this; + } + + /** + * Get the scheduledUpdateDate value. + * + * @return the scheduledUpdateDate value + */ + public DateTime scheduledUpdateDate() { + return this.scheduledUpdateDate; + } + + /** + * Get the updateDelayOffset value. + * + * @return the updateDelayOffset value + */ + public String updateDelayOffset() { + return this.updateDelayOffset; + } + + /** + * Get the localTimeZoneOffset value. + * + * @return the localTimeZoneOffset value + */ + public String localTimeZoneOffset() { + return this.localTimeZoneOffset; + } + + /** + * Get the capabilities value. + * + * @return the capabilities value + */ + public Map capabilities() { + return this.capabilities; + } + + /** + * Get the serviceUrls value. + * + * @return the serviceUrls value + */ + public List serviceUrls() { + return this.serviceUrls; + } + + /** + * Get the autoUpdate value. + * + * @return the autoUpdate value + */ + public IntegrationRuntimeAutoUpdate autoUpdate() { + return this.autoUpdate; + } + + /** + * Get the versionStatus value. + * + * @return the versionStatus value + */ + public String versionStatus() { + return this.versionStatus; + } + + /** + * Get the links value. + * + * @return the links value + */ + public List links() { + return this.links; + } + + /** + * Set the links value. + * + * @param links the links value to set + * @return the SelfHostedIntegrationRuntimeStatus object itself. + */ + public SelfHostedIntegrationRuntimeStatus withLinks(List links) { + this.links = links; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowAuthenticationType.java new file mode 100644 index 00000000000..160bab31334 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for ServiceNowAuthenticationType. + */ +public final class ServiceNowAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for ServiceNowAuthenticationType. */ + public static final ServiceNowAuthenticationType BASIC = fromString("Basic"); + + /** Static value OAuth2 for ServiceNowAuthenticationType. */ + public static final ServiceNowAuthenticationType OAUTH2 = fromString("OAuth2"); + + /** + * Creates or finds a ServiceNowAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding ServiceNowAuthenticationType + */ + @JsonCreator + public static ServiceNowAuthenticationType fromString(String name) { + return fromString(name, ServiceNowAuthenticationType.class); + } + + /** + * @return known ServiceNowAuthenticationType values + */ + public static Collection values() { + return values(ServiceNowAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowLinkedService.java new file mode 100644 index 00000000000..b6f59fabfb2 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowLinkedService.java @@ -0,0 +1,293 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * ServiceNow server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ServiceNow") +@JsonFlatten +public class ServiceNowLinkedService extends LinkedServiceInner { + /** + * The endpoint of the ServiceNow server. (i.e. ServiceNowData.com). + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The authentication type to use. Possible values include: 'Basic', + * 'OAuth2'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private ServiceNowAuthenticationType authenticationType; + + /** + * The user name used to connect to the ServiceNow server for Basic and + * OAuth2 authentication. + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * The password corresponding to the user name for Basic and OAuth2 + * authentication. + */ + @JsonProperty(value = "typeProperties.password") + private SecretBase password; + + /** + * The client id for OAuth2 authentication. + */ + @JsonProperty(value = "typeProperties.clientId") + private Object clientId; + + /** + * 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 value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public ServiceNowAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withAuthenticationType(ServiceNowAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ServiceNowLinkedService object itself. + */ + public ServiceNowLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowObjectDataset.java new file mode 100644 index 00000000000..d7d5bfa8ac0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * ServiceNow server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ServiceNowObject") +public class ServiceNowObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowSource.java new file mode 100644 index 00000000000..a794655f15f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ServiceNowSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity ServiceNow server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ServiceNowSource") +public class ServiceNowSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ServiceNowSource object itself. + */ + public ServiceNowSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SftpAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SftpAuthenticationType.java new file mode 100644 index 00000000000..7f5302e3e6c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SftpAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SftpAuthenticationType. + */ +public final class SftpAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for SftpAuthenticationType. */ + public static final SftpAuthenticationType BASIC = fromString("Basic"); + + /** Static value SshPublicKey for SftpAuthenticationType. */ + public static final SftpAuthenticationType SSH_PUBLIC_KEY = fromString("SshPublicKey"); + + /** + * Creates or finds a SftpAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding SftpAuthenticationType + */ + @JsonCreator + public static SftpAuthenticationType fromString(String name) { + return fromString(name, SftpAuthenticationType.class); + } + + /** + * @return known SftpAuthenticationType values + */ + public static Collection values() { + return values(SftpAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SftpServerLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SftpServerLinkedService.java new file mode 100644 index 00000000000..05fe0810646 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SftpServerLinkedService.java @@ -0,0 +1,328 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * 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 +public class SftpServerLinkedService extends LinkedServiceInner { + /** + * The SFTP server host name. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.port") + private Object port; + + /** + * The authentication type to be used to connect to the FTP server. + * Possible values include: 'Basic', 'SshPublicKey'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private SftpAuthenticationType authenticationType; + + /** + * The username used to log on to the SFTP server. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * Password to logon the SFTP server for Basic 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; + + /** + * 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public SftpAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withAuthenticationType(SftpAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + + /** + * Get the privateKeyPath value. + * + * @return the privateKeyPath value + */ + public Object privateKeyPath() { + return this.privateKeyPath; + } + + /** + * Set the privateKeyPath value. + * + * @param privateKeyPath the privateKeyPath value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPrivateKeyPath(Object privateKeyPath) { + this.privateKeyPath = privateKeyPath; + return this; + } + + /** + * Get the privateKeyContent value. + * + * @return the privateKeyContent value + */ + public SecretBase privateKeyContent() { + return this.privateKeyContent; + } + + /** + * Set the privateKeyContent value. + * + * @param privateKeyContent the privateKeyContent value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPrivateKeyContent(SecretBase privateKeyContent) { + this.privateKeyContent = privateKeyContent; + return this; + } + + /** + * Get the passPhrase value. + * + * @return the passPhrase value + */ + public SecretBase passPhrase() { + return this.passPhrase; + } + + /** + * Set the passPhrase value. + * + * @param passPhrase the passPhrase value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withPassPhrase(SecretBase passPhrase) { + this.passPhrase = passPhrase; + return this; + } + + /** + * Get the skipHostKeyValidation value. + * + * @return the skipHostKeyValidation value + */ + public Object skipHostKeyValidation() { + return this.skipHostKeyValidation; + } + + /** + * Set the skipHostKeyValidation value. + * + * @param skipHostKeyValidation the skipHostKeyValidation value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withSkipHostKeyValidation(Object skipHostKeyValidation) { + this.skipHostKeyValidation = skipHostKeyValidation; + return this; + } + + /** + * Get the hostKeyFingerprint value. + * + * @return the hostKeyFingerprint value + */ + public Object hostKeyFingerprint() { + return this.hostKeyFingerprint; + } + + /** + * Set the hostKeyFingerprint value. + * + * @param hostKeyFingerprint the hostKeyFingerprint value to set + * @return the SftpServerLinkedService object itself. + */ + public SftpServerLinkedService withHostKeyFingerprint(Object hostKeyFingerprint) { + this.hostKeyFingerprint = hostKeyFingerprint; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifyLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifyLinkedService.java new file mode 100644 index 00000000000..f3b30ba68a0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifyLinkedService.java @@ -0,0 +1,187 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Shopify Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Shopify") +@JsonFlatten +public class ShopifyLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Shopify server. (i.e. mystore.myshopify.com). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.accessToken") + private SecretBase accessToken; + + /** + * 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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the accessToken value. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the accessToken value. + * + * @param accessToken the accessToken value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ShopifyLinkedService object itself. + */ + public ShopifyLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifyObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifyObjectDataset.java new file mode 100644 index 00000000000..a1a6422b4a5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifyObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Shopify Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ShopifyObject") +public class ShopifyObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifySource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifySource.java new file mode 100644 index 00000000000..5dcd21434da --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ShopifySource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Shopify Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ShopifySource") +public class ShopifySource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ShopifySource object itself. + */ + public ShopifySource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkAuthenticationType.java new file mode 100644 index 00000000000..dfd7784e4c3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkAuthenticationType.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SparkAuthenticationType. + */ +public final class SparkAuthenticationType extends ExpandableStringEnum { + /** Static value Anonymous for SparkAuthenticationType. */ + public static final SparkAuthenticationType ANONYMOUS = fromString("Anonymous"); + + /** Static value Username for SparkAuthenticationType. */ + public static final SparkAuthenticationType USERNAME = fromString("Username"); + + /** Static value UsernameAndPassword for SparkAuthenticationType. */ + public static final SparkAuthenticationType USERNAME_AND_PASSWORD = fromString("UsernameAndPassword"); + + /** Static value WindowsAzureHDInsightService for SparkAuthenticationType. */ + public static final SparkAuthenticationType WINDOWS_AZURE_HDINSIGHT_SERVICE = fromString("WindowsAzureHDInsightService"); + + /** + * Creates or finds a SparkAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding SparkAuthenticationType + */ + @JsonCreator + public static SparkAuthenticationType fromString(String name) { + return fromString(name, SparkAuthenticationType.class); + } + + /** + * @return known SparkAuthenticationType values + */ + public static Collection values() { + return values(SparkAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkLinkedService.java new file mode 100644 index 00000000000..d1bb7045960 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkLinkedService.java @@ -0,0 +1,404 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Spark Server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Spark") +@JsonFlatten +public class SparkLinkedService extends LinkedServiceInner { + /** + * IP address or host name of the Spark server. + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The TCP port that the Spark server uses to listen for client + * connections. + */ + @JsonProperty(value = "typeProperties.port", required = true) + private Object port; + + /** + * The type of Spark server. Possible values include: 'SharkServer', + * 'SharkServer2', 'SparkThriftServer'. + */ + @JsonProperty(value = "typeProperties.serverType") + private SparkServerType serverType; + + /** + * The transport protocol to use in the Thrift layer. Possible values + * include: 'Binary', 'SASL', 'HTTP '. + */ + @JsonProperty(value = "typeProperties.thriftTransportProtocol") + private SparkThriftTransportProtocol thriftTransportProtocol; + + /** + * The authentication method used to access the Spark server. Possible + * values include: 'Anonymous', 'Username', 'UsernameAndPassword', + * 'WindowsAzureHDInsightService'. + */ + @JsonProperty(value = "typeProperties.authenticationType", required = true) + private SparkAuthenticationType authenticationType; + + /** + * 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 value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the port value. + * + * @return the port value + */ + public Object port() { + return this.port; + } + + /** + * Set the port value. + * + * @param port the port value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withPort(Object port) { + this.port = port; + return this; + } + + /** + * Get the serverType value. + * + * @return the serverType value + */ + public SparkServerType serverType() { + return this.serverType; + } + + /** + * Set the serverType value. + * + * @param serverType the serverType value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withServerType(SparkServerType serverType) { + this.serverType = serverType; + return this; + } + + /** + * Get the thriftTransportProtocol value. + * + * @return the thriftTransportProtocol value + */ + public SparkThriftTransportProtocol thriftTransportProtocol() { + return this.thriftTransportProtocol; + } + + /** + * Set the thriftTransportProtocol value. + * + * @param thriftTransportProtocol the thriftTransportProtocol value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withThriftTransportProtocol(SparkThriftTransportProtocol thriftTransportProtocol) { + this.thriftTransportProtocol = thriftTransportProtocol; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public SparkAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withAuthenticationType(SparkAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the httpPath value. + * + * @return the httpPath value + */ + public Object httpPath() { + return this.httpPath; + } + + /** + * Set the httpPath value. + * + * @param httpPath the httpPath value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withHttpPath(Object httpPath) { + this.httpPath = httpPath; + return this; + } + + /** + * Get the enableSsl value. + * + * @return the enableSsl value + */ + public Object enableSsl() { + return this.enableSsl; + } + + /** + * Set the enableSsl value. + * + * @param enableSsl the enableSsl value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withEnableSsl(Object enableSsl) { + this.enableSsl = enableSsl; + return this; + } + + /** + * Get the trustedCertPath value. + * + * @return the trustedCertPath value + */ + public Object trustedCertPath() { + return this.trustedCertPath; + } + + /** + * Set the trustedCertPath value. + * + * @param trustedCertPath the trustedCertPath value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withTrustedCertPath(Object trustedCertPath) { + this.trustedCertPath = trustedCertPath; + return this; + } + + /** + * Get the useSystemTrustStore value. + * + * @return the useSystemTrustStore value + */ + public Object useSystemTrustStore() { + return this.useSystemTrustStore; + } + + /** + * Set the useSystemTrustStore value. + * + * @param useSystemTrustStore the useSystemTrustStore value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withUseSystemTrustStore(Object useSystemTrustStore) { + this.useSystemTrustStore = useSystemTrustStore; + return this; + } + + /** + * Get the allowHostNameCNMismatch value. + * + * @return the allowHostNameCNMismatch value + */ + public Object allowHostNameCNMismatch() { + return this.allowHostNameCNMismatch; + } + + /** + * Set the allowHostNameCNMismatch value. + * + * @param allowHostNameCNMismatch the allowHostNameCNMismatch value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withAllowHostNameCNMismatch(Object allowHostNameCNMismatch) { + this.allowHostNameCNMismatch = allowHostNameCNMismatch; + return this; + } + + /** + * Get the allowSelfSignedServerCert value. + * + * @return the allowSelfSignedServerCert value + */ + public Object allowSelfSignedServerCert() { + return this.allowSelfSignedServerCert; + } + + /** + * Set the allowSelfSignedServerCert value. + * + * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) { + this.allowSelfSignedServerCert = allowSelfSignedServerCert; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SparkLinkedService object itself. + */ + public SparkLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkObjectDataset.java new file mode 100644 index 00000000000..3b41d08585a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Spark Server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SparkObject") +public class SparkObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkServerType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkServerType.java new file mode 100644 index 00000000000..e0fd3321796 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkServerType.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SparkServerType. + */ +public final class SparkServerType extends ExpandableStringEnum { + /** Static value SharkServer for SparkServerType. */ + public static final SparkServerType SHARK_SERVER = fromString("SharkServer"); + + /** Static value SharkServer2 for SparkServerType. */ + public static final SparkServerType SHARK_SERVER2 = fromString("SharkServer2"); + + /** Static value SparkThriftServer for SparkServerType. */ + public static final SparkServerType SPARK_THRIFT_SERVER = fromString("SparkThriftServer"); + + /** + * Creates or finds a SparkServerType from its string representation. + * @param name a name to look for + * @return the corresponding SparkServerType + */ + @JsonCreator + public static SparkServerType fromString(String name) { + return fromString(name, SparkServerType.class); + } + + /** + * @return known SparkServerType values + */ + public static Collection values() { + return values(SparkServerType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkSource.java new file mode 100644 index 00000000000..6d39aafa0eb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Spark Server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SparkSource") +public class SparkSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the SparkSource object itself. + */ + public SparkSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkThriftTransportProtocol.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkThriftTransportProtocol.java new file mode 100644 index 00000000000..41e2d9aedb9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SparkThriftTransportProtocol.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SparkThriftTransportProtocol. + */ +public final class SparkThriftTransportProtocol extends ExpandableStringEnum { + /** Static value Binary for SparkThriftTransportProtocol. */ + public static final SparkThriftTransportProtocol BINARY = fromString("Binary"); + + /** Static value SASL for SparkThriftTransportProtocol. */ + public static final SparkThriftTransportProtocol SASL = fromString("SASL"); + + /** Static value HTTP for SparkThriftTransportProtocol. */ + public static final SparkThriftTransportProtocol HTTP_ = fromString("HTTP "); + + /** + * Creates or finds a SparkThriftTransportProtocol from its string representation. + * @param name a name to look for + * @return the corresponding SparkThriftTransportProtocol + */ + @JsonCreator + public static SparkThriftTransportProtocol fromString(String name) { + return fromString(name, SparkThriftTransportProtocol.class); + } + + /** + * @return known SparkThriftTransportProtocol values + */ + public static Collection values() { + return values(SparkThriftTransportProtocol.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlDWSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlDWSink.java new file mode 100644 index 00000000000..249b9e3077f --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlDWSink.java @@ -0,0 +1,101 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity SQL Data Warehouse sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlDWSink") +public class SqlDWSink extends CopySink { + /** + * SQL pre-copy script. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "preCopyScript") + private Object preCopyScript; + + /** + * Indicates to use PolyBase to copy data into SQL Data Warehouse when + * applicable. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "allowPolyBase") + private Object allowPolyBase; + + /** + * Specifies PolyBase-related settings when allowPolyBase is true. + */ + @JsonProperty(value = "polyBaseSettings") + private PolybaseSettings polyBaseSettings; + + /** + * Get the preCopyScript value. + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set the preCopyScript value. + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlDWSink object itself. + */ + public SqlDWSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get the allowPolyBase value. + * + * @return the allowPolyBase value + */ + public Object allowPolyBase() { + return this.allowPolyBase; + } + + /** + * Set the allowPolyBase value. + * + * @param allowPolyBase the allowPolyBase value to set + * @return the SqlDWSink object itself. + */ + public SqlDWSink withAllowPolyBase(Object allowPolyBase) { + this.allowPolyBase = allowPolyBase; + return this; + } + + /** + * Get the polyBaseSettings value. + * + * @return the polyBaseSettings value + */ + public PolybaseSettings polyBaseSettings() { + return this.polyBaseSettings; + } + + /** + * Set the polyBaseSettings value. + * + * @param polyBaseSettings the polyBaseSettings value to set + * @return the SqlDWSink object itself. + */ + public SqlDWSink withPolyBaseSettings(PolybaseSettings polyBaseSettings) { + this.polyBaseSettings = polyBaseSettings; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlDWSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlDWSource.java new file mode 100644 index 00000000000..a2d3468e8dd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlDWSource.java @@ -0,0 +1,104 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity SQL Data Warehouse source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlDWSource") +public class SqlDWSource extends CopySource { + /** + * SQL Data Warehouse reader query. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "sqlReaderQuery") + private Object sqlReaderQuery; + + /** + * Name of the stored procedure for a SQL Data Warehouse 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"}}". Type: object (or Expression + * with resultType object), itemType: StoredProcedureParameter. + */ + @JsonProperty(value = "storedProcedureParameters") + private Object storedProcedureParameters; + + /** + * Get the sqlReaderQuery value. + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set the sqlReaderQuery value. + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlDWSource object itself. + */ + public SqlDWSource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get the sqlReaderStoredProcedureName value. + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set the sqlReaderStoredProcedureName value. + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlDWSource object itself. + */ + public SqlDWSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get the storedProcedureParameters value. + * + * @return the storedProcedureParameters value + */ + public Object storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set the storedProcedureParameters value. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlDWSource object itself. + */ + public SqlDWSource withStoredProcedureParameters(Object storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerLinkedService.java new file mode 100644 index 00000000000..c9455980147 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerLinkedService.java @@ -0,0 +1,131 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * SQL Server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlServer") +@JsonFlatten +public class SqlServerLinkedService extends LinkedServiceInner { + /** + * The connection string. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private SecretBase connectionString; + + /** + * The on-premises Windows authentication user name. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /** + * The on-premises Windows authentication password. + */ + @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 connectionString value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the userName value. + * + * @return the userName value + */ + public Object userName() { + return this.userName; + } + + /** + * Set the userName value. + * + * @param userName the userName value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SqlServerLinkedService object itself. + */ + public SqlServerLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerStoredProcedureActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerStoredProcedureActivity.java new file mode 100644 index 00000000000..f08e6cfd9ce --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerStoredProcedureActivity.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * SQL stored procedure activity type. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlServerStoredProcedure") +@JsonFlatten +public class SqlServerStoredProcedureActivity extends ExecutionActivity { + /** + * Stored procedure name. Type: string (or Expression with resultType + * string). + */ + @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") + private Map storedProcedureParameters; + + /** + * Get the storedProcedureName value. + * + * @return the storedProcedureName value + */ + public Object storedProcedureName() { + return this.storedProcedureName; + } + + /** + * Set the storedProcedureName value. + * + * @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 value. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set the storedProcedureParameters value. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlServerStoredProcedureActivity object itself. + */ + public SqlServerStoredProcedureActivity withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerTableDataset.java new file mode 100644 index 00000000000..183f903b3cc --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlServerTableDataset.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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * The on-premises SQL Server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlServerTable") +@JsonFlatten +public class SqlServerTableDataset extends DatasetInner { + /** + * The table name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.tableName", required = true) + private Object tableName; + + /** + * Get the tableName value. + * + * @return the tableName value + */ + public Object tableName() { + return this.tableName; + } + + /** + * Set the tableName value. + * + * @param tableName the tableName value to set + * @return the SqlServerTableDataset object itself. + */ + public SqlServerTableDataset withTableName(Object tableName) { + this.tableName = tableName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlSink.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlSink.java new file mode 100644 index 00000000000..caa948a29ae --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlSink.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.datafactory; + +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 SQL sink. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlSink") +public class SqlSink 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; + + /** + * Get the sqlWriterStoredProcedureName value. + * + * @return the sqlWriterStoredProcedureName value + */ + public Object sqlWriterStoredProcedureName() { + return this.sqlWriterStoredProcedureName; + } + + /** + * Set the sqlWriterStoredProcedureName value. + * + * @param sqlWriterStoredProcedureName the sqlWriterStoredProcedureName value to set + * @return the SqlSink object itself. + */ + public SqlSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName) { + this.sqlWriterStoredProcedureName = sqlWriterStoredProcedureName; + return this; + } + + /** + * Get the sqlWriterTableType value. + * + * @return the sqlWriterTableType value + */ + public Object sqlWriterTableType() { + return this.sqlWriterTableType; + } + + /** + * Set the sqlWriterTableType value. + * + * @param sqlWriterTableType the sqlWriterTableType value to set + * @return the SqlSink object itself. + */ + public SqlSink withSqlWriterTableType(Object sqlWriterTableType) { + this.sqlWriterTableType = sqlWriterTableType; + return this; + } + + /** + * Get the preCopyScript value. + * + * @return the preCopyScript value + */ + public Object preCopyScript() { + return this.preCopyScript; + } + + /** + * Set the preCopyScript value. + * + * @param preCopyScript the preCopyScript value to set + * @return the SqlSink object itself. + */ + public SqlSink withPreCopyScript(Object preCopyScript) { + this.preCopyScript = preCopyScript; + return this; + } + + /** + * Get the storedProcedureParameters value. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set the storedProcedureParameters value. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlSink object itself. + */ + public SqlSink withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlSource.java new file mode 100644 index 00000000000..b04e697f5d4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SqlSource.java @@ -0,0 +1,103 @@ +/** + * 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.datafactory; + +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 SQL source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SqlSource") +public class SqlSource 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 SQL Database 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; + + /** + * Get the sqlReaderQuery value. + * + * @return the sqlReaderQuery value + */ + public Object sqlReaderQuery() { + return this.sqlReaderQuery; + } + + /** + * Set the sqlReaderQuery value. + * + * @param sqlReaderQuery the sqlReaderQuery value to set + * @return the SqlSource object itself. + */ + public SqlSource withSqlReaderQuery(Object sqlReaderQuery) { + this.sqlReaderQuery = sqlReaderQuery; + return this; + } + + /** + * Get the sqlReaderStoredProcedureName value. + * + * @return the sqlReaderStoredProcedureName value + */ + public Object sqlReaderStoredProcedureName() { + return this.sqlReaderStoredProcedureName; + } + + /** + * Set the sqlReaderStoredProcedureName value. + * + * @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set + * @return the SqlSource object itself. + */ + public SqlSource withSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) { + this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName; + return this; + } + + /** + * Get the storedProcedureParameters value. + * + * @return the storedProcedureParameters value + */ + public Map storedProcedureParameters() { + return this.storedProcedureParameters; + } + + /** + * Set the storedProcedureParameters value. + * + * @param storedProcedureParameters the storedProcedureParameters value to set + * @return the SqlSource object itself. + */ + public SqlSource withStoredProcedureParameters(Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareLinkedService.java new file mode 100644 index 00000000000..4b675aa69fa --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareLinkedService.java @@ -0,0 +1,239 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Square Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Square") +@JsonFlatten +public class SquareLinkedService extends LinkedServiceInner { + /** + * The URL of the Square instance. (i.e. mystore.mysquare.com). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The client ID associated with your Square application. + */ + @JsonProperty(value = "typeProperties.clientId", required = true) + private Object clientId; + + /** + * The client secret associated with your Square application. + */ + @JsonProperty(value = "typeProperties.clientSecret") + private SecretBase clientSecret; + + /** + * The redirect URL assigned in the Square application dashboard. (i.e. + * http://localhost:2500). + */ + @JsonProperty(value = "typeProperties.redirectUri", required = true) + private Object redirectUri; + + /** + * 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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the clientId value. + * + * @return the clientId value + */ + public Object clientId() { + return this.clientId; + } + + /** + * Set the clientId value. + * + * @param clientId the clientId value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withClientId(Object clientId) { + this.clientId = clientId; + return this; + } + + /** + * Get the clientSecret value. + * + * @return the clientSecret value + */ + public SecretBase clientSecret() { + return this.clientSecret; + } + + /** + * Set the clientSecret value. + * + * @param clientSecret the clientSecret value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withClientSecret(SecretBase clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + /** + * Get the redirectUri value. + * + * @return the redirectUri value + */ + public Object redirectUri() { + return this.redirectUri; + } + + /** + * Set the redirectUri value. + * + * @param redirectUri the redirectUri value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withRedirectUri(Object redirectUri) { + this.redirectUri = redirectUri; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SquareLinkedService object itself. + */ + public SquareLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareObjectDataset.java new file mode 100644 index 00000000000..e1025dc66a5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Square Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SquareObject") +public class SquareObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareSource.java new file mode 100644 index 00000000000..eeac6cdc94e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SquareSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Square Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("SquareSource") +public class SquareSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the SquareSource object itself. + */ + public SquareSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StagingSettings.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StagingSettings.java new file mode 100644 index 00000000000..7f11839e6ce --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StagingSettings.java @@ -0,0 +1,125 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Staging settings. + */ +public class StagingSettings { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Staging linked service reference. + */ + @JsonProperty(value = "linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; + + /** + * The path to storage for storing the interim data. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "path") + private Object path; + + /** + * Specifies whether to use compression when copying data via an interim + * staging. Default value is false. Type: boolean (or Expression with + * resultType boolean). + */ + @JsonProperty(value = "enableCompression") + private Object enableCompression; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the StagingSettings object itself. + */ + public StagingSettings withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the StagingSettings object itself. + */ + public StagingSettings withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the path value. + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the StagingSettings object itself. + */ + public StagingSettings withPath(Object path) { + this.path = path; + return this; + } + + /** + * Get the enableCompression value. + * + * @return the enableCompression value + */ + public Object enableCompression() { + return this.enableCompression; + } + + /** + * Set the enableCompression value. + * + * @param enableCompression the enableCompression value to set + * @return the StagingSettings object itself. + */ + public StagingSettings withEnableCompression(Object enableCompression) { + this.enableCompression = enableCompression; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StoredProcedureParameter.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StoredProcedureParameter.java new file mode 100644 index 00000000000..379a3ff8a53 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StoredProcedureParameter.java @@ -0,0 +1,71 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SQL stored procedure parameter. + */ +public class StoredProcedureParameter { + /** + * Stored procedure parameter value. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "value", required = true) + private Object value; + + /** + * Stored procedure parameter type. Possible values include: 'String', + * 'Int', 'Decimal', 'Guid', 'Boolean', 'Date'. + */ + @JsonProperty(value = "type") + private StoredProcedureParameterType type; + + /** + * Get the value value. + * + * @return the value value + */ + public Object value() { + return this.value; + } + + /** + * Set the value value. + * + * @param value the value value to set + * @return the StoredProcedureParameter object itself. + */ + public StoredProcedureParameter withValue(Object value) { + this.value = value; + return this; + } + + /** + * Get the type value. + * + * @return the type value + */ + public StoredProcedureParameterType type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the StoredProcedureParameter object itself. + */ + public StoredProcedureParameter withType(StoredProcedureParameterType type) { + this.type = type; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StoredProcedureParameterType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StoredProcedureParameterType.java new file mode 100644 index 00000000000..44dd86ed04b --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/StoredProcedureParameterType.java @@ -0,0 +1,53 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for StoredProcedureParameterType. + */ +public final class StoredProcedureParameterType extends ExpandableStringEnum { + /** Static value String for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType STRING = fromString("String"); + + /** Static value Int for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType INT = fromString("Int"); + + /** Static value Decimal for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType DECIMAL = fromString("Decimal"); + + /** Static value Guid for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType GUID = fromString("Guid"); + + /** Static value Boolean for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType BOOLEAN = fromString("Boolean"); + + /** Static value Date for StoredProcedureParameterType. */ + public static final StoredProcedureParameterType DATE = fromString("Date"); + + /** + * Creates or finds a StoredProcedureParameterType from its string representation. + * @param name a name to look for + * @return the corresponding StoredProcedureParameterType + */ + @JsonCreator + public static StoredProcedureParameterType fromString(String name) { + return fromString(name, StoredProcedureParameterType.class); + } + + /** + * @return known StoredProcedureParameterType values + */ + public static Collection values() { + return values(StoredProcedureParameterType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SybaseAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SybaseAuthenticationType.java new file mode 100644 index 00000000000..7e835ee8a84 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SybaseAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SybaseAuthenticationType. + */ +public final class SybaseAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for SybaseAuthenticationType. */ + public static final SybaseAuthenticationType BASIC = fromString("Basic"); + + /** Static value Windows for SybaseAuthenticationType. */ + public static final SybaseAuthenticationType WINDOWS = fromString("Windows"); + + /** + * Creates or finds a SybaseAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding SybaseAuthenticationType + */ + @JsonCreator + public static SybaseAuthenticationType fromString(String name) { + return fromString(name, SybaseAuthenticationType.class); + } + + /** + * @return known SybaseAuthenticationType values + */ + public static Collection values() { + return values(SybaseAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SybaseLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SybaseLinkedService.java new file mode 100644 index 00000000000..55833d9aec1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/SybaseLinkedService.java @@ -0,0 +1,213 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Sybase data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Sybase") +@JsonFlatten +public class SybaseLinkedService extends LinkedServiceInner { + /** + * Server name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * Database name for connection. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.database", required = true) + private Object database; + + /** + * Schema name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schema; + + /** + * AuthenticationType to be used for connection. Possible values include: + * 'Basic', 'Windows'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private SybaseAuthenticationType authenticationType; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * 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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the database value. + * + * @return the database value + */ + public Object database() { + return this.database; + } + + /** + * Set the database value. + * + * @param database the database value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withDatabase(Object database) { + this.database = database; + return this; + } + + /** + * Get the schema value. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set the schema value. + * + * @param schema the schema value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public SybaseAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withAuthenticationType(SybaseAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the SybaseLinkedService object itself. + */ + public SybaseLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TabularTranslator.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TabularTranslator.java new file mode 100644 index 00000000000..fdb31f7d73a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TabularTranslator.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity tabular translator. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TabularTranslator") +public class TabularTranslator extends CopyTranslator { + /** + * Column mappings. Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "columnMappings") + private Object columnMappings; + + /** + * Get the columnMappings value. + * + * @return the columnMappings value + */ + public Object columnMappings() { + return this.columnMappings; + } + + /** + * Set the columnMappings value. + * + * @param columnMappings the columnMappings value to set + * @return the TabularTranslator object itself. + */ + public TabularTranslator withColumnMappings(Object columnMappings) { + this.columnMappings = columnMappings; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TeradataAuthenticationType.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TeradataAuthenticationType.java new file mode 100644 index 00000000000..eee38963877 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TeradataAuthenticationType.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TeradataAuthenticationType. + */ +public final class TeradataAuthenticationType extends ExpandableStringEnum { + /** Static value Basic for TeradataAuthenticationType. */ + public static final TeradataAuthenticationType BASIC = fromString("Basic"); + + /** Static value Windows for TeradataAuthenticationType. */ + public static final TeradataAuthenticationType WINDOWS = fromString("Windows"); + + /** + * Creates or finds a TeradataAuthenticationType from its string representation. + * @param name a name to look for + * @return the corresponding TeradataAuthenticationType + */ + @JsonCreator + public static TeradataAuthenticationType fromString(String name) { + return fromString(name, TeradataAuthenticationType.class); + } + + /** + * @return known TeradataAuthenticationType values + */ + public static Collection values() { + return values(TeradataAuthenticationType.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TeradataLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TeradataLinkedService.java new file mode 100644 index 00000000000..309cef7f813 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TeradataLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Linked service for Teradata data source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Teradata") +@JsonFlatten +public class TeradataLinkedService extends LinkedServiceInner { + /** + * Server name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.server", required = true) + private Object server; + + /** + * Schema name for connection. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schema; + + /** + * AuthenticationType to be used for connection. Possible values include: + * 'Basic', 'Windows'. + */ + @JsonProperty(value = "typeProperties.authenticationType") + private TeradataAuthenticationType authenticationType; + + /** + * Username for authentication. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "typeProperties.username") + private Object username; + + /** + * 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 value. + * + * @return the server value + */ + public Object server() { + return this.server; + } + + /** + * Set the server value. + * + * @param server the server value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withServer(Object server) { + this.server = server; + return this; + } + + /** + * Get the schema value. + * + * @return the schema value + */ + public Object schema() { + return this.schema; + } + + /** + * Set the schema value. + * + * @param schema the schema value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withSchema(Object schema) { + this.schema = schema; + return this; + } + + /** + * Get the authenticationType value. + * + * @return the authenticationType value + */ + public TeradataAuthenticationType authenticationType() { + return this.authenticationType; + } + + /** + * Set the authenticationType value. + * + * @param authenticationType the authenticationType value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withAuthenticationType(TeradataAuthenticationType authenticationType) { + this.authenticationType = authenticationType; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withPassword(SecretBase password) { + this.password = password; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the TeradataLinkedService object itself. + */ + public TeradataLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TextFormat.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TextFormat.java new file mode 100644 index 00000000000..5ac33bda498 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TextFormat.java @@ -0,0 +1,270 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The data stored in text format. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TextFormat") +public class TextFormat extends DatasetStorageFormat { + /** + * 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 escape character. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "escapeChar") + private Object escapeChar; + + /** + * The quote character. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "quoteChar") + private Object quoteChar; + + /** + * The null value string. Type: string (or Expression with resultType + * string). + */ + @JsonProperty(value = "nullValue") + private Object nullValue; + + /** + * 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; + + /** + * Treat empty column values in the text file as null. The default value is + * true. Type: boolean (or Expression with resultType boolean). + */ + @JsonProperty(value = "treatEmptyAsNull") + private Object treatEmptyAsNull; + + /** + * The number of lines/rows to be skipped when parsing text files. The + * default value is 0. Type: integer (or Expression with resultType + * integer). + */ + @JsonProperty(value = "skipLineCount") + private Object skipLineCount; + + /** + * 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; + + /** + * Get the columnDelimiter value. + * + * @return the columnDelimiter value + */ + public Object columnDelimiter() { + return this.columnDelimiter; + } + + /** + * Set the columnDelimiter value. + * + * @param columnDelimiter the columnDelimiter value to set + * @return the TextFormat object itself. + */ + public TextFormat withColumnDelimiter(Object columnDelimiter) { + this.columnDelimiter = columnDelimiter; + return this; + } + + /** + * Get the rowDelimiter value. + * + * @return the rowDelimiter value + */ + public Object rowDelimiter() { + return this.rowDelimiter; + } + + /** + * Set the rowDelimiter value. + * + * @param rowDelimiter the rowDelimiter value to set + * @return the TextFormat object itself. + */ + public TextFormat withRowDelimiter(Object rowDelimiter) { + this.rowDelimiter = rowDelimiter; + return this; + } + + /** + * Get the escapeChar value. + * + * @return the escapeChar value + */ + public Object escapeChar() { + return this.escapeChar; + } + + /** + * Set the escapeChar value. + * + * @param escapeChar the escapeChar value to set + * @return the TextFormat object itself. + */ + public TextFormat withEscapeChar(Object escapeChar) { + this.escapeChar = escapeChar; + return this; + } + + /** + * Get the quoteChar value. + * + * @return the quoteChar value + */ + public Object quoteChar() { + return this.quoteChar; + } + + /** + * Set the quoteChar value. + * + * @param quoteChar the quoteChar value to set + * @return the TextFormat object itself. + */ + public TextFormat withQuoteChar(Object quoteChar) { + this.quoteChar = quoteChar; + return this; + } + + /** + * Get the nullValue value. + * + * @return the nullValue value + */ + public Object nullValue() { + return this.nullValue; + } + + /** + * Set the nullValue value. + * + * @param nullValue the nullValue value to set + * @return the TextFormat object itself. + */ + public TextFormat withNullValue(Object nullValue) { + this.nullValue = nullValue; + return this; + } + + /** + * Get the encodingName value. + * + * @return the encodingName value + */ + public Object encodingName() { + return this.encodingName; + } + + /** + * Set the encodingName value. + * + * @param encodingName the encodingName value to set + * @return the TextFormat object itself. + */ + public TextFormat withEncodingName(Object encodingName) { + this.encodingName = encodingName; + return this; + } + + /** + * Get the treatEmptyAsNull value. + * + * @return the treatEmptyAsNull value + */ + public Object treatEmptyAsNull() { + return this.treatEmptyAsNull; + } + + /** + * Set the treatEmptyAsNull value. + * + * @param treatEmptyAsNull the treatEmptyAsNull value to set + * @return the TextFormat object itself. + */ + public TextFormat withTreatEmptyAsNull(Object treatEmptyAsNull) { + this.treatEmptyAsNull = treatEmptyAsNull; + return this; + } + + /** + * Get the skipLineCount value. + * + * @return the skipLineCount value + */ + public Object skipLineCount() { + return this.skipLineCount; + } + + /** + * Set the skipLineCount value. + * + * @param skipLineCount the skipLineCount value to set + * @return the TextFormat object itself. + */ + public TextFormat withSkipLineCount(Object skipLineCount) { + this.skipLineCount = skipLineCount; + return this; + } + + /** + * Get the firstRowAsHeader value. + * + * @return the firstRowAsHeader value + */ + public Object firstRowAsHeader() { + return this.firstRowAsHeader; + } + + /** + * Set the firstRowAsHeader value. + * + * @param firstRowAsHeader the firstRowAsHeader value to set + * @return the TextFormat object itself. + */ + public TextFormat withFirstRowAsHeader(Object firstRowAsHeader) { + this.firstRowAsHeader = firstRowAsHeader; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerPipelineReference.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerPipelineReference.java new file mode 100644 index 00000000000..f5f1353a536 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerPipelineReference.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Pipeline that needs to be triggered with the given parameters. + */ +public class TriggerPipelineReference { + /** + * Pipeline reference. + */ + @JsonProperty(value = "pipelineReference") + private PipelineReference pipelineReference; + + /** + * Pipeline parameters. + */ + @JsonProperty(value = "parameters") + private Map parameters; + + /** + * Get the pipelineReference value. + * + * @return the pipelineReference value + */ + public PipelineReference pipelineReference() { + return this.pipelineReference; + } + + /** + * Set the pipelineReference value. + * + * @param pipelineReference the pipelineReference value to set + * @return the TriggerPipelineReference object itself. + */ + public TriggerPipelineReference withPipelineReference(PipelineReference pipelineReference) { + this.pipelineReference = pipelineReference; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the TriggerPipelineReference object itself. + */ + public TriggerPipelineReference withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerRunStatus.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerRunStatus.java new file mode 100644 index 00000000000..37ed8a96039 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerRunStatus.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TriggerRunStatus. + */ +public final class TriggerRunStatus extends ExpandableStringEnum { + /** Static value Succeeded for TriggerRunStatus. */ + public static final TriggerRunStatus SUCCEEDED = fromString("Succeeded"); + + /** Static value Failed for TriggerRunStatus. */ + public static final TriggerRunStatus FAILED = fromString("Failed"); + + /** Static value Inprogress for TriggerRunStatus. */ + public static final TriggerRunStatus INPROGRESS = fromString("Inprogress"); + + /** + * Creates or finds a TriggerRunStatus from its string representation. + * @param name a name to look for + * @return the corresponding TriggerRunStatus + */ + @JsonCreator + public static TriggerRunStatus fromString(String name) { + return fromString(name, TriggerRunStatus.class); + } + + /** + * @return known TriggerRunStatus values + */ + public static Collection values() { + return values(TriggerRunStatus.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerRuntimeState.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerRuntimeState.java new file mode 100644 index 00000000000..0066ddaa5bd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TriggerRuntimeState.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TriggerRuntimeState. + */ +public final class TriggerRuntimeState extends ExpandableStringEnum { + /** Static value Started for TriggerRuntimeState. */ + public static final TriggerRuntimeState STARTED = fromString("Started"); + + /** Static value Stopped for TriggerRuntimeState. */ + public static final TriggerRuntimeState STOPPED = fromString("Stopped"); + + /** Static value Disabled for TriggerRuntimeState. */ + public static final TriggerRuntimeState DISABLED = fromString("Disabled"); + + /** + * Creates or finds a TriggerRuntimeState from its string representation. + * @param name a name to look for + * @return the corresponding TriggerRuntimeState + */ + @JsonCreator + public static TriggerRuntimeState fromString(String name) { + return fromString(name, TriggerRuntimeState.class); + } + + /** + * @return known TriggerRuntimeState values + */ + public static Collection values() { + return values(TriggerRuntimeState.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TumblingWindowFrequency.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TumblingWindowFrequency.java new file mode 100644 index 00000000000..39ace8a00d1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TumblingWindowFrequency.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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TumblingWindowFrequency. + */ +public final class TumblingWindowFrequency extends ExpandableStringEnum { + /** Static value Minute for TumblingWindowFrequency. */ + public static final TumblingWindowFrequency MINUTE = fromString("Minute"); + + /** Static value Hour for TumblingWindowFrequency. */ + public static final TumblingWindowFrequency HOUR = fromString("Hour"); + + /** + * Creates or finds a TumblingWindowFrequency from its string representation. + * @param name a name to look for + * @return the corresponding TumblingWindowFrequency + */ + @JsonCreator + public static TumblingWindowFrequency fromString(String name) { + return fromString(name, TumblingWindowFrequency.class); + } + + /** + * @return known TumblingWindowFrequency values + */ + public static Collection values() { + return values(TumblingWindowFrequency.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TumblingWindowTrigger.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TumblingWindowTrigger.java new file mode 100644 index 00000000000..7fe1a156df1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/TumblingWindowTrigger.java @@ -0,0 +1,245 @@ +/** + * 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.datafactory; + +import org.joda.time.DateTime; +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.datafactory.implementation.TriggerInner; + +/** + * Trigger that schedules pipeline runs for all fixed time interval windows + * from a start time without gaps and also supports backfill scenarios (when + * start time is in the past). + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("TumblingWindowTrigger") +@JsonFlatten +public class TumblingWindowTrigger extends TriggerInner { + /** + * Pipeline for which runs are created when an event is fired for trigger + * window that is ready. + */ + @JsonProperty(value = "pipeline", required = true) + private TriggerPipelineReference pipeline; + + /** + * The frequency of the time windows. Possible values include: 'Minute', + * 'Hour'. + */ + @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 DateTime 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 DateTime 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; + + /** + * Get the pipeline value. + * + * @return the pipeline value + */ + public TriggerPipelineReference pipeline() { + return this.pipeline; + } + + /** + * Set the pipeline value. + * + * @param pipeline the pipeline value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withPipeline(TriggerPipelineReference pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Get the frequency value. + * + * @return the frequency value + */ + public TumblingWindowFrequency frequency() { + return this.frequency; + } + + /** + * Set the frequency value. + * + * @param frequency the frequency value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withFrequency(TumblingWindowFrequency frequency) { + this.frequency = frequency; + return this; + } + + /** + * Get the interval value. + * + * @return the interval value + */ + public int interval() { + return this.interval; + } + + /** + * Set the interval value. + * + * @param interval the interval value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withInterval(int interval) { + this.interval = interval; + return this; + } + + /** + * Get the startTime value. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the startTime value. + * + * @param startTime the startTime value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the endTime value. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the endTime value. + * + * @param endTime the endTime value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the delay value. + * + * @return the delay value + */ + public Object delay() { + return this.delay; + } + + /** + * Set the delay value. + * + * @param delay the delay value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withDelay(Object delay) { + this.delay = delay; + return this; + } + + /** + * Get the maxConcurrency value. + * + * @return the maxConcurrency value + */ + public int maxConcurrency() { + return this.maxConcurrency; + } + + /** + * Set the maxConcurrency value. + * + * @param maxConcurrency the maxConcurrency value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withMaxConcurrency(int maxConcurrency) { + this.maxConcurrency = maxConcurrency; + return this; + } + + /** + * Get the retryPolicy value. + * + * @return the retryPolicy value + */ + public RetryPolicy retryPolicy() { + return this.retryPolicy; + } + + /** + * Set the retryPolicy value. + * + * @param retryPolicy the retryPolicy value to set + * @return the TumblingWindowTrigger object itself. + */ + public TumblingWindowTrigger withRetryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/UntilActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/UntilActivity.java new file mode 100644 index 00000000000..6ff3bcd32bd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/UntilActivity.java @@ -0,0 +1,109 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * This activity executes inner activities until the specified boolean + * expression results to true or timeout is reached, whichever is earlier. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Until") +@JsonFlatten +public class UntilActivity extends ControlActivity { + /** + * An expression that would evaluate to Boolean. The loop will continue + * until this expression evaluates to true. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.timeout") + private Object timeout; + + /** + * List of activities to execute. + */ + @JsonProperty(value = "typeProperties.activities", required = true) + private List activities; + + /** + * Get the expression value. + * + * @return the expression value + */ + public Expression expression() { + return this.expression; + } + + /** + * Set the expression value. + * + * @param expression the expression value to set + * @return the UntilActivity object itself. + */ + public UntilActivity withExpression(Expression expression) { + this.expression = expression; + return this; + } + + /** + * Get the timeout value. + * + * @return the timeout value + */ + public Object timeout() { + return this.timeout; + } + + /** + * Set the timeout value. + * + * @param timeout the timeout value to set + * @return the UntilActivity object itself. + */ + public UntilActivity withTimeout(Object timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get the activities value. + * + * @return the activities value + */ + public List activities() { + return this.activities; + } + + /** + * Set the activities value. + * + * @param activities the activities value to set + * @return the UntilActivity object itself. + */ + public UntilActivity withActivities(List activities) { + this.activities = activities; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/UpdateIntegrationRuntimeNodeRequest.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/UpdateIntegrationRuntimeNodeRequest.java new file mode 100644 index 00000000000..3a82c80acfc --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/UpdateIntegrationRuntimeNodeRequest.java @@ -0,0 +1,45 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Update integration runtime node request. + */ +public class UpdateIntegrationRuntimeNodeRequest { + /** + * The number of concurrent jobs permitted to run on the integration + * runtime node. Values between 1 and maxConcurrentJobs(inclusive) are + * allowed. + */ + @JsonProperty(value = "concurrentJobsLimit") + private Integer concurrentJobsLimit; + + /** + * Get the concurrentJobsLimit value. + * + * @return the concurrentJobsLimit value + */ + public Integer concurrentJobsLimit() { + return this.concurrentJobsLimit; + } + + /** + * Set the concurrentJobsLimit value. + * + * @param concurrentJobsLimit the concurrentJobsLimit value to set + * @return the UpdateIntegrationRuntimeNodeRequest object itself. + */ + public UpdateIntegrationRuntimeNodeRequest withConcurrentJobsLimit(Integer concurrentJobsLimit) { + this.concurrentJobsLimit = concurrentJobsLimit; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaLinkedService.java new file mode 100644 index 00000000000..e67a368ff0d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaLinkedService.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Vertica linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Vertica") +@JsonFlatten +public class VerticaLinkedService extends LinkedServiceInner { + /** + * An ODBC connection string. + */ + @JsonProperty(value = "typeProperties.connectionString") + private SecretBase connectionString; + + /** + * 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 value. + * + * @return the connectionString value + */ + public SecretBase connectionString() { + return this.connectionString; + } + + /** + * Set the connectionString value. + * + * @param connectionString the connectionString value to set + * @return the VerticaLinkedService object itself. + */ + public VerticaLinkedService withConnectionString(SecretBase connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the VerticaLinkedService object itself. + */ + public VerticaLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaSource.java new file mode 100644 index 00000000000..86ede4c7b6a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Vertica source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("VerticaSource") +public class VerticaSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the VerticaSource object itself. + */ + public VerticaSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaTableDataset.java new file mode 100644 index 00000000000..8359c8c9878 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/VerticaTableDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Vertica dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("VerticaTable") +public class VerticaTableDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WaitActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WaitActivity.java new file mode 100644 index 00000000000..5f1f07a3675 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WaitActivity.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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * This activity suspends pipeline execution for the specified interval. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Wait") +@JsonFlatten +public class WaitActivity extends ControlActivity { + /** + * Duration in seconds. + */ + @JsonProperty(value = "typeProperties.waitTimeInSeconds", required = true) + private int waitTimeInSeconds; + + /** + * Get the waitTimeInSeconds value. + * + * @return the waitTimeInSeconds value + */ + public int waitTimeInSeconds() { + return this.waitTimeInSeconds; + } + + /** + * Set the waitTimeInSeconds value. + * + * @param waitTimeInSeconds the waitTimeInSeconds value to set + * @return the WaitActivity object itself. + */ + public WaitActivity withWaitTimeInSeconds(int waitTimeInSeconds) { + this.waitTimeInSeconds = waitTimeInSeconds; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivity.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivity.java new file mode 100644 index 00000000000..e57fc73e0fe --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivity.java @@ -0,0 +1,213 @@ +/** + * 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.datafactory; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Web activity. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("WebActivity") +@JsonFlatten +public class WebActivity extends ExecutionActivity { + /** + * Rest API method for target endpoint. Possible values include: 'GET', + * 'POST', 'PUT', 'DELETE'. + */ + @JsonProperty(value = "typeProperties.method", required = true) + private WebActivityMethod method; + + /** + * Web activity target endpoint and path. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.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 = "typeProperties.body") + private Object body; + + /** + * Authentication method used for calling the endpoint. + */ + @JsonProperty(value = "typeProperties.authentication") + private WebActivityAuthentication authentication; + + /** + * List of datasets passed to web endpoint. + */ + @JsonProperty(value = "typeProperties.datasets") + private List datasets; + + /** + * List of linked services passed to web endpoint. + */ + @JsonProperty(value = "typeProperties.linkedServices") + private List linkedServices; + + /** + * Get the method value. + * + * @return the method value + */ + public WebActivityMethod method() { + return this.method; + } + + /** + * Set the method value. + * + * @param method the method value to set + * @return the WebActivity object itself. + */ + public WebActivity withMethod(WebActivityMethod method) { + this.method = method; + return this; + } + + /** + * Get the url value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the WebActivity object itself. + */ + public WebActivity withUrl(Object url) { + this.url = url; + return this; + } + + /** + * Get the headers value. + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set the headers value. + * + * @param headers the headers value to set + * @return the WebActivity object itself. + */ + public WebActivity withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get the body value. + * + * @return the body value + */ + public Object body() { + return this.body; + } + + /** + * Set the body value. + * + * @param body the body value to set + * @return the WebActivity object itself. + */ + public WebActivity withBody(Object body) { + this.body = body; + return this; + } + + /** + * Get the authentication value. + * + * @return the authentication value + */ + public WebActivityAuthentication authentication() { + return this.authentication; + } + + /** + * Set the authentication value. + * + * @param authentication the authentication value to set + * @return the WebActivity object itself. + */ + public WebActivity withAuthentication(WebActivityAuthentication authentication) { + this.authentication = authentication; + return this; + } + + /** + * Get the datasets value. + * + * @return the datasets value + */ + public List datasets() { + return this.datasets; + } + + /** + * Set the datasets value. + * + * @param datasets the datasets value to set + * @return the WebActivity object itself. + */ + public WebActivity withDatasets(List datasets) { + this.datasets = datasets; + return this; + } + + /** + * Get the linkedServices value. + * + * @return the linkedServices value + */ + public List linkedServices() { + return this.linkedServices; + } + + /** + * Set the linkedServices value. + * + * @param linkedServices the linkedServices value to set + * @return the WebActivity object itself. + */ + public WebActivity withLinkedServices(List linkedServices) { + this.linkedServices = linkedServices; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivityAuthentication.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivityAuthentication.java new file mode 100644 index 00000000000..ea786192df5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivityAuthentication.java @@ -0,0 +1,148 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Web activity authentication properties. + */ +public class WebActivityAuthentication { + /** + * Web activity authentication (Basic/ClientCertificate/MSI). + */ + @JsonProperty(value = "type", required = true) + private String type; + + /** + * Base64-encoded contents of a PFX file. + */ + @JsonProperty(value = "pfx") + private SecureString pfx; + + /** + * Web activity authentication user name for basic authentication. + */ + @JsonProperty(value = "username") + private String username; + + /** + * Password for the PFX file or basic authentication. + */ + @JsonProperty(value = "password") + private SecureString password; + + /** + * Resource for which Azure Auth token will be requested when using MSI + * Authentication. + */ + @JsonProperty(value = "resource") + private String resource; + + /** + * Get the type value. + * + * @return the type value + */ + public String type() { + return this.type; + } + + /** + * Set the type value. + * + * @param type the type value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withType(String type) { + this.type = type; + return this; + } + + /** + * Get the pfx value. + * + * @return the pfx value + */ + public SecureString pfx() { + return this.pfx; + } + + /** + * Set the pfx value. + * + * @param pfx the pfx value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withPfx(SecureString pfx) { + this.pfx = pfx; + return this; + } + + /** + * Get the username value. + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withUsername(String username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecureString password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withPassword(SecureString password) { + this.password = password; + return this; + } + + /** + * Get the resource value. + * + * @return the resource value + */ + public String resource() { + return this.resource; + } + + /** + * Set the resource value. + * + * @param resource the resource value to set + * @return the WebActivityAuthentication object itself. + */ + public WebActivityAuthentication withResource(String resource) { + this.resource = resource; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivityMethod.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivityMethod.java new file mode 100644 index 00000000000..79ddf39556d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebActivityMethod.java @@ -0,0 +1,47 @@ +/** + * 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.datafactory; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for WebActivityMethod. + */ +public final class WebActivityMethod extends ExpandableStringEnum { + /** Static value GET for WebActivityMethod. */ + public static final WebActivityMethod GET = fromString("GET"); + + /** Static value POST for WebActivityMethod. */ + public static final WebActivityMethod POST = fromString("POST"); + + /** Static value PUT for WebActivityMethod. */ + public static final WebActivityMethod PUT = fromString("PUT"); + + /** Static value DELETE for WebActivityMethod. */ + public static final WebActivityMethod DELETE = fromString("DELETE"); + + /** + * Creates or finds a WebActivityMethod from its string representation. + * @param name a name to look for + * @return the corresponding WebActivityMethod + */ + @JsonCreator + public static WebActivityMethod fromString(String name) { + return fromString(name, WebActivityMethod.class); + } + + /** + * @return known WebActivityMethod values + */ + public static Collection values() { + return values(WebActivityMethod.class); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebAnonymousAuthentication.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebAnonymousAuthentication.java new file mode 100644 index 00000000000..9c5d0f1c3c5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebAnonymousAuthentication.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A WebLinkedService that uses anonymous authentication to communicate with an + * HTTP endpoint. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") +@JsonTypeName("Anonymous") +public class WebAnonymousAuthentication extends WebLinkedServiceTypeProperties { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebBasicAuthentication.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebBasicAuthentication.java new file mode 100644 index 00000000000..2c548e02792 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebBasicAuthentication.java @@ -0,0 +1,75 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A WebLinkedService that uses basic authentication to communicate with an + * HTTP endpoint. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") +@JsonTypeName("Basic") +public class WebBasicAuthentication extends WebLinkedServiceTypeProperties { + /** + * User name for Basic authentication. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "username", required = true) + private Object username; + + /** + * The password for Basic authentication. + */ + @JsonProperty(value = "password", required = true) + private SecretBase password; + + /** + * Get the username value. + * + * @return the username value + */ + public Object username() { + return this.username; + } + + /** + * Set the username value. + * + * @param username the username value to set + * @return the WebBasicAuthentication object itself. + */ + public WebBasicAuthentication withUsername(Object username) { + this.username = username; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the WebBasicAuthentication object itself. + */ + public WebBasicAuthentication withPassword(SecretBase password) { + this.password = password; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebClientCertificateAuthentication.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebClientCertificateAuthentication.java new file mode 100644 index 00000000000..75cf737fbd9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebClientCertificateAuthentication.java @@ -0,0 +1,76 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A WebLinkedService that uses client certificate based authentication to + * communicate with an HTTP endpoint. This scheme follows mutual + * authentication; the server must also provide valid credentials to the + * client. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") +@JsonTypeName("ClientCertificate") +public class WebClientCertificateAuthentication extends WebLinkedServiceTypeProperties { + /** + * Base64-encoded contents of a PFX file. + */ + @JsonProperty(value = "pfx", required = true) + private SecretBase pfx; + + /** + * Password for the PFX file. + */ + @JsonProperty(value = "password", required = true) + private SecretBase password; + + /** + * Get the pfx value. + * + * @return the pfx value + */ + public SecretBase pfx() { + return this.pfx; + } + + /** + * Set the pfx value. + * + * @param pfx the pfx value to set + * @return the WebClientCertificateAuthentication object itself. + */ + public WebClientCertificateAuthentication withPfx(SecretBase pfx) { + this.pfx = pfx; + return this; + } + + /** + * Get the password value. + * + * @return the password value + */ + public SecretBase password() { + return this.password; + } + + /** + * Set the password value. + * + * @param password the password value to set + * @return the WebClientCertificateAuthentication object itself. + */ + public WebClientCertificateAuthentication withPassword(SecretBase password) { + this.password = password; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebLinkedService.java new file mode 100644 index 00000000000..d33aecdceaa --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebLinkedService.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.LinkedServiceInner; + +/** + * Web linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Web") +public class WebLinkedService extends LinkedServiceInner { + /** + * Web linked service properties. + */ + @JsonProperty(value = "typeProperties", required = true) + private WebLinkedServiceTypeProperties typeProperties; + + /** + * Get the typeProperties value. + * + * @return the typeProperties value + */ + public WebLinkedServiceTypeProperties typeProperties() { + return this.typeProperties; + } + + /** + * Set the typeProperties value. + * + * @param typeProperties the typeProperties value to set + * @return the WebLinkedService object itself. + */ + public WebLinkedService withTypeProperties(WebLinkedServiceTypeProperties typeProperties) { + this.typeProperties = typeProperties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebLinkedServiceTypeProperties.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebLinkedServiceTypeProperties.java new file mode 100644 index 00000000000..f2c13fa48c4 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebLinkedServiceTypeProperties.java @@ -0,0 +1,55 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Base definition of WebLinkedServiceTypeProperties, this typeProperties is + * polymorphic based on authenticationType, so not flattened in SDK models. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authenticationType") +@JsonTypeName("WebLinkedServiceTypeProperties") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "ClientCertificate", value = WebClientCertificateAuthentication.class), + @JsonSubTypes.Type(name = "Basic", value = WebBasicAuthentication.class), + @JsonSubTypes.Type(name = "Anonymous", value = WebAnonymousAuthentication.class) +}) +public class WebLinkedServiceTypeProperties { + /** + * The URL of the web service endpoint, e.g. http://www.microsoft.com . + * Type: string (or Expression with resultType string). + */ + @JsonProperty(value = "url", required = true) + private Object url; + + /** + * Get the url value. + * + * @return the url value + */ + public Object url() { + return this.url; + } + + /** + * Set the url value. + * + * @param url the url value to set + * @return the WebLinkedServiceTypeProperties object itself. + */ + public WebLinkedServiceTypeProperties withUrl(Object url) { + this.url = url; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebSource.java new file mode 100644 index 00000000000..45d090ae971 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebSource.java @@ -0,0 +1,20 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity source for web page table. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("WebSource") +public class WebSource extends CopySource { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebTableDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebTableDataset.java new file mode 100644 index 00000000000..9301daac2d0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/WebTableDataset.java @@ -0,0 +1,78 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.DatasetInner; + +/** + * 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 +public class WebTableDataset extends DatasetInner { + /** + * The zero-based index of the table in the web page. Type: integer (or + * Expression with resultType integer), minimum: 0. + */ + @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 value. + * + * @return the index value + */ + public Object index() { + return this.index; + } + + /** + * Set the index value. + * + * @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 value. + * + * @return the path value + */ + public Object path() { + return this.path; + } + + /** + * Set the path value. + * + * @param path the path value to set + * @return the WebTableDataset object itself. + */ + public WebTableDataset withPath(Object path) { + this.path = path; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroLinkedService.java new file mode 100644 index 00000000000..eed32e6cf3a --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroLinkedService.java @@ -0,0 +1,215 @@ +/** + * 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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Xero Serivce linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Xero") +@JsonFlatten +public class XeroLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Xero server. (i.e. api.xero.com). + */ + @JsonProperty(value = "typeProperties.host", required = true) + private Object host; + + /** + * The consumer key associated with the Xero application. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.privateKey") + private SecretBase privateKey; + + /** + * 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 host value. + * + * @return the host value + */ + public Object host() { + return this.host; + } + + /** + * Set the host value. + * + * @param host the host value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withHost(Object host) { + this.host = host; + return this; + } + + /** + * Get the consumerKey value. + * + * @return the consumerKey value + */ + public SecretBase consumerKey() { + return this.consumerKey; + } + + /** + * Set the consumerKey value. + * + * @param consumerKey the consumerKey value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withConsumerKey(SecretBase consumerKey) { + this.consumerKey = consumerKey; + return this; + } + + /** + * Get the privateKey value. + * + * @return the privateKey value + */ + public SecretBase privateKey() { + return this.privateKey; + } + + /** + * Set the privateKey value. + * + * @param privateKey the privateKey value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withPrivateKey(SecretBase privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the XeroLinkedService object itself. + */ + public XeroLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroObjectDataset.java new file mode 100644 index 00000000000..7c0bf22794e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Xero Serivce dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("XeroObject") +public class XeroObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroSource.java new file mode 100644 index 00000000000..1b34eb0167e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/XeroSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Xero Serivce source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("XeroSource") +public class XeroSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the XeroSource object itself. + */ + public XeroSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoLinkedService.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoLinkedService.java new file mode 100644 index 00000000000..9de0b358b21 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoLinkedService.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.datafactory; + +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.datafactory.implementation.LinkedServiceInner; + +/** + * Zoho server linked service. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Zoho") +@JsonFlatten +public class ZohoLinkedService extends LinkedServiceInner { + /** + * The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private). + */ + @JsonProperty(value = "typeProperties.endpoint", required = true) + private Object endpoint; + + /** + * The access token for Zoho authentication. + */ + @JsonProperty(value = "typeProperties.accessToken") + private SecretBase accessToken; + + /** + * 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 value. + * + * @return the endpoint value + */ + public Object endpoint() { + return this.endpoint; + } + + /** + * Set the endpoint value. + * + * @param endpoint the endpoint value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withEndpoint(Object endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get the accessToken value. + * + * @return the accessToken value + */ + public SecretBase accessToken() { + return this.accessToken; + } + + /** + * Set the accessToken value. + * + * @param accessToken the accessToken value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withAccessToken(SecretBase accessToken) { + this.accessToken = accessToken; + return this; + } + + /** + * Get the useEncryptedEndpoints value. + * + * @return the useEncryptedEndpoints value + */ + public Object useEncryptedEndpoints() { + return this.useEncryptedEndpoints; + } + + /** + * Set the useEncryptedEndpoints value. + * + * @param useEncryptedEndpoints the useEncryptedEndpoints value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withUseEncryptedEndpoints(Object useEncryptedEndpoints) { + this.useEncryptedEndpoints = useEncryptedEndpoints; + return this; + } + + /** + * Get the useHostVerification value. + * + * @return the useHostVerification value + */ + public Object useHostVerification() { + return this.useHostVerification; + } + + /** + * Set the useHostVerification value. + * + * @param useHostVerification the useHostVerification value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withUseHostVerification(Object useHostVerification) { + this.useHostVerification = useHostVerification; + return this; + } + + /** + * Get the usePeerVerification value. + * + * @return the usePeerVerification value + */ + public Object usePeerVerification() { + return this.usePeerVerification; + } + + /** + * Set the usePeerVerification value. + * + * @param usePeerVerification the usePeerVerification value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withUsePeerVerification(Object usePeerVerification) { + this.usePeerVerification = usePeerVerification; + return this; + } + + /** + * Get the encryptedCredential value. + * + * @return the encryptedCredential value + */ + public Object encryptedCredential() { + return this.encryptedCredential; + } + + /** + * Set the encryptedCredential value. + * + * @param encryptedCredential the encryptedCredential value to set + * @return the ZohoLinkedService object itself. + */ + public ZohoLinkedService withEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoObjectDataset.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoObjectDataset.java new file mode 100644 index 00000000000..6c77e96145c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoObjectDataset.java @@ -0,0 +1,21 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.microsoft.azure.management.datafactory.implementation.DatasetInner; + +/** + * Zoho server dataset. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ZohoObject") +public class ZohoObjectDataset extends DatasetInner { +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoSource.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoSource.java new file mode 100644 index 00000000000..a648489e3d3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/ZohoSource.java @@ -0,0 +1,48 @@ +/** + * 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.datafactory; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * A copy activity Zoho server source. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("ZohoSource") +public class ZohoSource extends CopySource { + /** + * A query to retrieve data from source. Type: string (or Expression with + * resultType string). + */ + @JsonProperty(value = "query") + private Object query; + + /** + * Get the query value. + * + * @return the query value + */ + public Object query() { + return this.query; + } + + /** + * Set the query value. + * + * @param query the query value to set + * @return the ZohoSource object itself. + */ + public ZohoSource withQuery(Object query) { + this.query = query; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/ActivityRunInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/ActivityRunInner.java new file mode 100644 index 00000000000..55ecb5b36ec --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/ActivityRunInner.java @@ -0,0 +1,240 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Information about an activity run in a pipeline. + */ +public class ActivityRunInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The name of the pipeline. + */ + @JsonProperty(value = "pipelineName", access = JsonProperty.Access.WRITE_ONLY) + private String pipelineName; + + /** + * The id of the pipeline run. + */ + @JsonProperty(value = "pipelineRunId", access = JsonProperty.Access.WRITE_ONLY) + private String pipelineRunId; + + /** + * The name of the activity. + */ + @JsonProperty(value = "activityName", access = JsonProperty.Access.WRITE_ONLY) + private String activityName; + + /** + * The type of the activity. + */ + @JsonProperty(value = "activityType", access = JsonProperty.Access.WRITE_ONLY) + private String activityType; + + /** + * The id of the activity run. + */ + @JsonProperty(value = "activityRunId", access = JsonProperty.Access.WRITE_ONLY) + private String activityRunId; + + /** + * The name of the compute linked service. + */ + @JsonProperty(value = "linkedServiceName", access = JsonProperty.Access.WRITE_ONLY) + private String linkedServiceName; + + /** + * The status of the activity run. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * The start time of the activity run in 'ISO 8601' format. + */ + @JsonProperty(value = "activityRunStart", access = JsonProperty.Access.WRITE_ONLY) + private DateTime activityRunStart; + + /** + * The end time of the activity run in 'ISO 8601' format. + */ + @JsonProperty(value = "activityRunEnd", access = JsonProperty.Access.WRITE_ONLY) + private DateTime activityRunEnd; + + /** + * The duration of the activity run. + */ + @JsonProperty(value = "durationInMs", access = JsonProperty.Access.WRITE_ONLY) + private Integer durationInMs; + + /** + * The input for the activity. + */ + @JsonProperty(value = "input", access = JsonProperty.Access.WRITE_ONLY) + private Object input; + + /** + * The output for the activity. + */ + @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY) + private Object output; + + /** + * The error if any from the activity run. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the ActivityRunInner object itself. + */ + public ActivityRunInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the pipelineName value. + * + * @return the pipelineName value + */ + public String pipelineName() { + return this.pipelineName; + } + + /** + * Get the pipelineRunId value. + * + * @return the pipelineRunId value + */ + public String pipelineRunId() { + return this.pipelineRunId; + } + + /** + * Get the activityName value. + * + * @return the activityName value + */ + public String activityName() { + return this.activityName; + } + + /** + * Get the activityType value. + * + * @return the activityType value + */ + public String activityType() { + return this.activityType; + } + + /** + * Get the activityRunId value. + * + * @return the activityRunId value + */ + public String activityRunId() { + return this.activityRunId; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public String linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Get the status value. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the activityRunStart value. + * + * @return the activityRunStart value + */ + public DateTime activityRunStart() { + return this.activityRunStart; + } + + /** + * Get the activityRunEnd value. + * + * @return the activityRunEnd value + */ + public DateTime activityRunEnd() { + return this.activityRunEnd; + } + + /** + * Get the durationInMs value. + * + * @return the durationInMs value + */ + public Integer durationInMs() { + return this.durationInMs; + } + + /** + * Get the input value. + * + * @return the input value + */ + public Object input() { + return this.input; + } + + /** + * Get the output value. + * + * @return the output value + */ + public Object output() { + return this.output; + } + + /** + * Get the error value. + * + * @return the error value + */ + public Object error() { + return this.error; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/ActivityRunsInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/ActivityRunsInner.java new file mode 100644 index 00000000000..93cbbef4311 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/ActivityRunsInner.java @@ -0,0 +1,486 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import org.joda.time.DateTime; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ActivityRuns. + */ +public class ActivityRunsInner { + /** The Retrofit service to perform REST calls. */ + private ActivityRunsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of ActivityRunsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ActivityRunsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(ActivityRunsService.class); + this.client = client; + } + + /** + * The interface defining all the services for ActivityRuns to be + * used by Retrofit to perform actually REST calls. + */ + interface ActivityRunsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.ActivityRuns listByPipelineRun" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/activityruns") + Observable> listByPipelineRun(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("runId") String runId, @Query("api-version") String apiVersion, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Query("status") String status, @Query("activityName") String activityName, @Query("linkedServiceName") String linkedServiceName, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.ActivityRuns listByPipelineRunNext" }) + @GET + Observable> listByPipelineRunNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ActivityRunInner> object if successful. + */ + public PagedList listByPipelineRun(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime) { + ServiceResponse> response = listByPipelineRunSinglePageAsync(resourceGroupName, factoryName, runId, startTime, endTime).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByPipelineRunAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByPipelineRunSinglePageAsync(resourceGroupName, factoryName, runId, startTime, endTime), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ActivityRunInner> object + */ + public Observable> listByPipelineRunAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime) { + return listByPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId, startTime, endTime) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ActivityRunInner> object + */ + public Observable>> listByPipelineRunWithServiceResponseAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime) { + return listByPipelineRunSinglePageAsync(resourceGroupName, factoryName, runId, startTime, endTime) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByPipelineRunNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ActivityRunInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByPipelineRunSinglePageAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (runId == null) { + throw new IllegalArgumentException("Parameter runId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (startTime == null) { + throw new IllegalArgumentException("Parameter startTime is required and cannot be null."); + } + if (endTime == null) { + throw new IllegalArgumentException("Parameter endTime is required and cannot be null."); + } + final String status = null; + final String activityName = null; + final String linkedServiceName = null; + return service.listByPipelineRun(this.client.subscriptionId(), resourceGroupName, factoryName, runId, this.client.apiVersion(), startTime, endTime, status, activityName, linkedServiceName, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByPipelineRunDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @param status The status of the pipeline run. + * @param activityName The name of the activity. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ActivityRunInner> object if successful. + */ + public PagedList listByPipelineRun(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime, final String status, final String activityName, final String linkedServiceName) { + ServiceResponse> response = listByPipelineRunSinglePageAsync(resourceGroupName, factoryName, runId, startTime, endTime, status, activityName, linkedServiceName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @param status The status of the pipeline run. + * @param activityName The name of the activity. + * @param linkedServiceName The linked service name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByPipelineRunAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime, final String status, final String activityName, final String linkedServiceName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByPipelineRunSinglePageAsync(resourceGroupName, factoryName, runId, startTime, endTime, status, activityName, linkedServiceName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @param status The status of the pipeline run. + * @param activityName The name of the activity. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ActivityRunInner> object + */ + public Observable> listByPipelineRunAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime, final String status, final String activityName, final String linkedServiceName) { + return listByPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId, startTime, endTime, status, activityName, linkedServiceName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param startTime The start time of activity runs in ISO8601 format. + * @param endTime The end time of activity runs in ISO8601 format. + * @param status The status of the pipeline run. + * @param activityName The name of the activity. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ActivityRunInner> object + */ + public Observable>> listByPipelineRunWithServiceResponseAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime, final String status, final String activityName, final String linkedServiceName) { + return listByPipelineRunSinglePageAsync(resourceGroupName, factoryName, runId, startTime, endTime, status, activityName, linkedServiceName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByPipelineRunNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + ServiceResponse> * @param runId The pipeline run identifier. + ServiceResponse> * @param startTime The start time of activity runs in ISO8601 format. + ServiceResponse> * @param endTime The end time of activity runs in ISO8601 format. + ServiceResponse> * @param status The status of the pipeline run. + ServiceResponse> * @param activityName The name of the activity. + ServiceResponse> * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ActivityRunInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByPipelineRunSinglePageAsync(final String resourceGroupName, final String factoryName, final String runId, final DateTime startTime, final DateTime endTime, final String status, final String activityName, final String linkedServiceName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (runId == null) { + throw new IllegalArgumentException("Parameter runId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (startTime == null) { + throw new IllegalArgumentException("Parameter startTime is required and cannot be null."); + } + if (endTime == null) { + throw new IllegalArgumentException("Parameter endTime is required and cannot be null."); + } + return service.listByPipelineRun(this.client.subscriptionId(), resourceGroupName, factoryName, runId, this.client.apiVersion(), startTime, endTime, status, activityName, linkedServiceName, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByPipelineRunDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByPipelineRunDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * List activity runs based on input filter conditions. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ActivityRunInner> object if successful. + */ + public PagedList listByPipelineRunNext(final String nextPageLink) { + ServiceResponse> response = listByPipelineRunNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List activity runs based on input filter conditions. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByPipelineRunNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByPipelineRunNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List activity runs based on input filter conditions. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ActivityRunInner> object + */ + public Observable> listByPipelineRunNextAsync(final String nextPageLink) { + return listByPipelineRunNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ActivityRunInner> object + */ + public Observable>> listByPipelineRunNextWithServiceResponseAsync(final String nextPageLink) { + return listByPipelineRunNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByPipelineRunNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List activity runs based on input filter conditions. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ActivityRunInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByPipelineRunNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByPipelineRunNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByPipelineRunNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByPipelineRunNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/CreateRunResponseInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/CreateRunResponseInner.java new file mode 100644 index 00000000000..fc08f74b7b9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/CreateRunResponseInner.java @@ -0,0 +1,43 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Response body with a run identifier. + */ +public class CreateRunResponseInner { + /** + * Identifier of a run. + */ + @JsonProperty(value = "runId", required = true) + private String runId; + + /** + * Get the runId value. + * + * @return the runId value + */ + public String runId() { + return this.runId; + } + + /** + * Set the runId value. + * + * @param runId the runId value to set + * @return the CreateRunResponseInner object itself. + */ + public CreateRunResponseInner withRunId(String runId) { + this.runId = runId; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DataFactoryManagementClientImpl.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DataFactoryManagementClientImpl.java new file mode 100644 index 00000000000..2a98f4c366e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DataFactoryManagementClientImpl.java @@ -0,0 +1,322 @@ +/** + * 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.datafactory.implementation; + +import com.microsoft.azure.AzureClient; +import com.microsoft.azure.AzureServiceClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import com.microsoft.rest.RestClient; + +/** + * Initializes a new instance of the DataFactoryManagementClientImpl class. + */ +public class DataFactoryManagementClientImpl extends AzureServiceClient { + /** the {@link AzureClient} used for long running operations. */ + private AzureClient azureClient; + + /** + * Gets the {@link AzureClient} used for long running operations. + * @return the azure client; + */ + public AzureClient getAzureClient() { + return this.azureClient; + } + + /** The subscription identifier. */ + private String subscriptionId; + + /** + * Gets The subscription identifier. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Sets The subscription identifier. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself + */ + public DataFactoryManagementClientImpl withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** The API version. */ + private String apiVersion; + + /** + * Gets The API version. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + + /** Gets or sets the preferred language for the response. */ + private String acceptLanguage; + + /** + * Gets Gets or sets the preferred language for the response. + * + * @return the acceptLanguage value. + */ + public String acceptLanguage() { + return this.acceptLanguage; + } + + /** + * Sets Gets or sets the preferred language for the response. + * + * @param acceptLanguage the acceptLanguage value. + * @return the service client itself + */ + public DataFactoryManagementClientImpl withAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + return this; + } + + /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + private int longRunningOperationRetryTimeout; + + /** + * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @return the longRunningOperationRetryTimeout value. + */ + public int longRunningOperationRetryTimeout() { + return this.longRunningOperationRetryTimeout; + } + + /** + * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * + * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. + * @return the service client itself + */ + public DataFactoryManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; + return this; + } + + /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + private boolean generateClientRequestId; + + /** + * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @return the generateClientRequestId value. + */ + public boolean generateClientRequestId() { + return this.generateClientRequestId; + } + + /** + * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * + * @param generateClientRequestId the generateClientRequestId value. + * @return the service client itself + */ + public DataFactoryManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { + this.generateClientRequestId = generateClientRequestId; + return this; + } + + /** + * The OperationsInner object to access its operations. + */ + private OperationsInner operations; + + /** + * Gets the OperationsInner object to access its operations. + * @return the OperationsInner object. + */ + public OperationsInner operations() { + return this.operations; + } + + /** + * The FactoriesInner object to access its operations. + */ + private FactoriesInner factories; + + /** + * Gets the FactoriesInner object to access its operations. + * @return the FactoriesInner object. + */ + public FactoriesInner factories() { + return this.factories; + } + + /** + * The IntegrationRuntimesInner object to access its operations. + */ + private IntegrationRuntimesInner integrationRuntimes; + + /** + * Gets the IntegrationRuntimesInner object to access its operations. + * @return the IntegrationRuntimesInner object. + */ + public IntegrationRuntimesInner integrationRuntimes() { + return this.integrationRuntimes; + } + + /** + * The IntegrationRuntimeNodesInner object to access its operations. + */ + private IntegrationRuntimeNodesInner integrationRuntimeNodes; + + /** + * Gets the IntegrationRuntimeNodesInner object to access its operations. + * @return the IntegrationRuntimeNodesInner object. + */ + public IntegrationRuntimeNodesInner integrationRuntimeNodes() { + return this.integrationRuntimeNodes; + } + + /** + * The LinkedServicesInner object to access its operations. + */ + private LinkedServicesInner linkedServices; + + /** + * Gets the LinkedServicesInner object to access its operations. + * @return the LinkedServicesInner object. + */ + public LinkedServicesInner linkedServices() { + return this.linkedServices; + } + + /** + * The DatasetsInner object to access its operations. + */ + private DatasetsInner datasets; + + /** + * Gets the DatasetsInner object to access its operations. + * @return the DatasetsInner object. + */ + public DatasetsInner datasets() { + return this.datasets; + } + + /** + * The PipelinesInner object to access its operations. + */ + private PipelinesInner pipelines; + + /** + * Gets the PipelinesInner object to access its operations. + * @return the PipelinesInner object. + */ + public PipelinesInner pipelines() { + return this.pipelines; + } + + /** + * The PipelineRunsInner object to access its operations. + */ + private PipelineRunsInner pipelineRuns; + + /** + * Gets the PipelineRunsInner object to access its operations. + * @return the PipelineRunsInner object. + */ + public PipelineRunsInner pipelineRuns() { + return this.pipelineRuns; + } + + /** + * The ActivityRunsInner object to access its operations. + */ + private ActivityRunsInner activityRuns; + + /** + * Gets the ActivityRunsInner object to access its operations. + * @return the ActivityRunsInner object. + */ + public ActivityRunsInner activityRuns() { + return this.activityRuns; + } + + /** + * The TriggersInner object to access its operations. + */ + private TriggersInner triggers; + + /** + * Gets the TriggersInner object to access its operations. + * @return the TriggersInner object. + */ + public TriggersInner triggers() { + return this.triggers; + } + + /** + * Initializes an instance of DataFactoryManagementClient client. + * + * @param credentials the management credentials for Azure + */ + public DataFactoryManagementClientImpl(ServiceClientCredentials credentials) { + this("https://management.azure.com", credentials); + } + + /** + * Initializes an instance of DataFactoryManagementClient client. + * + * @param baseUrl the base URL of the host + * @param credentials the management credentials for Azure + */ + public DataFactoryManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { + super(baseUrl, credentials); + initialize(); + } + + /** + * Initializes an instance of DataFactoryManagementClient client. + * + * @param restClient the REST client to connect to Azure. + */ + public DataFactoryManagementClientImpl(RestClient restClient) { + super(restClient); + initialize(); + } + + protected void initialize() { + this.apiVersion = "2017-09-01-preview"; + this.acceptLanguage = "en-US"; + this.longRunningOperationRetryTimeout = 30; + this.generateClientRequestId = true; + this.operations = new OperationsInner(restClient().retrofit(), this); + this.factories = new FactoriesInner(restClient().retrofit(), this); + this.integrationRuntimes = new IntegrationRuntimesInner(restClient().retrofit(), this); + this.integrationRuntimeNodes = new IntegrationRuntimeNodesInner(restClient().retrofit(), this); + this.linkedServices = new LinkedServicesInner(restClient().retrofit(), this); + this.datasets = new DatasetsInner(restClient().retrofit(), this); + this.pipelines = new PipelinesInner(restClient().retrofit(), this); + this.pipelineRuns = new PipelineRunsInner(restClient().retrofit(), this); + this.activityRuns = new ActivityRunsInner(restClient().retrofit(), this); + this.triggers = new TriggersInner(restClient().retrofit(), this); + this.azureClient = new AzureClient(this); + } + + /** + * Gets the User-Agent header for the client. + * + * @return the user agent string. + */ + @Override + public String userAgent() { + return String.format("%s (%s, %s)", super.userAgent(), "DataFactoryManagementClient", "2017-09-01-preview"); + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetInner.java new file mode 100644 index 00000000000..af5c571852d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetInner.java @@ -0,0 +1,239 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.LinkedServiceReference; +import com.microsoft.azure.management.datafactory.ParameterSpecification; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The Azure Data Factory nested object which identifies data within different + * data stores, such as tables, files, folders, and documents. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Dataset") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "ResponsysObject", value = ResponsysObjectDataset.class), + @JsonSubTypes.Type(name = "SalesforceMarketingCloudObject", value = SalesforceMarketingCloudObjectDataset.class), + @JsonSubTypes.Type(name = "VerticaTable", value = VerticaTableDataset.class), + @JsonSubTypes.Type(name = "NetezzaTable", value = NetezzaTableDataset.class), + @JsonSubTypes.Type(name = "ZohoObject", value = ZohoObjectDataset.class), + @JsonSubTypes.Type(name = "XeroObject", value = XeroObjectDataset.class), + @JsonSubTypes.Type(name = "SquareObject", value = SquareObjectDataset.class), + @JsonSubTypes.Type(name = "SparkObject", value = SparkObjectDataset.class), + @JsonSubTypes.Type(name = "ShopifyObject", value = ShopifyObjectDataset.class), + @JsonSubTypes.Type(name = "ServiceNowObject", value = ServiceNowObjectDataset.class), + @JsonSubTypes.Type(name = "QuickBooksObject", value = QuickBooksObjectDataset.class), + @JsonSubTypes.Type(name = "PrestoObject", value = PrestoObjectDataset.class), + @JsonSubTypes.Type(name = "PhoenixObject", value = PhoenixObjectDataset.class), + @JsonSubTypes.Type(name = "PaypalObject", value = PaypalObjectDataset.class), + @JsonSubTypes.Type(name = "MarketoObject", value = MarketoObjectDataset.class), + @JsonSubTypes.Type(name = "MariaDBTable", value = MariaDBTableDataset.class), + @JsonSubTypes.Type(name = "MagentoObject", value = MagentoObjectDataset.class), + @JsonSubTypes.Type(name = "JiraObject", value = JiraObjectDataset.class), + @JsonSubTypes.Type(name = "ImpalaObject", value = ImpalaObjectDataset.class), + @JsonSubTypes.Type(name = "HubspotObject", value = HubspotObjectDataset.class), + @JsonSubTypes.Type(name = "HiveObject", value = HiveObjectDataset.class), + @JsonSubTypes.Type(name = "HBaseObject", value = HBaseObjectDataset.class), + @JsonSubTypes.Type(name = "GreenplumTable", value = GreenplumTableDataset.class), + @JsonSubTypes.Type(name = "GoogleBigQueryObject", value = GoogleBigQueryObjectDataset.class), + @JsonSubTypes.Type(name = "EloquaObject", value = EloquaObjectDataset.class), + @JsonSubTypes.Type(name = "DrillTable", value = DrillTableDataset.class), + @JsonSubTypes.Type(name = "CouchbaseTable", value = CouchbaseTableDataset.class), + @JsonSubTypes.Type(name = "ConcurObject", value = ConcurObjectDataset.class), + @JsonSubTypes.Type(name = "AzurePostgreSqlTable", value = AzurePostgreSqlTableDataset.class), + @JsonSubTypes.Type(name = "AmazonMWSObject", value = AmazonMWSObjectDataset.class), + @JsonSubTypes.Type(name = "HttpFile", value = HttpDataset.class), + @JsonSubTypes.Type(name = "AzureSearchIndex", value = AzureSearchIndexDataset.class), + @JsonSubTypes.Type(name = "WebTable", value = WebTableDataset.class), + @JsonSubTypes.Type(name = "SqlServerTable", value = SqlServerTableDataset.class), + @JsonSubTypes.Type(name = "SapEccResource", value = SapEccResourceDataset.class), + @JsonSubTypes.Type(name = "SapCloudForCustomerResource", value = SapCloudForCustomerResourceDataset.class), + @JsonSubTypes.Type(name = "SalesforceObject", value = SalesforceObjectDataset.class), + @JsonSubTypes.Type(name = "RelationalTable", value = RelationalTableDataset.class), + @JsonSubTypes.Type(name = "AzureMySqlTable", value = AzureMySqlTableDataset.class), + @JsonSubTypes.Type(name = "OracleTable", value = OracleTableDataset.class), + @JsonSubTypes.Type(name = "ODataResource", value = ODataResourceDataset.class), + @JsonSubTypes.Type(name = "MongoDbCollection", value = MongoDbCollectionDataset.class), + @JsonSubTypes.Type(name = "FileShare", value = FileShareDataset.class), + @JsonSubTypes.Type(name = "AzureDataLakeStoreFile", value = AzureDataLakeStoreDataset.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 = "AzureSqlTable", value = AzureSqlTableDataset.class), + @JsonSubTypes.Type(name = "AzureTable", value = AzureTableDataset.class), + @JsonSubTypes.Type(name = "AzureBlob", value = AzureBlobDataset.class), + @JsonSubTypes.Type(name = "AmazonS3Object", value = AmazonS3Dataset.class) +}) +public class DatasetInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Dataset description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Columns that define the structure of the dataset. Type: array (or + * Expression with resultType array), itemType: DatasetDataElement. + */ + @JsonProperty(value = "structure") + private Object structure; + + /** + * Linked service reference. + */ + @JsonProperty(value = "linkedServiceName", required = true) + private LinkedServiceReference linkedServiceName; + + /** + * Parameters for dataset. + */ + @JsonProperty(value = "parameters") + private Map parameters; + + /** + * List of tags that can be used for describing the Dataset. + */ + @JsonProperty(value = "annotations") + private List annotations; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the structure value. + * + * @return the structure value + */ + public Object structure() { + return this.structure; + } + + /** + * Set the structure value. + * + * @param structure the structure value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withStructure(Object structure) { + this.structure = structure; + return this; + } + + /** + * Get the linkedServiceName value. + * + * @return the linkedServiceName value + */ + public LinkedServiceReference linkedServiceName() { + return this.linkedServiceName; + } + + /** + * Set the linkedServiceName value. + * + * @param linkedServiceName the linkedServiceName value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withLinkedServiceName(LinkedServiceReference linkedServiceName) { + this.linkedServiceName = linkedServiceName; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the annotations value. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set the annotations value. + * + * @param annotations the annotations value to set + * @return the DatasetInner object itself. + */ + public DatasetInner withAnnotations(List annotations) { + this.annotations = annotations; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetResourceInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetResourceInner.java new file mode 100644 index 00000000000..8dd1a994ab6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetResourceInner.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.SubResource; + +/** + * Dataset resource type. + */ +public class DatasetResourceInner extends SubResource { + /** + * Dataset properties. + */ + @JsonProperty(value = "properties", required = true) + private DatasetInner properties; + + /** + * Get the properties value. + * + * @return the properties value + */ + public DatasetInner properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the DatasetResourceInner object itself. + */ + public DatasetResourceInner withProperties(DatasetInner properties) { + this.properties = properties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetsInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetsInner.java new file mode 100644 index 00000000000..a667f2dc2f9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/DatasetsInner.java @@ -0,0 +1,710 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Datasets. + */ +public class DatasetsInner { + /** The Retrofit service to perform REST calls. */ + private DatasetsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of DatasetsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public DatasetsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(DatasetsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Datasets to be + * used by Retrofit to perform actually REST calls. + */ + interface DatasetsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Datasets listByFactory" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets") + Observable> listByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Datasets createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("datasetName") String datasetName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body DatasetResourceInner dataset, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Datasets get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("datasetName") String datasetName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Datasets delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("datasetName") String datasetName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Datasets listByFactoryNext" }) + @GET + Observable> listByFactoryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists datasets. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DatasetResourceInner> object if successful. + */ + public PagedList listByFactory(final String resourceGroupName, final String factoryName) { + ServiceResponse> response = listByFactorySinglePageAsync(resourceGroupName, factoryName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists datasets. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryAsync(final String resourceGroupName, final String factoryName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactorySinglePageAsync(resourceGroupName, factoryName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists datasets. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DatasetResourceInner> object + */ + public Observable> listByFactoryAsync(final String resourceGroupName, final String factoryName) { + return listByFactoryWithServiceResponseAsync(resourceGroupName, factoryName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists datasets. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DatasetResourceInner> object + */ + public Observable>> listByFactoryWithServiceResponseAsync(final String resourceGroupName, final String factoryName) { + return listByFactorySinglePageAsync(resourceGroupName, factoryName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists datasets. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DatasetResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactorySinglePageAsync(final String resourceGroupName, final String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DatasetResourceInner object if successful. + */ + public DatasetResourceInner createOrUpdate(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, properties).toBlocking().single().body(); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, properties), serviceCallback); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, properties).map(new Func1, DatasetResourceInner>() { + @Override + public DatasetResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (datasetName == null) { + throw new IllegalArgumentException("Parameter datasetName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + final String ifMatch = null; + DatasetResourceInner dataset = new DatasetResourceInner(); + dataset.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, datasetName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), dataset, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DatasetResourceInner object if successful. + */ + public DatasetResourceInner createOrUpdate(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, properties, ifMatch).toBlocking().single().body(); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, properties, ifMatch), serviceCallback); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, datasetName, properties, ifMatch).map(new Func1, DatasetResourceInner>() { + @Override + public DatasetResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param properties Dataset properties. + * @param ifMatch ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String datasetName, DatasetInner properties, String ifMatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (datasetName == null) { + throw new IllegalArgumentException("Parameter datasetName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + DatasetResourceInner dataset = new DatasetResourceInner(); + dataset.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, datasetName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), dataset, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DatasetResourceInner object if successful. + */ + public DatasetResourceInner get(String resourceGroupName, String factoryName, String datasetName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, datasetName).toBlocking().single().body(); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String factoryName, String datasetName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, datasetName), serviceCallback); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String datasetName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, datasetName).map(new Func1, DatasetResourceInner>() { + @Override + public DatasetResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DatasetResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String datasetName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (datasetName == null) { + throw new IllegalArgumentException("Parameter datasetName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, datasetName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName, String datasetName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName, datasetName).toBlocking().single().body(); + } + + /** + * Deletes a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, String datasetName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName, datasetName), serviceCallback); + } + + /** + * Deletes a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName, String datasetName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName, datasetName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a dataset. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param datasetName The dataset name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName, String datasetName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (datasetName == null) { + throw new IllegalArgumentException("Parameter datasetName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, datasetName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists datasets. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DatasetResourceInner> object if successful. + */ + public PagedList listByFactoryNext(final String nextPageLink) { + ServiceResponse> response = listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists datasets. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactoryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists datasets. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DatasetResourceInner> object + */ + public Observable> listByFactoryNextAsync(final String nextPageLink) { + return listByFactoryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists datasets. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DatasetResourceInner> object + */ + public Observable>> listByFactoryNextWithServiceResponseAsync(final String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists datasets. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DatasetResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactoryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByFactoryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoriesInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoriesInner.java new file mode 100644 index 00000000000..f80b7d93c88 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoriesInner.java @@ -0,0 +1,1003 @@ +/** + * 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.datafactory.implementation; + +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsGet; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsDelete; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Factories. + */ +public class FactoriesInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private FactoriesService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of FactoriesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public FactoriesInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(FactoriesService.class); + this.client = client; + } + + /** + * The interface defining all the services for Factories to be + * used by Retrofit to perform actually REST calls. + */ + interface FactoriesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body FactoryInner factory, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body FactoryUpdateParametersInner factoryUpdateParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories cancelPipelineRun" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/cancelpipelinerun/{runId}") + Observable> cancelPipelineRun(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("runId") String runId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Factories listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists factories under the specified subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<FactoryInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists factories under the specified subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists factories under the specified subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists factories under the specified subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists factories under the specified subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<FactoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists factories. + * + * @param resourceGroupName The resource group name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<FactoryInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists factories. + * + * @param resourceGroupName The resource group name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists factories. + * + * @param resourceGroupName The resource group name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists factories. + * + * @param resourceGroupName The resource group name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists factories. + * + ServiceResponse> * @param resourceGroupName The resource group name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<FactoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates or updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the FactoryInner object if successful. + */ + public FactoryInner createOrUpdate(String resourceGroupName, String factoryName, FactoryInner factory) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, factory).toBlocking().single().body(); + } + + /** + * Creates or updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, FactoryInner factory, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, factory), serviceCallback); + } + + /** + * Creates or updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, FactoryInner factory) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, factory).map(new Func1, FactoryInner>() { + @Override + public FactoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factory Factory resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, FactoryInner factory) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (factory == null) { + throw new IllegalArgumentException("Parameter factory is required and cannot be null."); + } + Validator.validate(factory); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), factory, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factoryUpdateParameters The parameters for updating a factory. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the FactoryInner object if successful. + */ + public FactoryInner update(String resourceGroupName, String factoryName, FactoryUpdateParametersInner factoryUpdateParameters) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, factoryUpdateParameters).toBlocking().single().body(); + } + + /** + * Updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factoryUpdateParameters The parameters for updating a factory. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String factoryName, FactoryUpdateParametersInner factoryUpdateParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, factoryName, factoryUpdateParameters), serviceCallback); + } + + /** + * Updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factoryUpdateParameters The parameters for updating a factory. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable updateAsync(String resourceGroupName, String factoryName, FactoryUpdateParametersInner factoryUpdateParameters) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, factoryUpdateParameters).map(new Func1, FactoryInner>() { + @Override + public FactoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param factoryUpdateParameters The parameters for updating a factory. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String factoryName, FactoryUpdateParametersInner factoryUpdateParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (factoryUpdateParameters == null) { + throw new IllegalArgumentException("Parameter factoryUpdateParameters is required and cannot be null."); + } + Validator.validate(factoryUpdateParameters); + return service.update(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), factoryUpdateParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the FactoryInner object if successful. + */ + public FactoryInner getByResourceGroup(String resourceGroupName, String factoryName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, factoryName).toBlocking().single().body(); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String factoryName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, factoryName), serviceCallback); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String factoryName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, factoryName).map(new Func1, FactoryInner>() { + @Override + public FactoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FactoryInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName).toBlocking().single().body(); + } + + /** + * Deletes a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName), serviceCallback); + } + + /** + * Deletes a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a factory. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Cancel a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void cancelPipelineRun(String resourceGroupName, String factoryName, String runId) { + cancelPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId).toBlocking().single().body(); + } + + /** + * Cancel a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture cancelPipelineRunAsync(String resourceGroupName, String factoryName, String runId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(cancelPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId), serviceCallback); + } + + /** + * Cancel a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable cancelPipelineRunAsync(String resourceGroupName, String factoryName, String runId) { + return cancelPipelineRunWithServiceResponseAsync(resourceGroupName, factoryName, runId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Cancel a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> cancelPipelineRunWithServiceResponseAsync(String resourceGroupName, String factoryName, String runId) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (runId == null) { + throw new IllegalArgumentException("Parameter runId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.cancelPipelineRun(this.client.subscriptionId(), resourceGroupName, factoryName, runId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = cancelPipelineRunDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse cancelPipelineRunDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists factories under the specified subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<FactoryInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists factories under the specified subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists factories under the specified subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists factories under the specified subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists factories under the specified subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<FactoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists factories. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<FactoryInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists factories. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists factories. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists factories. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<FactoryInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists factories. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<FactoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoryInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoryInner.java new file mode 100644 index 00000000000..d8347b4ae10 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoryInner.java @@ -0,0 +1,120 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.FactoryIdentity; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * Factory resource type. + */ +@JsonFlatten +public class FactoryInner extends Resource { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Managed service identity of the factory. + */ + @JsonProperty(value = "identity") + private FactoryIdentity identity; + + /** + * Factory provisioning state, example Succeeded. + */ + @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 DateTime createTime; + + /** + * Version of the factory. + */ + @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the FactoryInner object itself. + */ + public FactoryInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the identity value. + * + * @return the identity value + */ + public FactoryIdentity identity() { + return this.identity; + } + + /** + * Set the identity value. + * + * @param identity the identity value to set + * @return the FactoryInner object itself. + */ + public FactoryInner withIdentity(FactoryIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the provisioningState value. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the createTime value. + * + * @return the createTime value + */ + public DateTime createTime() { + return this.createTime; + } + + /** + * Get the version value. + * + * @return the version value + */ + public String version() { + return this.version; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoryUpdateParametersInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoryUpdateParametersInner.java new file mode 100644 index 00000000000..52bfff26bd9 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/FactoryUpdateParametersInner.java @@ -0,0 +1,71 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.FactoryIdentity; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters for updating a factory resource. + */ +public class FactoryUpdateParametersInner { + /** + * The resource tags. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Managed service identity of the factory. + */ + @JsonProperty(value = "identity") + private FactoryIdentity identity; + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the FactoryUpdateParametersInner object itself. + */ + public FactoryUpdateParametersInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the identity value. + * + * @return the identity value + */ + public FactoryIdentity identity() { + return this.identity; + } + + /** + * Set the identity value. + * + * @param identity the identity value to set + * @return the FactoryUpdateParametersInner object itself. + */ + public FactoryUpdateParametersInner withIdentity(FactoryIdentity identity) { + this.identity = identity; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeAuthKeysInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeAuthKeysInner.java new file mode 100644 index 00000000000..75c9c3b0864 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeAuthKeysInner.java @@ -0,0 +1,69 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The integration runtime authentication keys. + */ +public class IntegrationRuntimeAuthKeysInner { + /** + * The primary integration runtime authentication key. + */ + @JsonProperty(value = "authKey1") + private String authKey1; + + /** + * The secondary integration runtime authentication key. + */ + @JsonProperty(value = "authKey2") + private String authKey2; + + /** + * Get the authKey1 value. + * + * @return the authKey1 value + */ + public String authKey1() { + return this.authKey1; + } + + /** + * Set the authKey1 value. + * + * @param authKey1 the authKey1 value to set + * @return the IntegrationRuntimeAuthKeysInner object itself. + */ + public IntegrationRuntimeAuthKeysInner withAuthKey1(String authKey1) { + this.authKey1 = authKey1; + return this; + } + + /** + * Get the authKey2 value. + * + * @return the authKey2 value + */ + public String authKey2() { + return this.authKey2; + } + + /** + * Set the authKey2 value. + * + * @param authKey2 the authKey2 value to set + * @return the IntegrationRuntimeAuthKeysInner object itself. + */ + public IntegrationRuntimeAuthKeysInner withAuthKey2(String authKey2) { + this.authKey2 = authKey2; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeConnectionInfoInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeConnectionInfoInner.java new file mode 100644 index 00000000000..f5404938f3c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeConnectionInfoInner.java @@ -0,0 +1,138 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Connection information for encrypting the on-premises data source + * credentials. + */ +public class IntegrationRuntimeConnectionInfoInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The token generated in service. Callers use this token to authenticate + * to integration runtime. + */ + @JsonProperty(value = "serviceToken", access = JsonProperty.Access.WRITE_ONLY) + private String serviceToken; + + /** + * The integration runtime SSL certificate thumbprint. Click-Once + * application uses it to do server validation. + */ + @JsonProperty(value = "identityCertThumbprint", access = JsonProperty.Access.WRITE_ONLY) + private String identityCertThumbprint; + + /** + * The on-premises integration runtime host URL. + */ + @JsonProperty(value = "hostServiceUri", access = JsonProperty.Access.WRITE_ONLY) + private String hostServiceUri; + + /** + * The integration runtime version. + */ + @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /** + * The public key for encrypting a credential when transferring the + * credential to the integration runtime. + */ + @JsonProperty(value = "publicKey", access = JsonProperty.Access.WRITE_ONLY) + private String publicKey; + + /** + * Whether the identity certificate is expired. + */ + @JsonProperty(value = "isIdentityCertExprired", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isIdentityCertExprired; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeConnectionInfoInner object itself. + */ + public IntegrationRuntimeConnectionInfoInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the serviceToken value. + * + * @return the serviceToken value + */ + public String serviceToken() { + return this.serviceToken; + } + + /** + * Get the identityCertThumbprint value. + * + * @return the identityCertThumbprint value + */ + public String identityCertThumbprint() { + return this.identityCertThumbprint; + } + + /** + * Get the hostServiceUri value. + * + * @return the hostServiceUri value + */ + public String hostServiceUri() { + return this.hostServiceUri; + } + + /** + * Get the version value. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get the publicKey value. + * + * @return the publicKey value + */ + public String publicKey() { + return this.publicKey; + } + + /** + * Get the isIdentityCertExprired value. + * + * @return the isIdentityCertExprired value + */ + public Boolean isIdentityCertExprired() { + return this.isIdentityCertExprired; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeInner.java new file mode 100644 index 00000000000..0bdcfbd3b46 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeInner.java @@ -0,0 +1,80 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Azure Data Factory nested object which serves as a compute resource for + * activities. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("IntegrationRuntime") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntime.class), + @JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntime.class) +}) +public class IntegrationRuntimeInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Integration runtime description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeInner object itself. + */ + public IntegrationRuntimeInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the IntegrationRuntimeInner object itself. + */ + public IntegrationRuntimeInner withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeMonitoringDataInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeMonitoringDataInner.java new file mode 100644 index 00000000000..b57d648828e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeMonitoringDataInner.java @@ -0,0 +1,71 @@ +/** + * 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.datafactory.implementation; + +import java.util.List; +import com.microsoft.azure.management.datafactory.IntegrationRuntimeNodeMonitoringData; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Get monitoring data response. + */ +public class IntegrationRuntimeMonitoringDataInner { + /** + * Integration runtime name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Integration runtime node monitoring data. + */ + @JsonProperty(value = "nodes") + private List nodes; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the IntegrationRuntimeMonitoringDataInner object itself. + */ + public IntegrationRuntimeMonitoringDataInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the nodes value. + * + * @return the nodes value + */ + public List nodes() { + return this.nodes; + } + + /** + * Set the nodes value. + * + * @param nodes the nodes value to set + * @return the IntegrationRuntimeMonitoringDataInner object itself. + */ + public IntegrationRuntimeMonitoringDataInner withNodes(List nodes) { + this.nodes = nodes; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeNodeIpAddressInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeNodeIpAddressInner.java new file mode 100644 index 00000000000..be5c54b3b3d --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeNodeIpAddressInner.java @@ -0,0 +1,32 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The IP address of self-hosted integration runtime node. + */ +public class IntegrationRuntimeNodeIpAddressInner { + /** + * The IP address of self-hosted integration runtime node. + */ + @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY) + private String ipAddress; + + /** + * Get the ipAddress value. + * + * @return the ipAddress value + */ + public String ipAddress() { + return this.ipAddress; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeNodesInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeNodesInner.java new file mode 100644 index 00000000000..c9351f2f0f8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeNodesInner.java @@ -0,0 +1,474 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.management.datafactory.UpdateIntegrationRuntimeNodeRequest; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in IntegrationRuntimeNodes. + */ +public class IntegrationRuntimeNodesInner { + /** The Retrofit service to perform REST calls. */ + private IntegrationRuntimeNodesService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of IntegrationRuntimeNodesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public IntegrationRuntimeNodesInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(IntegrationRuntimeNodesService.class); + this.client = client; + } + + /** + * The interface defining all the services for IntegrationRuntimeNodes to be + * used by Retrofit to perform actually REST calls. + */ + interface IntegrationRuntimeNodesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimeNodes delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Path("nodeName") String nodeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimeNodes update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Path("nodeName") String nodeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimeNodes getIpAddress" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") + Observable> getIpAddress(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Path("nodeName") String nodeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).toBlocking().single().body(); + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName), serviceCallback); + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (nodeName == null) { + throw new IllegalArgumentException("Parameter nodeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, nodeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SelfHostedIntegrationRuntimeNodeInner object if successful. + */ + public SelfHostedIntegrationRuntimeNodeInner update(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).toBlocking().single().body(); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName), serviceCallback); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SelfHostedIntegrationRuntimeNodeInner object + */ + public Observable updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).map(new Func1, SelfHostedIntegrationRuntimeNodeInner>() { + @Override + public SelfHostedIntegrationRuntimeNodeInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SelfHostedIntegrationRuntimeNodeInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (nodeName == null) { + throw new IllegalArgumentException("Parameter nodeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Integer concurrentJobsLimit = null; + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest = new UpdateIntegrationRuntimeNodeRequest(); + updateIntegrationRuntimeNodeRequest.withConcurrentJobsLimit(null); + return service.update(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, nodeName, this.client.apiVersion(), this.client.acceptLanguage(), updateIntegrationRuntimeNodeRequest, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param concurrentJobsLimit The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SelfHostedIntegrationRuntimeNodeInner object if successful. + */ + public SelfHostedIntegrationRuntimeNodeInner update(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Integer concurrentJobsLimit) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, concurrentJobsLimit).toBlocking().single().body(); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param concurrentJobsLimit The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Integer concurrentJobsLimit, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, concurrentJobsLimit), serviceCallback); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param concurrentJobsLimit The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SelfHostedIntegrationRuntimeNodeInner object + */ + public Observable updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Integer concurrentJobsLimit) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName, concurrentJobsLimit).map(new Func1, SelfHostedIntegrationRuntimeNodeInner>() { + @Override + public SelfHostedIntegrationRuntimeNodeInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param concurrentJobsLimit The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SelfHostedIntegrationRuntimeNodeInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, Integer concurrentJobsLimit) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (nodeName == null) { + throw new IllegalArgumentException("Parameter nodeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest = new UpdateIntegrationRuntimeNodeRequest(); + updateIntegrationRuntimeNodeRequest.withConcurrentJobsLimit(concurrentJobsLimit); + return service.update(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, nodeName, this.client.apiVersion(), this.client.acceptLanguage(), updateIntegrationRuntimeNodeRequest, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeNodeIpAddressInner object if successful. + */ + public IntegrationRuntimeNodeIpAddressInner getIpAddress(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return getIpAddressWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).toBlocking().single().body(); + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getIpAddressAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getIpAddressWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName), serviceCallback); + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeNodeIpAddressInner object + */ + public Observable getIpAddressAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + return getIpAddressWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, nodeName).map(new Func1, IntegrationRuntimeNodeIpAddressInner>() { + @Override + public IntegrationRuntimeNodeIpAddressInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get the IP address of self-hosted integration runtime node. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param nodeName The integration runtime node name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeNodeIpAddressInner object + */ + public Observable> getIpAddressWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, String nodeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (nodeName == null) { + throw new IllegalArgumentException("Parameter nodeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getIpAddress(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, nodeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getIpAddressDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getIpAddressDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeRemoveNodeRequestInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeRemoveNodeRequestInner.java new file mode 100644 index 00000000000..b80fd413b24 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeRemoveNodeRequestInner.java @@ -0,0 +1,70 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Request to remove a node. + */ +public class IntegrationRuntimeRemoveNodeRequestInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The name of the node to be removed. + */ + @JsonProperty(value = "nodeName") + private String nodeName; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the IntegrationRuntimeRemoveNodeRequestInner object itself. + */ + public IntegrationRuntimeRemoveNodeRequestInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the nodeName value. + * + * @return the nodeName value + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Set the nodeName value. + * + * @param nodeName the nodeName value to set + * @return the IntegrationRuntimeRemoveNodeRequestInner object itself. + */ + public IntegrationRuntimeRemoveNodeRequestInner withNodeName(String nodeName) { + this.nodeName = nodeName; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeResourceInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeResourceInner.java new file mode 100644 index 00000000000..85be83055c3 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeResourceInner.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.SubResource; + +/** + * Integration runtime resource type. + */ +public class IntegrationRuntimeResourceInner extends SubResource { + /** + * Integration runtime properties. + */ + @JsonProperty(value = "properties", required = true) + private IntegrationRuntimeInner properties; + + /** + * Get the properties value. + * + * @return the properties value + */ + public IntegrationRuntimeInner properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the IntegrationRuntimeResourceInner object itself. + */ + public IntegrationRuntimeResourceInner withProperties(IntegrationRuntimeInner properties) { + this.properties = properties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeStatusResponseInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeStatusResponseInner.java new file mode 100644 index 00000000000..1c45b59d8af --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimeStatusResponseInner.java @@ -0,0 +1,59 @@ +/** + * 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.datafactory.implementation; + +import com.microsoft.azure.management.datafactory.IntegrationRuntimeStatus; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Integration runtime status response. + */ +public class IntegrationRuntimeStatusResponseInner { + /** + * The integration runtime name. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * Integration runtime properties. + */ + @JsonProperty(value = "properties", required = true) + private IntegrationRuntimeStatus properties; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get the properties value. + * + * @return the properties value + */ + public IntegrationRuntimeStatus properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the IntegrationRuntimeStatusResponseInner object itself. + */ + public IntegrationRuntimeStatusResponseInner withProperties(IntegrationRuntimeStatus properties) { + this.properties = properties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimesInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimesInner.java new file mode 100644 index 00000000000..ad93a5538d5 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/IntegrationRuntimesInner.java @@ -0,0 +1,2050 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.management.datafactory.IntegrationRuntimeAuthKeyName; +import com.microsoft.azure.management.datafactory.IntegrationRuntimeRegenerateKeyParameters; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in IntegrationRuntimes. + */ +public class IntegrationRuntimesInner { + /** The Retrofit service to perform REST calls. */ + private IntegrationRuntimesService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of IntegrationRuntimesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public IntegrationRuntimesInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(IntegrationRuntimesService.class); + this.client = client; + } + + /** + * The interface defining all the services for IntegrationRuntimes to be + * used by Retrofit to perform actually REST calls. + */ + interface IntegrationRuntimesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes listByFactory" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes") + Observable> listByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body IntegrationRuntimeResourceInner integrationRuntime, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes update" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}") + Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Body UpdateIntegrationRuntimeRequestInner updateIntegrationRuntimeRequest, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes getStatus" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus") + Observable> getStatus(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes getConnectionInfo" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") + Observable> getConnectionInfo(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes regenerateAuthKey" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") + Observable> regenerateAuthKey(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes listAuthKeys" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") + Observable> listAuthKeys(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes start" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") + Observable> start(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes beginStart" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start") + Observable> beginStart(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes stop" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") + Observable> stop(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes beginStop" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop") + Observable> beginStop(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes removeNode" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeNode") + Observable> removeNode(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Body IntegrationRuntimeRemoveNodeRequestInner removeNodeParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes syncCredentials" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") + Observable> syncCredentials(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes getMonitoringData" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") + Observable> getMonitoringData(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes upgrade" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade") + Observable> upgrade(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.IntegrationRuntimes listByFactoryNext" }) + @GET + Observable> listByFactoryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists integration runtimes. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<IntegrationRuntimeResourceInner> object if successful. + */ + public PagedList listByFactory(final String resourceGroupName, final String factoryName) { + ServiceResponse> response = listByFactorySinglePageAsync(resourceGroupName, factoryName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists integration runtimes. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryAsync(final String resourceGroupName, final String factoryName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactorySinglePageAsync(resourceGroupName, factoryName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists integration runtimes. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationRuntimeResourceInner> object + */ + public Observable> listByFactoryAsync(final String resourceGroupName, final String factoryName) { + return listByFactoryWithServiceResponseAsync(resourceGroupName, factoryName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists integration runtimes. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationRuntimeResourceInner> object + */ + public Observable>> listByFactoryWithServiceResponseAsync(final String resourceGroupName, final String factoryName) { + return listByFactorySinglePageAsync(resourceGroupName, factoryName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists integration runtimes. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<IntegrationRuntimeResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactorySinglePageAsync(final String resourceGroupName, final String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeResourceInner object if successful. + */ + public IntegrationRuntimeResourceInner createOrUpdate(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, properties).toBlocking().single().body(); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, properties), serviceCallback); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, properties).map(new Func1, IntegrationRuntimeResourceInner>() { + @Override + public IntegrationRuntimeResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + final String ifMatch = null; + IntegrationRuntimeResourceInner integrationRuntime = new IntegrationRuntimeResourceInner(); + integrationRuntime.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeResourceInner object if successful. + */ + public IntegrationRuntimeResourceInner createOrUpdate(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, properties, ifMatch).toBlocking().single().body(); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, properties, ifMatch), serviceCallback); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, properties, ifMatch).map(new Func1, IntegrationRuntimeResourceInner>() { + @Override + public IntegrationRuntimeResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + IntegrationRuntimeResourceInner integrationRuntime = new IntegrationRuntimeResourceInner(); + integrationRuntime.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeResourceInner object if successful. + */ + public IntegrationRuntimeResourceInner get(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeResourceInner>() { + @Override + public IntegrationRuntimeResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeStatusResponseInner object if successful. + */ + public IntegrationRuntimeStatusResponseInner update(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequestInner updateIntegrationRuntimeRequest) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest).toBlocking().single().body(); + } + + /** + * Updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequestInner updateIntegrationRuntimeRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest), serviceCallback); + } + + /** + * Updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable updateAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequestInner updateIntegrationRuntimeRequest) { + return updateWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest).map(new Func1, IntegrationRuntimeStatusResponseInner>() { + @Override + public IntegrationRuntimeStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, UpdateIntegrationRuntimeRequestInner updateIntegrationRuntimeRequest) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (updateIntegrationRuntimeRequest == null) { + throw new IllegalArgumentException("Parameter updateIntegrationRuntimeRequest is required and cannot be null."); + } + Validator.validate(updateIntegrationRuntimeRequest); + return service.update(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), updateIntegrationRuntimeRequest, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName, String integrationRuntimeName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Deletes an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Deletes an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets detailed status information for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeStatusResponseInner object if successful. + */ + public IntegrationRuntimeStatusResponseInner getStatus(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getStatusWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Gets detailed status information for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getStatusAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getStatusWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Gets detailed status information for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable getStatusAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getStatusWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeStatusResponseInner>() { + @Override + public IntegrationRuntimeStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets detailed status information for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable> getStatusWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getStatus(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getStatusDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getStatusDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeConnectionInfoInner object if successful. + */ + public IntegrationRuntimeConnectionInfoInner getConnectionInfo(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getConnectionInfoWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getConnectionInfoAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getConnectionInfoWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeConnectionInfoInner object + */ + public Observable getConnectionInfoAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getConnectionInfoWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeConnectionInfoInner>() { + @Override + public IntegrationRuntimeConnectionInfoInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeConnectionInfoInner object + */ + public Observable> getConnectionInfoWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getConnectionInfo(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getConnectionInfoDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getConnectionInfoDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeAuthKeysInner object if successful. + */ + public IntegrationRuntimeAuthKeysInner regenerateAuthKey(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return regenerateAuthKeyWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateAuthKeyAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateAuthKeyWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeAuthKeysInner object + */ + public Observable regenerateAuthKeyAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return regenerateAuthKeyWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeAuthKeysInner>() { + @Override + public IntegrationRuntimeAuthKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeAuthKeysInner object + */ + public Observable> regenerateAuthKeyWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final IntegrationRuntimeAuthKeyName keyName = null; + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters = new IntegrationRuntimeRegenerateKeyParameters(); + regenerateKeyParameters.withKeyName(null); + return service.regenerateAuthKey(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), regenerateKeyParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateAuthKeyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param keyName The name of the authentication key to regenerate. Possible values include: 'authKey1', 'authKey2' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeAuthKeysInner object if successful. + */ + public IntegrationRuntimeAuthKeysInner regenerateAuthKey(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeAuthKeyName keyName) { + return regenerateAuthKeyWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, keyName).toBlocking().single().body(); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param keyName The name of the authentication key to regenerate. Possible values include: 'authKey1', 'authKey2' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture regenerateAuthKeyAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeAuthKeyName keyName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(regenerateAuthKeyWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, keyName), serviceCallback); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param keyName The name of the authentication key to regenerate. Possible values include: 'authKey1', 'authKey2' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeAuthKeysInner object + */ + public Observable regenerateAuthKeyAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeAuthKeyName keyName) { + return regenerateAuthKeyWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, keyName).map(new Func1, IntegrationRuntimeAuthKeysInner>() { + @Override + public IntegrationRuntimeAuthKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Regenerates the authentication key for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param keyName The name of the authentication key to regenerate. Possible values include: 'authKey1', 'authKey2' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeAuthKeysInner object + */ + public Observable> regenerateAuthKeyWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeAuthKeyName keyName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters = new IntegrationRuntimeRegenerateKeyParameters(); + regenerateKeyParameters.withKeyName(keyName); + return service.regenerateAuthKey(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), regenerateKeyParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = regenerateAuthKeyDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse regenerateAuthKeyDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeAuthKeysInner object if successful. + */ + public IntegrationRuntimeAuthKeysInner listAuthKeys(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return listAuthKeysWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listAuthKeysAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listAuthKeysWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeAuthKeysInner object + */ + public Observable listAuthKeysAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return listAuthKeysWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeAuthKeysInner>() { + @Override + public IntegrationRuntimeAuthKeysInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the authentication keys for an integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeAuthKeysInner object + */ + public Observable> listAuthKeysWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAuthKeys(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listAuthKeysDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listAuthKeysDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeStatusResponseInner object if successful. + */ + public IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return startWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().last().body(); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture startAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable startAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return startWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeStatusResponseInner>() { + @Override + public IntegrationRuntimeStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> startWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.start(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeStatusResponseInner object if successful. + */ + public IntegrationRuntimeStatusResponseInner beginStart(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return beginStartWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginStartWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable beginStartAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return beginStartWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeStatusResponseInner>() { + @Override + public IntegrationRuntimeStatusResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Starts a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeStatusResponseInner object + */ + public Observable> beginStartWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStart(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginStartDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginStartDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void stop(String resourceGroupName, String factoryName, String integrationRuntimeName) { + stopWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().last().body(); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture stopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable stopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return stopWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> stopWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.stop(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginStop(String resourceGroupName, String factoryName, String integrationRuntimeName) { + beginStopWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginStopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginStopWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginStopAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return beginStopWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Stops a ManagedReserved type integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginStopWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStop(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginStopDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginStopDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Remove a node from integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param removeNodeParameters The name of the node to be removed from an integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void removeNode(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeRemoveNodeRequestInner removeNodeParameters) { + removeNodeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters).toBlocking().single().body(); + } + + /** + * Remove a node from integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param removeNodeParameters The name of the node to be removed from an integration runtime. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture removeNodeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeRemoveNodeRequestInner removeNodeParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(removeNodeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters), serviceCallback); + } + + /** + * Remove a node from integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param removeNodeParameters The name of the node to be removed from an integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable removeNodeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeRemoveNodeRequestInner removeNodeParameters) { + return removeNodeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Remove a node from integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param removeNodeParameters The name of the node to be removed from an integration runtime. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> removeNodeWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimeRemoveNodeRequestInner removeNodeParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (removeNodeParameters == null) { + throw new IllegalArgumentException("Parameter removeNodeParameters is required and cannot be null."); + } + Validator.validate(removeNodeParameters); + return service.removeNode(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), removeNodeParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = removeNodeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse removeNodeDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void syncCredentials(String resourceGroupName, String factoryName, String integrationRuntimeName) { + syncCredentialsWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture syncCredentialsAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(syncCredentialsWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable syncCredentialsAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return syncCredentialsWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> syncCredentialsWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.syncCredentials(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = syncCredentialsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse syncCredentialsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeMonitoringDataInner object if successful. + */ + public IntegrationRuntimeMonitoringDataInner getMonitoringData(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getMonitoringDataWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getMonitoringDataAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMonitoringDataWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeMonitoringDataInner object + */ + public Observable getMonitoringDataAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return getMonitoringDataWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, IntegrationRuntimeMonitoringDataInner>() { + @Override + public IntegrationRuntimeMonitoringDataInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeMonitoringDataInner object + */ + public Observable> getMonitoringDataWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getMonitoringData(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getMonitoringDataDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getMonitoringDataDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void upgrade(String resourceGroupName, String factoryName, String integrationRuntimeName) { + upgradeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture upgradeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(upgradeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName), serviceCallback); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable upgradeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + return upgradeWithServiceResponseAsync(resourceGroupName, factoryName, integrationRuntimeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Upgrade self-hosted integration runtime to latest version if availably. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param integrationRuntimeName The integration runtime name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> upgradeWithServiceResponseAsync(String resourceGroupName, String factoryName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.upgrade(this.client.subscriptionId(), resourceGroupName, factoryName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = upgradeDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse upgradeDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists integration runtimes. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<IntegrationRuntimeResourceInner> object if successful. + */ + public PagedList listByFactoryNext(final String nextPageLink) { + ServiceResponse> response = listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists integration runtimes. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactoryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists integration runtimes. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationRuntimeResourceInner> object + */ + public Observable> listByFactoryNextAsync(final String nextPageLink) { + return listByFactoryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists integration runtimes. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationRuntimeResourceInner> object + */ + public Observable>> listByFactoryNextWithServiceResponseAsync(final String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists integration runtimes. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<IntegrationRuntimeResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactoryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByFactoryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServiceInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServiceInner.java new file mode 100644 index 00000000000..9473ea37c81 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServiceInner.java @@ -0,0 +1,230 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.IntegrationRuntimeReference; +import com.microsoft.azure.management.datafactory.ParameterSpecification; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * The Azure Data Factory nested object which contains the information and + * credential which can be used to connect with related store or compute + * resource. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("LinkedService") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "Responsys", value = ResponsysLinkedService.class), + @JsonSubTypes.Type(name = "AzureDatabricks", value = AzureDatabricksLinkedService.class), + @JsonSubTypes.Type(name = "AzureDataLakeAnalytics", value = AzureDataLakeAnalyticsLinkedService.class), + @JsonSubTypes.Type(name = "HDInsightOnDemand", value = HDInsightOnDemandLinkedService.class), + @JsonSubTypes.Type(name = "SalesforceMarketingCloud", value = SalesforceMarketingCloudLinkedService.class), + @JsonSubTypes.Type(name = "Netezza", value = NetezzaLinkedService.class), + @JsonSubTypes.Type(name = "Vertica", value = VerticaLinkedService.class), + @JsonSubTypes.Type(name = "Zoho", value = ZohoLinkedService.class), + @JsonSubTypes.Type(name = "Xero", value = XeroLinkedService.class), + @JsonSubTypes.Type(name = "Square", value = SquareLinkedService.class), + @JsonSubTypes.Type(name = "Spark", value = SparkLinkedService.class), + @JsonSubTypes.Type(name = "Shopify", value = ShopifyLinkedService.class), + @JsonSubTypes.Type(name = "ServiceNow", value = ServiceNowLinkedService.class), + @JsonSubTypes.Type(name = "QuickBooks", value = QuickBooksLinkedService.class), + @JsonSubTypes.Type(name = "Presto", value = PrestoLinkedService.class), + @JsonSubTypes.Type(name = "Phoenix", value = PhoenixLinkedService.class), + @JsonSubTypes.Type(name = "Paypal", value = PaypalLinkedService.class), + @JsonSubTypes.Type(name = "Marketo", value = MarketoLinkedService.class), + @JsonSubTypes.Type(name = "MariaDB", value = MariaDBLinkedService.class), + @JsonSubTypes.Type(name = "Magento", value = MagentoLinkedService.class), + @JsonSubTypes.Type(name = "Jira", value = JiraLinkedService.class), + @JsonSubTypes.Type(name = "Impala", value = ImpalaLinkedService.class), + @JsonSubTypes.Type(name = "Hubspot", value = HubspotLinkedService.class), + @JsonSubTypes.Type(name = "Hive", value = HiveLinkedService.class), + @JsonSubTypes.Type(name = "HBase", value = HBaseLinkedService.class), + @JsonSubTypes.Type(name = "Greenplum", value = GreenplumLinkedService.class), + @JsonSubTypes.Type(name = "GoogleBigQuery", value = GoogleBigQueryLinkedService.class), + @JsonSubTypes.Type(name = "Eloqua", value = EloquaLinkedService.class), + @JsonSubTypes.Type(name = "Drill", value = DrillLinkedService.class), + @JsonSubTypes.Type(name = "Couchbase", value = CouchbaseLinkedService.class), + @JsonSubTypes.Type(name = "Concur", value = ConcurLinkedService.class), + @JsonSubTypes.Type(name = "AzurePostgreSql", value = AzurePostgreSqlLinkedService.class), + @JsonSubTypes.Type(name = "AmazonMWS", value = AmazonMWSLinkedService.class), + @JsonSubTypes.Type(name = "SapHana", value = SapHanaLinkedService.class), + @JsonSubTypes.Type(name = "SapBW", value = SapBWLinkedService.class), + @JsonSubTypes.Type(name = "Sftp", value = SftpServerLinkedService.class), + @JsonSubTypes.Type(name = "FtpServer", value = FtpServerLinkedService.class), + @JsonSubTypes.Type(name = "HttpServer", value = HttpLinkedService.class), + @JsonSubTypes.Type(name = "AzureSearch", value = AzureSearchLinkedService.class), + @JsonSubTypes.Type(name = "CustomDataSource", value = CustomDataSourceLinkedService.class), + @JsonSubTypes.Type(name = "AmazonRedshift", value = AmazonRedshiftLinkedService.class), + @JsonSubTypes.Type(name = "AmazonS3", value = AmazonS3LinkedService.class), + @JsonSubTypes.Type(name = "SapEcc", value = SapEccLinkedService.class), + @JsonSubTypes.Type(name = "SapCloudForCustomer", value = SapCloudForCustomerLinkedService.class), + @JsonSubTypes.Type(name = "Salesforce", value = SalesforceLinkedService.class), + @JsonSubTypes.Type(name = "AzureDataLakeStore", value = AzureDataLakeStoreLinkedService.class), + @JsonSubTypes.Type(name = "MongoDb", value = MongoDbLinkedService.class), + @JsonSubTypes.Type(name = "Cassandra", value = CassandraLinkedService.class), + @JsonSubTypes.Type(name = "Web", value = WebLinkedService.class), + @JsonSubTypes.Type(name = "OData", value = ODataLinkedService.class), + @JsonSubTypes.Type(name = "Hdfs", value = HdfsLinkedService.class), + @JsonSubTypes.Type(name = "Odbc", value = OdbcLinkedService.class), + @JsonSubTypes.Type(name = "AzureML", value = AzureMLLinkedService.class), + @JsonSubTypes.Type(name = "Teradata", value = TeradataLinkedService.class), + @JsonSubTypes.Type(name = "Db2", value = Db2LinkedService.class), + @JsonSubTypes.Type(name = "Sybase", value = SybaseLinkedService.class), + @JsonSubTypes.Type(name = "PostgreSql", value = PostgreSqlLinkedService.class), + @JsonSubTypes.Type(name = "MySql", value = MySqlLinkedService.class), + @JsonSubTypes.Type(name = "AzureMySql", value = AzureMySqlLinkedService.class), + @JsonSubTypes.Type(name = "Oracle", value = OracleLinkedService.class), + @JsonSubTypes.Type(name = "FileServer", value = FileServerLinkedService.class), + @JsonSubTypes.Type(name = "HDInsight", value = HDInsightLinkedService.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 = "AzureSqlDatabase", value = AzureSqlDatabaseLinkedService.class), + @JsonSubTypes.Type(name = "SqlServer", value = SqlServerLinkedService.class), + @JsonSubTypes.Type(name = "AzureSqlDW", value = AzureSqlDWLinkedService.class), + @JsonSubTypes.Type(name = "AzureStorage", value = AzureStorageLinkedService.class) +}) +public class LinkedServiceInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The integration runtime reference. + */ + @JsonProperty(value = "connectVia") + private IntegrationRuntimeReference connectVia; + + /** + * Linked service description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Parameters for linked service. + */ + @JsonProperty(value = "parameters") + private Map parameters; + + /** + * List of tags that can be used for describing the Dataset. + */ + @JsonProperty(value = "annotations") + private List annotations; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the connectVia value. + * + * @return the connectVia value + */ + public IntegrationRuntimeReference connectVia() { + return this.connectVia; + } + + /** + * Set the connectVia value. + * + * @param connectVia the connectVia value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withConnectVia(IntegrationRuntimeReference connectVia) { + this.connectVia = connectVia; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the annotations value. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set the annotations value. + * + * @param annotations the annotations value to set + * @return the LinkedServiceInner object itself. + */ + public LinkedServiceInner withAnnotations(List annotations) { + this.annotations = annotations; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServiceResourceInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServiceResourceInner.java new file mode 100644 index 00000000000..35e7a5fd5bd --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServiceResourceInner.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.SubResource; + +/** + * Linked service resource type. + */ +public class LinkedServiceResourceInner extends SubResource { + /** + * Properties of linked service. + */ + @JsonProperty(value = "properties", required = true) + private LinkedServiceInner properties; + + /** + * Get the properties value. + * + * @return the properties value + */ + public LinkedServiceInner properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the LinkedServiceResourceInner object itself. + */ + public LinkedServiceResourceInner withProperties(LinkedServiceInner properties) { + this.properties = properties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServicesInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServicesInner.java new file mode 100644 index 00000000000..17c71c78867 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/LinkedServicesInner.java @@ -0,0 +1,710 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in LinkedServices. + */ +public class LinkedServicesInner { + /** The Retrofit service to perform REST calls. */ + private LinkedServicesService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of LinkedServicesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public LinkedServicesInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(LinkedServicesService.class); + this.client = client; + } + + /** + * The interface defining all the services for LinkedServices to be + * used by Retrofit to perform actually REST calls. + */ + interface LinkedServicesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.LinkedServices listByFactory" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices") + Observable> listByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.LinkedServices createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("linkedServiceName") String linkedServiceName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body LinkedServiceResourceInner linkedService, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.LinkedServices get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("linkedServiceName") String linkedServiceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.LinkedServices delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("linkedServiceName") String linkedServiceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.LinkedServices listByFactoryNext" }) + @GET + Observable> listByFactoryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists linked services. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<LinkedServiceResourceInner> object if successful. + */ + public PagedList listByFactory(final String resourceGroupName, final String factoryName) { + ServiceResponse> response = listByFactorySinglePageAsync(resourceGroupName, factoryName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists linked services. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryAsync(final String resourceGroupName, final String factoryName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactorySinglePageAsync(resourceGroupName, factoryName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists linked services. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<LinkedServiceResourceInner> object + */ + public Observable> listByFactoryAsync(final String resourceGroupName, final String factoryName) { + return listByFactoryWithServiceResponseAsync(resourceGroupName, factoryName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists linked services. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<LinkedServiceResourceInner> object + */ + public Observable>> listByFactoryWithServiceResponseAsync(final String resourceGroupName, final String factoryName) { + return listByFactorySinglePageAsync(resourceGroupName, factoryName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists linked services. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<LinkedServiceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactorySinglePageAsync(final String resourceGroupName, final String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the LinkedServiceResourceInner object if successful. + */ + public LinkedServiceResourceInner createOrUpdate(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, properties).toBlocking().single().body(); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, properties), serviceCallback); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, properties).map(new Func1, LinkedServiceResourceInner>() { + @Override + public LinkedServiceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (linkedServiceName == null) { + throw new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + final String ifMatch = null; + LinkedServiceResourceInner linkedService = new LinkedServiceResourceInner(); + linkedService.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, linkedServiceName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), linkedService, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the LinkedServiceResourceInner object if successful. + */ + public LinkedServiceResourceInner createOrUpdate(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, properties, ifMatch).toBlocking().single().body(); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, properties, ifMatch), serviceCallback); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName, properties, ifMatch).map(new Func1, LinkedServiceResourceInner>() { + @Override + public LinkedServiceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param properties Properties of linked service. + * @param ifMatch ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String linkedServiceName, LinkedServiceInner properties, String ifMatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (linkedServiceName == null) { + throw new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + LinkedServiceResourceInner linkedService = new LinkedServiceResourceInner(); + linkedService.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, linkedServiceName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), linkedService, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the LinkedServiceResourceInner object if successful. + */ + public LinkedServiceResourceInner get(String resourceGroupName, String factoryName, String linkedServiceName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName).toBlocking().single().body(); + } + + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String factoryName, String linkedServiceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName), serviceCallback); + } + + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String linkedServiceName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName).map(new Func1, LinkedServiceResourceInner>() { + @Override + public LinkedServiceResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the LinkedServiceResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String linkedServiceName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (linkedServiceName == null) { + throw new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, linkedServiceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName, String linkedServiceName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName).toBlocking().single().body(); + } + + /** + * Deletes a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, String linkedServiceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName), serviceCallback); + } + + /** + * Deletes a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName, String linkedServiceName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName, linkedServiceName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a linked service. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param linkedServiceName The linked service name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName, String linkedServiceName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (linkedServiceName == null) { + throw new IllegalArgumentException("Parameter linkedServiceName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, linkedServiceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists linked services. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<LinkedServiceResourceInner> object if successful. + */ + public PagedList listByFactoryNext(final String nextPageLink) { + ServiceResponse> response = listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists linked services. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactoryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists linked services. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<LinkedServiceResourceInner> object + */ + public Observable> listByFactoryNextAsync(final String nextPageLink) { + return listByFactoryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists linked services. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<LinkedServiceResourceInner> object + */ + public Observable>> listByFactoryNextWithServiceResponseAsync(final String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists linked services. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<LinkedServiceResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactoryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByFactoryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/OperationListResponseInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/OperationListResponseInner.java new file mode 100644 index 00000000000..a826a965662 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/OperationListResponseInner.java @@ -0,0 +1,72 @@ +/** + * 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.datafactory.implementation; + +import java.util.List; +import com.microsoft.azure.management.datafactory.Operation; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list of operations that can be performed by the Data Factory service. + */ +public class OperationListResponseInner { + /** + * List of Data Factory operations supported by the Data Factory resource + * provider. + */ + @JsonProperty(value = "value") + private List value; + + /** + * The link to the next page of results, if any remaining results exist. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value value. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the value value. + * + * @param value the value value to set + * @return the OperationListResponseInner object itself. + */ + public OperationListResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink value. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink value. + * + * @param nextLink the nextLink value to set + * @return the OperationListResponseInner object itself. + */ + public OperationListResponseInner withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/OperationsInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/OperationsInner.java new file mode 100644 index 00000000000..31bbb403eeb --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/OperationsInner.java @@ -0,0 +1,128 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Operations. + */ +public class OperationsInner { + /** The Retrofit service to perform REST calls. */ + private OperationsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of OperationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public OperationsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(OperationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Operations to be + * used by Retrofit to perform actually REST calls. + */ + interface OperationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Operations list" }) + @GET("providers/Microsoft.DataFactory/operations") + Observable> list(@Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationListResponseInner object if successful. + */ + public OperationListResponseInner list() { + return listWithServiceResponseAsync().toBlocking().single().body(); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listAsync(final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationListResponseInner object + */ + public Observable listAsync() { + return listWithServiceResponseAsync().map(new Func1, OperationListResponseInner>() { + @Override + public OperationListResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the available Azure Data Factory API operations. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationListResponseInner object + */ + public Observable> listWithServiceResponseAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PageImpl.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PageImpl.java new file mode 100644 index 00000000000..c40cd6d68d1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PageImpl.java @@ -0,0 +1,75 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.Page; +import java.util.List; + +/** + * An instance of this class defines a page of Azure resources and a link to + * get the next page of resources, if any. + * + * @param type of Azure resource + */ +public class PageImpl implements Page { + /** + * The link to the next page. + */ + @JsonProperty("nextLink") + private String nextPageLink; + + /** + * The list of items. + */ + @JsonProperty("value") + private List items; + + /** + * Gets the link to the next page. + * + * @return the link to the next page. + */ + @Override + public String nextPageLink() { + return this.nextPageLink; + } + + /** + * Gets the list of items. + * + * @return the list of items in {@link List}. + */ + @Override + public List items() { + return items; + } + + /** + * Sets the link to the next page. + * + * @param nextPageLink the link to the next page. + * @return this Page object itself. + */ + public PageImpl setNextPageLink(String nextPageLink) { + this.nextPageLink = nextPageLink; + return this; + } + + /** + * Sets the list of items. + * + * @param items the list of items in {@link List}. + * @return this Page object itself. + */ + public PageImpl setItems(List items) { + this.items = items; + return this; + } +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineResourceInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineResourceInner.java new file mode 100644 index 00000000000..b5214b92ff8 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineResourceInner.java @@ -0,0 +1,180 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.datafactory.Activity; +import com.microsoft.azure.management.datafactory.ParameterSpecification; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.SubResource; + +/** + * Pipeline resource type. + */ +@JsonFlatten +public class PipelineResourceInner extends SubResource { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * The description of the pipeline. + */ + @JsonProperty(value = "properties.description") + private String description; + + /** + * List of activities in pipeline. + */ + @JsonProperty(value = "properties.activities") + private List activities; + + /** + * List of parameters for pipeline. + */ + @JsonProperty(value = "properties.parameters") + private Map parameters; + + /** + * The max number of concurrent runs for the pipeline. + */ + @JsonProperty(value = "properties.concurrency") + private Integer concurrency; + + /** + * List of tags that can be used for describing the Pipeline. + */ + @JsonProperty(value = "properties.annotations") + private List annotations; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the activities value. + * + * @return the activities value + */ + public List activities() { + return this.activities; + } + + /** + * Set the activities value. + * + * @param activities the activities value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withActivities(List activities) { + this.activities = activities; + return this; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters value. + * + * @param parameters the parameters value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the concurrency value. + * + * @return the concurrency value + */ + public Integer concurrency() { + return this.concurrency; + } + + /** + * Set the concurrency value. + * + * @param concurrency the concurrency value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withConcurrency(Integer concurrency) { + this.concurrency = concurrency; + return this; + } + + /** + * Get the annotations value. + * + * @return the annotations value + */ + public List annotations() { + return this.annotations; + } + + /** + * Set the annotations value. + * + * @param annotations the annotations value to set + * @return the PipelineResourceInner object itself. + */ + public PipelineResourceInner withAnnotations(List annotations) { + this.annotations = annotations; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunFilterParametersInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunFilterParametersInner.java new file mode 100644 index 00000000000..e6748ff6fa1 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunFilterParametersInner.java @@ -0,0 +1,154 @@ +/** + * 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.datafactory.implementation; + +import org.joda.time.DateTime; +import java.util.List; +import com.microsoft.azure.management.datafactory.PipelineRunQueryFilter; +import com.microsoft.azure.management.datafactory.PipelineRunQueryOrderBy; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for listing pipeline runs. + */ +public class PipelineRunFilterParametersInner { + /** + * The continuation token for getting the next page of results. Null for + * first page. + */ + @JsonProperty(value = "continuationToken") + private String continuationToken; + + /** + * The time at or after which the pipeline run event was updated in 'ISO + * 8601' format. + */ + @JsonProperty(value = "lastUpdatedAfter", required = true) + private DateTime lastUpdatedAfter; + + /** + * The time at or before which the pipeline run event was updated in 'ISO + * 8601' format. + */ + @JsonProperty(value = "lastUpdatedBefore", required = true) + private DateTime lastUpdatedBefore; + + /** + * List of filters. + */ + @JsonProperty(value = "filters") + private List filters; + + /** + * List of OrderBy option. + */ + @JsonProperty(value = "orderBy") + private List orderBy; + + /** + * Get the continuationToken value. + * + * @return the continuationToken value + */ + public String continuationToken() { + return this.continuationToken; + } + + /** + * Set the continuationToken value. + * + * @param continuationToken the continuationToken value to set + * @return the PipelineRunFilterParametersInner object itself. + */ + public PipelineRunFilterParametersInner withContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Get the lastUpdatedAfter value. + * + * @return the lastUpdatedAfter value + */ + public DateTime lastUpdatedAfter() { + return this.lastUpdatedAfter; + } + + /** + * Set the lastUpdatedAfter value. + * + * @param lastUpdatedAfter the lastUpdatedAfter value to set + * @return the PipelineRunFilterParametersInner object itself. + */ + public PipelineRunFilterParametersInner withLastUpdatedAfter(DateTime lastUpdatedAfter) { + this.lastUpdatedAfter = lastUpdatedAfter; + return this; + } + + /** + * Get the lastUpdatedBefore value. + * + * @return the lastUpdatedBefore value + */ + public DateTime lastUpdatedBefore() { + return this.lastUpdatedBefore; + } + + /** + * Set the lastUpdatedBefore value. + * + * @param lastUpdatedBefore the lastUpdatedBefore value to set + * @return the PipelineRunFilterParametersInner object itself. + */ + public PipelineRunFilterParametersInner withLastUpdatedBefore(DateTime lastUpdatedBefore) { + this.lastUpdatedBefore = lastUpdatedBefore; + return this; + } + + /** + * Get the filters value. + * + * @return the filters value + */ + public List filters() { + return this.filters; + } + + /** + * Set the filters value. + * + * @param filters the filters value to set + * @return the PipelineRunFilterParametersInner object itself. + */ + public PipelineRunFilterParametersInner withFilters(List filters) { + this.filters = filters; + return this; + } + + /** + * Get the orderBy value. + * + * @return the orderBy value + */ + public List orderBy() { + return this.orderBy; + } + + /** + * Set the orderBy value. + * + * @param orderBy the orderBy value to set + * @return the PipelineRunFilterParametersInner object itself. + */ + public PipelineRunFilterParametersInner withOrderBy(List orderBy) { + this.orderBy = orderBy; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunInner.java new file mode 100644 index 00000000000..93b65c1950e --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunInner.java @@ -0,0 +1,197 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.PipelineRunInvokedBy; +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Information about a pipeline run. + */ +public class PipelineRunInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Identifier of a run. + */ + @JsonProperty(value = "runId", access = JsonProperty.Access.WRITE_ONLY) + private String runId; + + /** + * The pipeline name. + */ + @JsonProperty(value = "pipelineName", access = JsonProperty.Access.WRITE_ONLY) + private String pipelineName; + + /** + * The full or partial list of parameter name, value pair used in the + * pipeline run. + */ + @JsonProperty(value = "parameters", access = JsonProperty.Access.WRITE_ONLY) + private Map parameters; + + /** + * Entity that started the pipeline run. + */ + @JsonProperty(value = "invokedBy", access = JsonProperty.Access.WRITE_ONLY) + private PipelineRunInvokedBy invokedBy; + + /** + * The last updated timestamp for the pipeline run event in ISO8601 format. + */ + @JsonProperty(value = "lastUpdated", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastUpdated; + + /** + * The start time of a pipeline run in ISO8601 format. + */ + @JsonProperty(value = "runStart", access = JsonProperty.Access.WRITE_ONLY) + private DateTime runStart; + + /** + * The end time of a pipeline run in ISO8601 format. + */ + @JsonProperty(value = "runEnd", access = JsonProperty.Access.WRITE_ONLY) + private DateTime runEnd; + + /** + * The duration of a pipeline run. + */ + @JsonProperty(value = "durationInMs", access = JsonProperty.Access.WRITE_ONLY) + private Integer durationInMs; + + /** + * The status of a pipeline run. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private String status; + + /** + * The message from a pipeline run. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the PipelineRunInner object itself. + */ + public PipelineRunInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the runId value. + * + * @return the runId value + */ + public String runId() { + return this.runId; + } + + /** + * Get the pipelineName value. + * + * @return the pipelineName value + */ + public String pipelineName() { + return this.pipelineName; + } + + /** + * Get the parameters value. + * + * @return the parameters value + */ + public Map parameters() { + return this.parameters; + } + + /** + * Get the invokedBy value. + * + * @return the invokedBy value + */ + public PipelineRunInvokedBy invokedBy() { + return this.invokedBy; + } + + /** + * Get the lastUpdated value. + * + * @return the lastUpdated value + */ + public DateTime lastUpdated() { + return this.lastUpdated; + } + + /** + * Get the runStart value. + * + * @return the runStart value + */ + public DateTime runStart() { + return this.runStart; + } + + /** + * Get the runEnd value. + * + * @return the runEnd value + */ + public DateTime runEnd() { + return this.runEnd; + } + + /** + * Get the durationInMs value. + * + * @return the durationInMs value + */ + public Integer durationInMs() { + return this.durationInMs; + } + + /** + * Get the status value. + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunQueryResponseInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunQueryResponseInner.java new file mode 100644 index 00000000000..7c044ef2ec0 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunQueryResponseInner.java @@ -0,0 +1,71 @@ +/** + * 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.datafactory.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A list pipeline runs. + */ +public class PipelineRunQueryResponseInner { + /** + * List of pipeline runs. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /** + * The continuation token for getting the next page of results, if any + * remaining results exist, null otherwise. + */ + @JsonProperty(value = "continuationToken") + private String continuationToken; + + /** + * Get the value value. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Set the value value. + * + * @param value the value value to set + * @return the PipelineRunQueryResponseInner object itself. + */ + public PipelineRunQueryResponseInner withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the continuationToken value. + * + * @return the continuationToken value + */ + public String continuationToken() { + return this.continuationToken; + } + + /** + * Set the continuationToken value. + * + * @param continuationToken the continuationToken value to set + * @return the PipelineRunQueryResponseInner object itself. + */ + public PipelineRunQueryResponseInner withContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunsInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunsInner.java new file mode 100644 index 00000000000..5ff3ad91b15 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelineRunsInner.java @@ -0,0 +1,254 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in PipelineRuns. + */ +public class PipelineRunsInner { + /** The Retrofit service to perform REST calls. */ + private PipelineRunsService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of PipelineRunsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public PipelineRunsInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(PipelineRunsService.class); + this.client = client; + } + + /** + * The interface defining all the services for PipelineRuns to be + * used by Retrofit to perform actually REST calls. + */ + interface PipelineRunsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.PipelineRuns queryByFactory" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns") + Observable> queryByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Body PipelineRunFilterParametersInner filterParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.PipelineRuns get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("runId") String runId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the pipeline run. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PipelineRunQueryResponseInner object if successful. + */ + public PipelineRunQueryResponseInner queryByFactory(String resourceGroupName, String factoryName, PipelineRunFilterParametersInner filterParameters) { + return queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters).toBlocking().single().body(); + } + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the pipeline run. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture queryByFactoryAsync(String resourceGroupName, String factoryName, PipelineRunFilterParametersInner filterParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters), serviceCallback); + } + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the pipeline run. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineRunQueryResponseInner object + */ + public Observable queryByFactoryAsync(String resourceGroupName, String factoryName, PipelineRunFilterParametersInner filterParameters) { + return queryByFactoryWithServiceResponseAsync(resourceGroupName, factoryName, filterParameters).map(new Func1, PipelineRunQueryResponseInner>() { + @Override + public PipelineRunQueryResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Query pipeline runs in the factory based on input filter conditions. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param filterParameters Parameters to filter the pipeline run. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineRunQueryResponseInner object + */ + public Observable> queryByFactoryWithServiceResponseAsync(String resourceGroupName, String factoryName, PipelineRunFilterParametersInner filterParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (filterParameters == null) { + throw new IllegalArgumentException("Parameter filterParameters is required and cannot be null."); + } + Validator.validate(filterParameters); + return service.queryByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), filterParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = queryByFactoryDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse queryByFactoryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Get a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PipelineRunInner object if successful. + */ + public PipelineRunInner get(String resourceGroupName, String factoryName, String runId) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, runId).toBlocking().single().body(); + } + + /** + * Get a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String factoryName, String runId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, runId), serviceCallback); + } + + /** + * Get a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineRunInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String runId) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, runId).map(new Func1, PipelineRunInner>() { + @Override + public PipelineRunInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a pipeline run by its run ID. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param runId The pipeline run identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineRunInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String runId) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (runId == null) { + throw new IllegalArgumentException("Parameter runId is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, runId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelinesInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelinesInner.java new file mode 100644 index 00000000000..4c2a39141b6 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/PipelinesInner.java @@ -0,0 +1,897 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Pipelines. + */ +public class PipelinesInner { + /** The Retrofit service to perform REST calls. */ + private PipelinesService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of PipelinesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public PipelinesInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(PipelinesService.class); + this.client = client; + } + + /** + * The interface defining all the services for Pipelines to be + * used by Retrofit to perform actually REST calls. + */ + interface PipelinesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Pipelines listByFactory" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines") + Observable> listByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Pipelines createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("pipelineName") String pipelineName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Body PipelineResourceInner pipeline, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Pipelines get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("pipelineName") String pipelineName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Pipelines delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("pipelineName") String pipelineName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Pipelines createRun" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun") + Observable> createRun(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("pipelineName") String pipelineName, @Query("api-version") String apiVersion, @Body Map parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Pipelines listByFactoryNext" }) + @GET + Observable> listByFactoryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists pipelines. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<PipelineResourceInner> object if successful. + */ + public PagedList listByFactory(final String resourceGroupName, final String factoryName) { + ServiceResponse> response = listByFactorySinglePageAsync(resourceGroupName, factoryName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists pipelines. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryAsync(final String resourceGroupName, final String factoryName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactorySinglePageAsync(resourceGroupName, factoryName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists pipelines. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<PipelineResourceInner> object + */ + public Observable> listByFactoryAsync(final String resourceGroupName, final String factoryName) { + return listByFactoryWithServiceResponseAsync(resourceGroupName, factoryName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists pipelines. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<PipelineResourceInner> object + */ + public Observable>> listByFactoryWithServiceResponseAsync(final String resourceGroupName, final String factoryName) { + return listByFactorySinglePageAsync(resourceGroupName, factoryName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists pipelines. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<PipelineResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactorySinglePageAsync(final String resourceGroupName, final String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PipelineResourceInner object if successful. + */ + public PipelineResourceInner createOrUpdate(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline).toBlocking().single().body(); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline), serviceCallback); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline).map(new Func1, PipelineResourceInner>() { + @Override + public PipelineResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (pipelineName == null) { + throw new IllegalArgumentException("Parameter pipelineName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (pipeline == null) { + throw new IllegalArgumentException("Parameter pipeline is required and cannot be null."); + } + Validator.validate(pipeline); + final String ifMatch = null; + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), ifMatch, pipeline, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PipelineResourceInner object if successful. + */ + public PipelineResourceInner createOrUpdate(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch).toBlocking().single().body(); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch), serviceCallback); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, pipeline, ifMatch).map(new Func1, PipelineResourceInner>() { + @Override + public PipelineResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param pipeline Pipeline resource definition. + * @param ifMatch ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName, PipelineResourceInner pipeline, String ifMatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (pipelineName == null) { + throw new IllegalArgumentException("Parameter pipelineName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (pipeline == null) { + throw new IllegalArgumentException("Parameter pipeline is required and cannot be null."); + } + Validator.validate(pipeline); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), ifMatch, pipeline, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PipelineResourceInner object if successful. + */ + public PipelineResourceInner get(String resourceGroupName, String factoryName, String pipelineName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName).toBlocking().single().body(); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String factoryName, String pipelineName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName), serviceCallback); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String pipelineName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName).map(new Func1, PipelineResourceInner>() { + @Override + public PipelineResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PipelineResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (pipelineName == null) { + throw new IllegalArgumentException("Parameter pipelineName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName, String pipelineName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName).toBlocking().single().body(); + } + + /** + * Deletes a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, String pipelineName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName), serviceCallback); + } + + /** + * Deletes a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName, String pipelineName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (pipelineName == null) { + throw new IllegalArgumentException("Parameter pipelineName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CreateRunResponseInner object if successful. + */ + public CreateRunResponseInner createRun(String resourceGroupName, String factoryName, String pipelineName) { + return createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName).toBlocking().single().body(); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createRunAsync(String resourceGroupName, String factoryName, String pipelineName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName), serviceCallback); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CreateRunResponseInner object + */ + public Observable createRunAsync(String resourceGroupName, String factoryName, String pipelineName) { + return createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName).map(new Func1, CreateRunResponseInner>() { + @Override + public CreateRunResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CreateRunResponseInner object + */ + public Observable> createRunWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (pipelineName == null) { + throw new IllegalArgumentException("Parameter pipelineName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Map parameters = null; + return service.createRun(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createRunDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param parameters Parameters of the pipeline run. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the CreateRunResponseInner object if successful. + */ + public CreateRunResponseInner createRun(String resourceGroupName, String factoryName, String pipelineName, Map parameters) { + return createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, parameters).toBlocking().single().body(); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param parameters Parameters of the pipeline run. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createRunAsync(String resourceGroupName, String factoryName, String pipelineName, Map parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, parameters), serviceCallback); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param parameters Parameters of the pipeline run. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CreateRunResponseInner object + */ + public Observable createRunAsync(String resourceGroupName, String factoryName, String pipelineName, Map parameters) { + return createRunWithServiceResponseAsync(resourceGroupName, factoryName, pipelineName, parameters).map(new Func1, CreateRunResponseInner>() { + @Override + public CreateRunResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a run of a pipeline. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param pipelineName The pipeline name. + * @param parameters Parameters of the pipeline run. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the CreateRunResponseInner object + */ + public Observable> createRunWithServiceResponseAsync(String resourceGroupName, String factoryName, String pipelineName, Map parameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (pipelineName == null) { + throw new IllegalArgumentException("Parameter pipelineName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.createRun(this.client.subscriptionId(), resourceGroupName, factoryName, pipelineName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createRunDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createRunDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists pipelines. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<PipelineResourceInner> object if successful. + */ + public PagedList listByFactoryNext(final String nextPageLink) { + ServiceResponse> response = listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists pipelines. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactoryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists pipelines. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<PipelineResourceInner> object + */ + public Observable> listByFactoryNextAsync(final String nextPageLink) { + return listByFactoryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists pipelines. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<PipelineResourceInner> object + */ + public Observable>> listByFactoryNextWithServiceResponseAsync(final String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists pipelines. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<PipelineResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactoryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByFactoryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/SelfHostedIntegrationRuntimeNodeInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/SelfHostedIntegrationRuntimeNodeInner.java new file mode 100644 index 00000000000..71afb1bdd32 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/SelfHostedIntegrationRuntimeNodeInner.java @@ -0,0 +1,297 @@ +/** + * 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.datafactory.implementation; + +import com.microsoft.azure.management.datafactory.SelfHostedIntegrationRuntimeNodeStatus; +import java.util.Map; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.IntegrationRuntimeUpdateResult; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Properties of Self-hosted integration runtime node. + */ +public class SelfHostedIntegrationRuntimeNodeInner { + /** + * Name of the integration runtime node. + */ + @JsonProperty(value = "nodeName", access = JsonProperty.Access.WRITE_ONLY) + private String nodeName; + + /** + * Machine name of the integration runtime node. + */ + @JsonProperty(value = "machineName", access = JsonProperty.Access.WRITE_ONLY) + private String machineName; + + /** + * URI for the host machine of the integration runtime. + */ + @JsonProperty(value = "hostServiceUri", access = JsonProperty.Access.WRITE_ONLY) + private String hostServiceUri; + + /** + * Status of the integration runtime node. Possible values include: + * 'NeedRegistration', 'Online', 'Limited', 'Offline', 'Upgrading', + * 'Initializing', 'InitializeFailed'. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private SelfHostedIntegrationRuntimeNodeStatus status; + + /** + * The integration runtime capabilities dictionary. + */ + @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) + private Map capabilities; + + /** + * Status of the integration runtime node version. + */ + @JsonProperty(value = "versionStatus", access = JsonProperty.Access.WRITE_ONLY) + private String versionStatus; + + /** + * Version of the integration runtime node. + */ + @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /** + * The time at which the integration runtime node was registered in ISO8601 + * format. + */ + @JsonProperty(value = "registerTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime registerTime; + + /** + * The most recent time at which the integration runtime was connected in + * ISO8601 format. + */ + @JsonProperty(value = "lastConnectTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastConnectTime; + + /** + * The time at which the integration runtime will expire in ISO8601 format. + */ + @JsonProperty(value = "expiryTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime expiryTime; + + /** + * The time the node last started up. + */ + @JsonProperty(value = "lastStartTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastStartTime; + + /** + * The integration runtime node last stop time. + */ + @JsonProperty(value = "lastStopTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastStopTime; + + /** + * The result of the last integration runtime node update. Possible values + * include: 'Succeed', 'Fail'. + */ + @JsonProperty(value = "lastUpdateResult", access = JsonProperty.Access.WRITE_ONLY) + private IntegrationRuntimeUpdateResult lastUpdateResult; + + /** + * The last time for the integration runtime node update start. + */ + @JsonProperty(value = "lastStartUpdateTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastStartUpdateTime; + + /** + * The last time for the integration runtime node update end. + */ + @JsonProperty(value = "lastEndUpdateTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime lastEndUpdateTime; + + /** + * Indicates whether this node is the active dispatcher for integration + * runtime requests. + */ + @JsonProperty(value = "isActiveDispatcher", access = JsonProperty.Access.WRITE_ONLY) + private Boolean isActiveDispatcher; + + /** + * Maximum concurrent jobs on the integration runtime node. + */ + @JsonProperty(value = "concurrentJobsLimit", access = JsonProperty.Access.WRITE_ONLY) + private Integer concurrentJobsLimit; + + /** + * The maximum concurrent jobs in this integration runtime. + */ + @JsonProperty(value = "maxConcurrentJobs", access = JsonProperty.Access.WRITE_ONLY) + private Integer maxConcurrentJobs; + + /** + * Get the nodeName value. + * + * @return the nodeName value + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Get the machineName value. + * + * @return the machineName value + */ + public String machineName() { + return this.machineName; + } + + /** + * Get the hostServiceUri value. + * + * @return the hostServiceUri value + */ + public String hostServiceUri() { + return this.hostServiceUri; + } + + /** + * Get the status value. + * + * @return the status value + */ + public SelfHostedIntegrationRuntimeNodeStatus status() { + return this.status; + } + + /** + * Get the capabilities value. + * + * @return the capabilities value + */ + public Map capabilities() { + return this.capabilities; + } + + /** + * Get the versionStatus value. + * + * @return the versionStatus value + */ + public String versionStatus() { + return this.versionStatus; + } + + /** + * Get the version value. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Get the registerTime value. + * + * @return the registerTime value + */ + public DateTime registerTime() { + return this.registerTime; + } + + /** + * Get the lastConnectTime value. + * + * @return the lastConnectTime value + */ + public DateTime lastConnectTime() { + return this.lastConnectTime; + } + + /** + * Get the expiryTime value. + * + * @return the expiryTime value + */ + public DateTime expiryTime() { + return this.expiryTime; + } + + /** + * Get the lastStartTime value. + * + * @return the lastStartTime value + */ + public DateTime lastStartTime() { + return this.lastStartTime; + } + + /** + * Get the lastStopTime value. + * + * @return the lastStopTime value + */ + public DateTime lastStopTime() { + return this.lastStopTime; + } + + /** + * Get the lastUpdateResult value. + * + * @return the lastUpdateResult value + */ + public IntegrationRuntimeUpdateResult lastUpdateResult() { + return this.lastUpdateResult; + } + + /** + * Get the lastStartUpdateTime value. + * + * @return the lastStartUpdateTime value + */ + public DateTime lastStartUpdateTime() { + return this.lastStartUpdateTime; + } + + /** + * Get the lastEndUpdateTime value. + * + * @return the lastEndUpdateTime value + */ + public DateTime lastEndUpdateTime() { + return this.lastEndUpdateTime; + } + + /** + * Get the isActiveDispatcher value. + * + * @return the isActiveDispatcher value + */ + public Boolean isActiveDispatcher() { + return this.isActiveDispatcher; + } + + /** + * Get the concurrentJobsLimit value. + * + * @return the concurrentJobsLimit value + */ + public Integer concurrentJobsLimit() { + return this.concurrentJobsLimit; + } + + /** + * Get the maxConcurrentJobs value. + * + * @return the maxConcurrentJobs value + */ + public Integer maxConcurrentJobs() { + return this.maxConcurrentJobs; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerInner.java new file mode 100644 index 00000000000..9a83235ae3c --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerInner.java @@ -0,0 +1,98 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import com.microsoft.azure.management.datafactory.TriggerRuntimeState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Azure data factory nested object which contains information about creating + * pipeline run. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("Trigger") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "TumblingWindowTrigger", value = TumblingWindowTrigger.class), + @JsonSubTypes.Type(name = "MultiplePipelineTrigger", value = MultiplePipelineTrigger.class) +}) +public class TriggerInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Trigger description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Indicates if trigger is running or not. Updated when Start/Stop APIs are + * called on the Trigger. Possible values include: 'Started', 'Stopped', + * 'Disabled'. + */ + @JsonProperty(value = "runtimeState", access = JsonProperty.Access.WRITE_ONLY) + private TriggerRuntimeState runtimeState; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the TriggerInner object itself. + */ + public TriggerInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the description value. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description value. + * + * @param description the description value to set + * @return the TriggerInner object itself. + */ + public TriggerInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the runtimeState value. + * + * @return the runtimeState value + */ + public TriggerRuntimeState runtimeState() { + return this.runtimeState; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerResourceInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerResourceInner.java new file mode 100644 index 00000000000..3fa6209dd91 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerResourceInner.java @@ -0,0 +1,44 @@ +/** + * 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.datafactory.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.SubResource; + +/** + * Trigger resource type. + */ +public class TriggerResourceInner extends SubResource { + /** + * Properties of the trigger. + */ + @JsonProperty(value = "properties", required = true) + private TriggerInner properties; + + /** + * Get the properties value. + * + * @return the properties value + */ + public TriggerInner properties() { + return this.properties; + } + + /** + * Set the properties value. + * + * @param properties the properties value to set + * @return the TriggerResourceInner object itself. + */ + public TriggerResourceInner withProperties(TriggerInner properties) { + this.properties = properties; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerRunInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerRunInner.java new file mode 100644 index 00000000000..7b86ec2c4ce --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggerRunInner.java @@ -0,0 +1,168 @@ +/** + * 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.datafactory.implementation; + +import java.util.Map; +import org.joda.time.DateTime; +import com.microsoft.azure.management.datafactory.TriggerRunStatus; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Trigger runs. + */ +public class TriggerRunInner { + /** + * Unmatched properties from the message are deserialized this collection. + */ + @JsonProperty(value = "") + private Map additionalProperties; + + /** + * Trigger run id. + */ + @JsonProperty(value = "triggerRunId", access = JsonProperty.Access.WRITE_ONLY) + private String triggerRunId; + + /** + * Trigger name. + */ + @JsonProperty(value = "triggerName", access = JsonProperty.Access.WRITE_ONLY) + private String triggerName; + + /** + * Trigger type. + */ + @JsonProperty(value = "triggerType", access = JsonProperty.Access.WRITE_ONLY) + private String triggerType; + + /** + * Trigger run start time. + */ + @JsonProperty(value = "triggerRunTimestamp", access = JsonProperty.Access.WRITE_ONLY) + private DateTime triggerRunTimestamp; + + /** + * Trigger run status. Possible values include: 'Succeeded', 'Failed', + * 'Inprogress'. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private TriggerRunStatus status; + + /** + * Trigger error message. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /** + * List of property name and value related to trigger run. Name, value pair + * depends on type of trigger. + */ + @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) + private Map properties; + + /** + * List of pipeline name and run Id triggered by the trigger run. + */ + @JsonProperty(value = "triggeredPipelines", access = JsonProperty.Access.WRITE_ONLY) + private Map triggeredPipelines; + + /** + * Get the additionalProperties value. + * + * @return the additionalProperties value + */ + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties value. + * + * @param additionalProperties the additionalProperties value to set + * @return the TriggerRunInner object itself. + */ + public TriggerRunInner withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Get the triggerRunId value. + * + * @return the triggerRunId value + */ + public String triggerRunId() { + return this.triggerRunId; + } + + /** + * Get the triggerName value. + * + * @return the triggerName value + */ + public String triggerName() { + return this.triggerName; + } + + /** + * Get the triggerType value. + * + * @return the triggerType value + */ + public String triggerType() { + return this.triggerType; + } + + /** + * Get the triggerRunTimestamp value. + * + * @return the triggerRunTimestamp value + */ + public DateTime triggerRunTimestamp() { + return this.triggerRunTimestamp; + } + + /** + * Get the status value. + * + * @return the status value + */ + public TriggerRunStatus status() { + return this.status; + } + + /** + * Get the message value. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Get the properties value. + * + * @return the properties value + */ + public Map properties() { + return this.properties; + } + + /** + * Get the triggeredPipelines value. + * + * @return the triggeredPipelines value + */ + public Map triggeredPipelines() { + return this.triggeredPipelines; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggersInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggersInner.java new file mode 100644 index 00000000000..83bbff57a67 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/TriggersInner.java @@ -0,0 +1,1328 @@ +/** + * 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.datafactory.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.datafactory.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import org.joda.time.DateTime; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Triggers. + */ +public class TriggersInner { + /** The Retrofit service to perform REST calls. */ + private TriggersService service; + /** The service client containing this operation class. */ + private DataFactoryManagementClientImpl client; + + /** + * Initializes an instance of TriggersInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public TriggersInner(Retrofit retrofit, DataFactoryManagementClientImpl client) { + this.service = retrofit.create(TriggersService.class); + this.client = client; + } + + /** + * The interface defining all the services for Triggers to be + * used by Retrofit to perform actually REST calls. + */ + interface TriggersService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers listByFactory" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers") + Observable> listByFactory(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body TriggerResourceInner trigger, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers start" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start") + Observable> start(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers beginStart" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start") + Observable> beginStart(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers stop" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop") + Observable> stop(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers beginStop" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop") + Observable> beginStop(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers listRuns" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerruns") + Observable> listRuns(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("factoryName") String factoryName, @Path("triggerName") String triggerName, @Query("api-version") String apiVersion, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers listByFactoryNext" }) + @GET + Observable> listByFactoryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datafactory.Triggers listRunsNext" }) + @GET + Observable> listRunsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists triggers. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<TriggerResourceInner> object if successful. + */ + public PagedList listByFactory(final String resourceGroupName, final String factoryName) { + ServiceResponse> response = listByFactorySinglePageAsync(resourceGroupName, factoryName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists triggers. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryAsync(final String resourceGroupName, final String factoryName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactorySinglePageAsync(resourceGroupName, factoryName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists triggers. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerResourceInner> object + */ + public Observable> listByFactoryAsync(final String resourceGroupName, final String factoryName) { + return listByFactoryWithServiceResponseAsync(resourceGroupName, factoryName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists triggers. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerResourceInner> object + */ + public Observable>> listByFactoryWithServiceResponseAsync(final String resourceGroupName, final String factoryName) { + return listByFactorySinglePageAsync(resourceGroupName, factoryName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists triggers. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<TriggerResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactorySinglePageAsync(final String resourceGroupName, final String factoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByFactory(this.client.subscriptionId(), resourceGroupName, factoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the TriggerResourceInner object if successful. + */ + public TriggerResourceInner createOrUpdate(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, properties).toBlocking().single().body(); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, properties), serviceCallback); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, properties).map(new Func1, TriggerResourceInner>() { + @Override + public TriggerResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + final String ifMatch = null; + TriggerResourceInner trigger = new TriggerResourceInner(); + trigger.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), trigger, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the TriggerResourceInner object if successful. + */ + public TriggerResourceInner createOrUpdate(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, properties, ifMatch).toBlocking().single().body(); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, properties, ifMatch), serviceCallback); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties, String ifMatch) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, properties, ifMatch).map(new Func1, TriggerResourceInner>() { + @Override + public TriggerResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param properties Properties of the trigger. + * @param ifMatch ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName, TriggerInner properties, String ifMatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + TriggerResourceInner trigger = new TriggerResourceInner(); + trigger.withProperties(properties); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), trigger, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the TriggerResourceInner object if successful. + */ + public TriggerResourceInner get(String resourceGroupName, String factoryName, String triggerName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).toBlocking().single().body(); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String factoryName, String triggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, factoryName, triggerName), serviceCallback); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable getAsync(String resourceGroupName, String factoryName, String triggerName) { + return getWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).map(new Func1, TriggerResourceInner>() { + @Override + public TriggerResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the TriggerResourceInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String factoryName, String triggerName) { + deleteWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).toBlocking().single().body(); + } + + /** + * Deletes a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String factoryName, String triggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, factoryName, triggerName), serviceCallback); + } + + /** + * Deletes a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String factoryName, String triggerName) { + return deleteWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void start(String resourceGroupName, String factoryName, String triggerName) { + startWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).toBlocking().last().body(); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture startAsync(String resourceGroupName, String factoryName, String triggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWithServiceResponseAsync(resourceGroupName, factoryName, triggerName), serviceCallback); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable startAsync(String resourceGroupName, String factoryName, String triggerName) { + return startWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> startWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.start(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginStart(String resourceGroupName, String factoryName, String triggerName) { + beginStartWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).toBlocking().single().body(); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginStartAsync(String resourceGroupName, String factoryName, String triggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginStartWithServiceResponseAsync(resourceGroupName, factoryName, triggerName), serviceCallback); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginStartAsync(String resourceGroupName, String factoryName, String triggerName) { + return beginStartWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Starts a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginStartWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStart(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginStartDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginStartDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void stop(String resourceGroupName, String factoryName, String triggerName) { + stopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).toBlocking().last().body(); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture stopAsync(String resourceGroupName, String factoryName, String triggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName), serviceCallback); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable stopAsync(String resourceGroupName, String factoryName, String triggerName) { + return stopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> stopWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.stop(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginStop(String resourceGroupName, String factoryName, String triggerName) { + beginStopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).toBlocking().single().body(); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginStopAsync(String resourceGroupName, String factoryName, String triggerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginStopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName), serviceCallback); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginStopAsync(String resourceGroupName, String factoryName, String triggerName) { + return beginStopWithServiceResponseAsync(resourceGroupName, factoryName, triggerName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Stops a trigger. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginStopWithServiceResponseAsync(String resourceGroupName, String factoryName, String triggerName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStop(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginStopDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginStopDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * List trigger runs. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param startTime Start time for trigger runs. + * @param endTime End time for trigger runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<TriggerRunInner> object if successful. + */ + public PagedList listRuns(final String resourceGroupName, final String factoryName, final String triggerName, final DateTime startTime, final DateTime endTime) { + ServiceResponse> response = listRunsSinglePageAsync(resourceGroupName, factoryName, triggerName, startTime, endTime).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listRunsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List trigger runs. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param startTime Start time for trigger runs. + * @param endTime End time for trigger runs. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listRunsAsync(final String resourceGroupName, final String factoryName, final String triggerName, final DateTime startTime, final DateTime endTime, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listRunsSinglePageAsync(resourceGroupName, factoryName, triggerName, startTime, endTime), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listRunsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List trigger runs. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param startTime Start time for trigger runs. + * @param endTime End time for trigger runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerRunInner> object + */ + public Observable> listRunsAsync(final String resourceGroupName, final String factoryName, final String triggerName, final DateTime startTime, final DateTime endTime) { + return listRunsWithServiceResponseAsync(resourceGroupName, factoryName, triggerName, startTime, endTime) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List trigger runs. + * + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param triggerName The trigger name. + * @param startTime Start time for trigger runs. + * @param endTime End time for trigger runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerRunInner> object + */ + public Observable>> listRunsWithServiceResponseAsync(final String resourceGroupName, final String factoryName, final String triggerName, final DateTime startTime, final DateTime endTime) { + return listRunsSinglePageAsync(resourceGroupName, factoryName, triggerName, startTime, endTime) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listRunsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List trigger runs. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param factoryName The factory name. + ServiceResponse> * @param triggerName The trigger name. + ServiceResponse> * @param startTime Start time for trigger runs. + ServiceResponse> * @param endTime End time for trigger runs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<TriggerRunInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listRunsSinglePageAsync(final String resourceGroupName, final String factoryName, final String triggerName, final DateTime startTime, final DateTime endTime) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (factoryName == null) { + throw new IllegalArgumentException("Parameter factoryName is required and cannot be null."); + } + if (triggerName == null) { + throw new IllegalArgumentException("Parameter triggerName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (startTime == null) { + throw new IllegalArgumentException("Parameter startTime is required and cannot be null."); + } + if (endTime == null) { + throw new IllegalArgumentException("Parameter endTime is required and cannot be null."); + } + return service.listRuns(this.client.subscriptionId(), resourceGroupName, factoryName, triggerName, this.client.apiVersion(), startTime, endTime, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listRunsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listRunsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Lists triggers. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<TriggerResourceInner> object if successful. + */ + public PagedList listByFactoryNext(final String nextPageLink) { + ServiceResponse> response = listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists triggers. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByFactoryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByFactoryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists triggers. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerResourceInner> object + */ + public Observable> listByFactoryNextAsync(final String nextPageLink) { + return listByFactoryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists triggers. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerResourceInner> object + */ + public Observable>> listByFactoryNextWithServiceResponseAsync(final String nextPageLink) { + return listByFactoryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByFactoryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists triggers. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<TriggerResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByFactoryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByFactoryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByFactoryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByFactoryNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * List trigger runs. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<TriggerRunInner> object if successful. + */ + public PagedList listRunsNext(final String nextPageLink) { + ServiceResponse> response = listRunsNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listRunsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List trigger runs. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listRunsNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listRunsNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listRunsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List trigger runs. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerRunInner> object + */ + public Observable> listRunsNextAsync(final String nextPageLink) { + return listRunsNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List trigger runs. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<TriggerRunInner> object + */ + public Observable>> listRunsNextWithServiceResponseAsync(final String nextPageLink) { + return listRunsNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listRunsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List trigger runs. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<TriggerRunInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listRunsNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listRunsNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listRunsNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listRunsNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/UpdateIntegrationRuntimeRequestInner.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/UpdateIntegrationRuntimeRequestInner.java new file mode 100644 index 00000000000..12f9ca6f990 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/UpdateIntegrationRuntimeRequestInner.java @@ -0,0 +1,73 @@ +/** + * 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.datafactory.implementation; + +import com.microsoft.azure.management.datafactory.IntegrationRuntimeAutoUpdate; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Update integration runtime request. + */ +public class UpdateIntegrationRuntimeRequestInner { + /** + * Enables or disables the auto-update feature of the self-hosted + * integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. + * Possible values include: 'On', 'Off'. + */ + @JsonProperty(value = "autoUpdate") + private IntegrationRuntimeAutoUpdate autoUpdate; + + /** + * The time offset (in hours) in the day, e.g., PT03H is 3 hours. The + * integration runtime auto update will happen on that time. + */ + @JsonProperty(value = "updateDelayOffset") + private String updateDelayOffset; + + /** + * Get the autoUpdate value. + * + * @return the autoUpdate value + */ + public IntegrationRuntimeAutoUpdate autoUpdate() { + return this.autoUpdate; + } + + /** + * Set the autoUpdate value. + * + * @param autoUpdate the autoUpdate value to set + * @return the UpdateIntegrationRuntimeRequestInner object itself. + */ + public UpdateIntegrationRuntimeRequestInner withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate) { + this.autoUpdate = autoUpdate; + return this; + } + + /** + * Get the updateDelayOffset value. + * + * @return the updateDelayOffset value + */ + public String updateDelayOffset() { + return this.updateDelayOffset; + } + + /** + * Set the updateDelayOffset value. + * + * @param updateDelayOffset the updateDelayOffset value to set + * @return the UpdateIntegrationRuntimeRequestInner object itself. + */ + public UpdateIntegrationRuntimeRequestInner withUpdateDelayOffset(String updateDelayOffset) { + this.updateDelayOffset = updateDelayOffset; + return this; + } + +} diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/package-info.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/package-info.java new file mode 100644 index 00000000000..fa310cd3451 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/implementation/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the implementation classes for DataFactoryManagementClient. + * The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. + */ +package com.microsoft.azure.management.datafactory.implementation; diff --git a/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/package-info.java b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/package-info.java new file mode 100644 index 00000000000..e1f36a68720 --- /dev/null +++ b/azure-mgmt-datafactory/src/main/java/com/microsoft/azure/management/datafactory/package-info.java @@ -0,0 +1,11 @@ +// 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. + +/** + * This package contains the classes for DataFactoryManagementClient. + * The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. + */ +package com.microsoft.azure.management.datafactory;